equal
deleted
inserted
replaced
4 |
4 |
5 include $(ROOT)/config.mk |
5 include $(ROOT)/config.mk |
6 |
6 |
7 |
7 |
8 ### Targets ### |
8 ### Targets ### |
9 all: realtime spheres_shadow |
9 all: realtime realtime_dragon 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) |
|
13 |
|
14 realtime_dragon: realtime_dragon.o libs-double |
12 $(CXX) -o $@ $(ROOT)/bin/libs-double/*.o $< $(LDFLAGS) $(SDL_LDFLAGS) |
15 $(CXX) -o $@ $(ROOT)/bin/libs-double/*.o $< $(LDFLAGS) $(SDL_LDFLAGS) |
13 |
16 |
14 spheres_shadow: spheres_shadow.o image.o libs-float |
17 spheres_shadow: spheres_shadow.o image.o libs-float |
15 $(CXX) -o $@ $(ROOT)/bin/libs-float/*.o $< image.o $(LDFLAGS) -lpng |
18 $(CXX) -o $@ $(ROOT)/bin/libs-float/*.o $< image.o $(LDFLAGS) -lpng |
16 |
19 |
21 $(MAKE) -C ../src libs-double |
24 $(MAKE) -C ../src libs-double |
22 |
25 |
23 realtime.o: realtime.cc |
26 realtime.o: realtime.cc |
24 $(CXX) -c -o $@ $(CCFLAGS) $(SDL_CCFLAGS) $< $(DEFS) -DPYRIT_DOUBLE |
27 $(CXX) -c -o $@ $(CCFLAGS) $(SDL_CCFLAGS) $< $(DEFS) -DPYRIT_DOUBLE |
25 |
28 |
|
29 realtime_dragon.o: realtime_dragon.cc |
|
30 $(CXX) -c -o $@ $(CCFLAGS) $(SDL_CCFLAGS) $< $(DEFS) -DPYRIT_DOUBLE |
|
31 |
26 image.o: image.c |
32 image.o: image.c |
27 $(CXX) -c -o $@ $*.c |
33 $(CXX) -c -o $@ $*.c |
28 |
34 |
29 spheres_shadow.o: spheres_shadow.cc |
35 spheres_shadow.o: spheres_shadow.cc |
30 $(CXX) -c -o $@ $*.cc $(CCFLAGS) $(DEFS) |
36 $(CXX) -c -o $@ $*.cc $(CCFLAGS) $(DEFS) |