ccdemos/Makefile
branchpyrit
changeset 29 574c34441a1c
parent 25 b8232edee786
child 39 7079dcc3bd74
equal deleted inserted replaced
28:ffe83ca074f3 29:574c34441a1c
     4 
     4 
     5 include $(ROOT)/config.mk
     5 include $(ROOT)/config.mk
     6 
     6 
     7 
     7 
     8 ### Targets ###
     8 ### Targets ###
     9 all: realtime realtime_dragon spheres_shadow
     9 all: realtime realtime_dragon realtime_bunny spheres_shadow
    10 
    10 
    11 realtime: realtime.o libs-double
    11 realtime: realtime.o libs-double
    12 	$(CXX) -o $@ $(ROOT)/bin/libs-double/*.o $< $(LDFLAGS) $(SDL_LDFLAGS)
    12 	$(CXX) -o $@ $(ROOT)/bin/libs-double/*.o $< $(LDFLAGS) $(SDL_LDFLAGS)
    13 
    13 
    14 realtime_dragon: realtime_dragon.o libs-double
    14 realtime_dragon: realtime_dragon.o libs-double
       
    15 	$(CXX) -o $@ $(ROOT)/bin/libs-double/*.o $< $(LDFLAGS) $(SDL_LDFLAGS)
       
    16 
       
    17 realtime_bunny: realtime_bunny.o libs-double
    15 	$(CXX) -o $@ $(ROOT)/bin/libs-double/*.o $< $(LDFLAGS) $(SDL_LDFLAGS)
    18 	$(CXX) -o $@ $(ROOT)/bin/libs-double/*.o $< $(LDFLAGS) $(SDL_LDFLAGS)
    16 
    19 
    17 spheres_shadow: spheres_shadow.o image.o libs-float
    20 spheres_shadow: spheres_shadow.o image.o libs-float
    18 	$(CXX) -o $@ $(ROOT)/bin/libs-float/*.o $< image.o $(LDFLAGS) -lpng
    21 	$(CXX) -o $@ $(ROOT)/bin/libs-float/*.o $< image.o $(LDFLAGS) -lpng
    19 
    22 
    27 	$(CXX) -c -o $@ $(CCFLAGS) $(SDL_CCFLAGS) $< $(DEFS) -DPYRIT_DOUBLE
    30 	$(CXX) -c -o $@ $(CCFLAGS) $(SDL_CCFLAGS) $< $(DEFS) -DPYRIT_DOUBLE
    28 
    31 
    29 realtime_dragon.o: realtime_dragon.cc
    32 realtime_dragon.o: realtime_dragon.cc
    30 	$(CXX) -c -o $@ $(CCFLAGS) $(SDL_CCFLAGS) $< $(DEFS) -DPYRIT_DOUBLE
    33 	$(CXX) -c -o $@ $(CCFLAGS) $(SDL_CCFLAGS) $< $(DEFS) -DPYRIT_DOUBLE
    31 
    34 
       
    35 realtime_bunny.o: realtime_bunny.cc
       
    36 	$(CXX) -c -o $@ $(CCFLAGS) $(SDL_CCFLAGS) $< $(DEFS) -DPYRIT_DOUBLE
       
    37 
    32 image.o: image.c
    38 image.o: image.c
    33 	$(CXX) -c -o $@ $*.c
    39 	$(CXX) -c -o $@ $*.c
    34 
    40 
    35 spheres_shadow.o: spheres_shadow.cc
    41 spheres_shadow.o: spheres_shadow.cc
    36 	$(CXX) -c -o $@ $*.cc $(CCFLAGS) $(DEFS)
    42 	$(CXX) -c -o $@ $*.cc $(CCFLAGS) $(DEFS)
    37 
    43 
    38 clean:
    44 clean:
    39 	rm -f spheres_shadow realtime realtime_dragon *.o
    45 	rm -f spheres_shadow realtime realtime_dragon realtime_bunny *.o