src/Makefile
branchpyrit
changeset 35 fb170fccb19f
parent 30 33f95441790e
child 41 c1080cb5bd6d
equal deleted inserted replaced
34:28f6e8b9d5d1 35:fb170fccb19f
     4 
     4 
     5 include $(ROOT)/config.mk
     5 include $(ROOT)/config.mk
     6 
     6 
     7 vpath %.cc $(ROOT)/src
     7 vpath %.cc $(ROOT)/src
     8 vpath %.h $(ROOT)/include
     8 vpath %.h $(ROOT)/include
     9 LIBOBJS=raytracer.o scene.o noise.o container.o kdtree.o
     9 LIBOBJS=raytracer.o scene.o noise.o container.o kdtree.o octree.o
    10 CCFLAGS+=-I$(ROOT)/include
    10 CCFLAGS+=-I$(ROOT)/include
    11 
    11 
    12 ### Targets ###
    12 ### Targets ###
    13 all: libs-float libs-double python-module
    13 all: libs-float libs-double python-module
    14 
    14 
    43 matrix.o: matrix.cc matrix.h vector.h common.h
    43 matrix.o: matrix.cc matrix.h vector.h common.h
    44 noise.o: noise.cc noise.h common.h
    44 noise.o: noise.cc noise.h common.h
    45 scene.o: scene.cc scene.h vector.h noise.h common.h
    45 scene.o: scene.cc scene.h vector.h noise.h common.h
    46 container.o: container.cc container.h scene.h common.h
    46 container.o: container.cc container.h scene.h common.h
    47 kdtree.o: kdtree.cc kdtree.h scene.h common.h
    47 kdtree.o: kdtree.cc kdtree.h scene.h common.h
       
    48 octree.o: octree.cc octree.h scene.h common.h
    48 raytracer.o: raytracer.cc raytracer.h scene.h vector.h noise.h common.h
    49 raytracer.o: raytracer.cc raytracer.h scene.h vector.h noise.h common.h
    49 
    50 
    50 raytracermodule.o: raytracermodule.cc $(LIBOBJS)
    51 raytracermodule.o: raytracermodule.cc $(LIBOBJS)
    51 	$(CXX) -c -o $@ $(DEFS) $(CCFLAGS) $(PY_CCFLAGS) $<
    52 	$(CXX) -c -o $@ $(DEFS) $(CCFLAGS) $(PY_CCFLAGS) $<