1 src = $(wildcard src/*.c)
8 def = -DMINIGLUT_USE_LIBC
10 inc = -Ilibs -Ilibs/assfile -Ilibs/treestor/include
11 libs = -lassfile -ldrawtext -lgoat3d -limago -ltreestor
13 CFLAGS = $(warn) $(opt) $(dbg) $(inc) $(def) -MMD
14 LDFLAGS = $(libdir) $(syslib) $(libgl) $(libs) -lm
16 sys := $(shell uname -s | sed 's/MINGW.*/mingw/')
19 libgl = -lopengl32 -lgdi32 -lwinmm
21 obj = $(src:.c=.w32.o)
22 dep = $(src:.c=.w32.d)
27 libgl = -lGL -lGLU -lX11
33 $(CC) -o $@ $(obj) $(LDFLAGS)
38 $(CC) -c $< $(CFLAGS) -o $@
54 $(MAKE) CC=i686-w64-mingw32-gcc AR=i686-w64-mingw32-ar sys=mingw
58 $(MAKE) sys=mingw clean