9 CXXFLAGS := -g -fPIC -I/usr/include/python2.3 -I$(CURDIR)
10 # needed for linux (as darwin doesn't put gl.h in a directory starting with
12 CXXFLAGS += -I/usr/include/GL
14 CXXFLAGS += -I/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/usr/local/include
15 LDFLAGS := -L/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/ -L/usr/local/lib
17 # each module will add to this, .os are derived from it
27 include alg/test/module.mk
31 # process what the module.mks defined
32 OBJ := $(patsubst %.cpp,%.o, $(filter %.cpp,$(SRC)))
35 targets: $(TARGETLIBS) $(TARGETBINS)
37 # this make function came from
38 # http://www.oreilly.com/catalog/make3/book/ch08.pdf
39 # $(call make-depend,source-file,object-file,depend-file)
41 $(CXX) -MM -MF $3 -MP -MT $2 $(CFLAGS) $(CXXFLAGS) $1
45 $(call make-depend,$<,$@,$(subst .o,.d,$@))
46 # makedepend -o.d $(dirname $^) $(CFLAGS) $(CXXFILAGS) $^ -f- > $@
49 $(CXX) -c -o $@ $(CXXFLAGS) $^
54 -rm $(OBJ) $(DEPS) $(TARGETLIBS) $(TARGETBINS)