8 CXXFLAGS := -g -fPIC -I/usr/include/python2.3
11 CURDIR := $(shell pwd)
13 # each module will add to this, .os are derived from it
23 include alg/test/module.mk
28 # process what the module.mks defined
29 OBJ := $(patsubst %.cpp,%.o, $(filter %.cpp,$(SRC)))
32 targets: $(TARGETLIBS) $(TARGETBINS)
34 # this make function came from
35 # http://www.oreilly.com/catalog/make3/book/ch08.pdf
36 # $(call make-depend,source-file,object-file,depend-file)
38 $(CXX) -MM -MF $3 -MP -MT $2 $(CFLAGS) $(CXXFLAGS) $1
42 $(call make-depend,$<,$@,$(subst .o,.d,$@))
43 # makedepend -o.d $(dirname $^) $(CFLAGS) $(CXXFILAGS) $^ -f- > $@
46 $(CXX) -c -o $@ $(CXXFLAGS) $^
51 -rm $(OBJ) $(DEPS) $(TARGETLIBS) $(TARGETBINS)