src/Makefile
branchpyrit
changeset 24 d0d76e8a5203
parent 22 76b7bd51d64a
child 30 33f95441790e
equal deleted inserted replaced
23:7e258561a690 24:d0d76e8a5203
     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 kdtree.o
     9 LIBOBJS=raytracer.o scene.o noise.o container.o kdtree.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 
    41 
    41 
    42 ### Dependencies ###
    42 ### Dependencies ###
    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 kdtree.o: kdtree.cc kdtree.h scene.h common.h
    47 kdtree.o: kdtree.cc kdtree.h scene.h common.h
    47 raytracer.o: raytracer.cc raytracer.h scene.h vector.h noise.h common.h
    48 raytracer.o: raytracer.cc raytracer.h scene.h vector.h noise.h common.h
    48 
    49 
    49 raytracermodule.o: raytracermodule.cc raytracer.h scene.h vector.h common.h
    50 raytracermodule.o: raytracermodule.cc raytracer.h scene.h vector.h common.h
    50 	$(CXX) -c -o $@ $(DEFS) $(CCFLAGS) $(PY_CCFLAGS) $<
    51 	$(CXX) -c -o $@ $(DEFS) $(CCFLAGS) $(PY_CCFLAGS) $<