diff -r 07c2f8084719 -r 440e1ae80459 src/Makefile --- a/src/Makefile Wed Apr 09 11:35:59 2008 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,53 +0,0 @@ -ifndef $(ROOT) - ROOT=$(shell pwd)/.. -endif - -include $(ROOT)/config.mk - -vpath %.cc $(ROOT)/src -vpath %.h $(ROOT)/include -LIBOBJS=raytracer.o scene.o sampler.o noise.o container.o kdtree.o octree.o -CCFLAGS+=-I$(ROOT)/include - -### Targets ### -all: libs-float libs-double python-module - -libs-float: - mkdir -p $(ROOT)/bin/$@ - $(MAKE) -C $(ROOT)/bin/$@ -f $(ROOT)/src/Makefile libs ROOT="$(ROOT)" CCFLAGS="$(CCFLAGS) -fsingle-precision-constant" - -libs-double: - mkdir -p $(ROOT)/bin/$@ - $(MAKE) -C $(ROOT)/bin/$@ -f $(ROOT)/src/Makefile libs ROOT="$(ROOT)" CCFLAGS="$(CCFLAGS) -DPYRIT_DOUBLE" - -libs: $(LIBOBJS) - -python-module: libs-float - mkdir -p $(ROOT)/bin/$@ - $(MAKE) -C $(ROOT)/bin/$@ -f $(ROOT)/src/Makefile $(MODULENAME) ROOT="$(ROOT)" - -$(MODULENAME): raytracermodule.o - $(CXX) -shared -o $@ $< $(ROOT)/bin/libs-float/*.o $(LDFLAGS) $(PY_LDFLAGS) - -clean: - rm -rf $(ROOT)/bin/libs-* - rm -rf $(ROOT)/bin/python-module - - -### Rules ### -%.o: %.cc - $(CXX) -c -o $@ $(CCFLAGS) $< - - -### Dependencies ### -matrix.o: matrix.cc matrix.h vector.h common.h -noise.o: noise.cc noise.h common.h -scene.o: scene.cc scene.h sampler.h vector.h noise.h common.h -sampler.o: sampler.cc sampler.h vector.h common.h -container.o: container.cc container.h scene.h common.h -kdtree.o: kdtree.cc kdtree.h scene.h common.h -octree.o: octree.cc octree.h scene.h common.h -raytracer.o: raytracer.cc raytracer.h scene.h vector.h noise.h common.h - -raytracermodule.o: raytracermodule.cc $(LIBOBJS) - $(CXX) -c -o $@ $(CCFLAGS) $(PY_CCFLAGS) $<