3 src = $(wildcard src/*.c) \
4 $(root)/src/bsptree.c \
5 $(root)/src/polyclip.c \
7 $(root)/src/meshload.c \
14 incpath = -I$(root)/src
15 libpath = -L$(root)/libs/imago -L$(root)/libs/mikmod
17 CFLAGS = -pedantic -Wall -g $(incpath)
18 LDFLAGS = $(libpath) -lGL -lGLU -lglut -lm -limago -lmikmod
21 $(CC) -o $@ $(obj) $(LDFLAGS)
26 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@