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
32 # process what the module.mks defined
33 OBJ := $(patsubst %.cpp,%.o, $(filter %.cpp,$(SRC)))
36 targets: $(TARGETLIBS) $(TARGETBINS)
38 # this make function came from
39 # http://www.oreilly.com/catalog/make3/book/ch08.pdf
40 # $(call make-depend,source-file,object-file,depend-file)
42 $(CXX) -MM -MF $3 -MP -MT $2 $(CFLAGS) $(CXXFLAGS) $1
46 $(call make-depend,$<,$@,$(subst .o,.d,$@))
47 # makedepend -o.d $(dirname $^) $(CFLAGS) $(CXXFILAGS) $^ -f- > $@
50 $(CXX) -c -o $@ $(CXXFLAGS) $^
55 -rm $(OBJ) $(DEPS) $(TARGETLIBS) $(TARGETBINS)