1 src = $(wildcard src/*.cc src/math/*.cc src/shaders/*.cc)
2 csrc = $(wildcard src/*.c)
3 obj = $(src:.cc=.o) $(csrc:.c=.o)
9 inc = -Isrc -Isrc/shaders -Isrc/math -I/home/eleni/igalia/install/include
12 CXXFLAGS = -pedantic -Wall $(dbg) $(opt) $(inc)
13 LDFLAGS = -lGL -lGLU -lglut -lGLEW -limago -lassimp -lgmath -L/home/eleni/igalia/install/lib/libglut.so
16 $(CXX) -o $@ $(obj) $(LDFLAGS)
21 @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@
24 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
28 rm -f $(obj) $(bin) $(dep)