equal
deleted
inserted
replaced
19 |
19 |
20 %: %.o |
20 %: %.o |
21 $(CXX) -o $@ $(ROOT)/bin/$(RTLIBS)/*.o $< image.o $(LDFLAGS) $(SDL_LDFLAGS) -lpng |
21 $(CXX) -o $@ $(ROOT)/bin/$(RTLIBS)/*.o $< image.o $(LDFLAGS) $(SDL_LDFLAGS) -lpng |
22 |
22 |
23 ### Targets ### |
23 ### Targets ### |
24 all: realtime realtime_dragon realtime_bunny spheres_shadow |
24 all: realtime realtime_dragon realtime_bunny spheres_shadow textures |
25 |
25 |
26 realtime: realtime.o $(RTLIBS) image.o |
26 realtime: realtime.o $(RTLIBS) image.o |
27 realtime_dragon: realtime_dragon.o $(RTLIBS) image.o |
27 realtime_dragon: realtime_dragon.o $(RTLIBS) image.o |
28 realtime_bunny: realtime_bunny.o $(RTLIBS) image.o |
28 realtime_bunny: realtime_bunny.o $(RTLIBS) image.o |
29 spheres_shadow: spheres_shadow.o $(RTLIBS) image.o |
29 spheres_shadow: spheres_shadow.o $(RTLIBS) image.o |
|
30 textures: textures.o $(RTLIBS) image.o |
30 |
31 |
31 realtime.o: realtime.cc common_sdl.h |
32 realtime.o: realtime.cc common_sdl.h |
32 realtime_dragon.o: realtime_dragon.cc common_sdl.h common_ply.h |
33 realtime_dragon.o: realtime_dragon.cc common_sdl.h common_ply.h |
33 realtime_bunny.o: realtime_bunny.cc common_sdl.h common_ply.h |
34 realtime_bunny.o: realtime_bunny.cc common_sdl.h common_ply.h |
34 spheres_shadow.o: spheres_shadow.cc common_sdl.h |
35 spheres_shadow.o: spheres_shadow.cc common_sdl.h |
|
36 textures.o: textures.cc common_sdl.h |
35 |
37 |
36 libs-float: |
38 libs-float: |
37 $(MAKE) -C ../src libs-float |
39 $(MAKE) -C ../src libs-float |
38 |
40 |
39 libs-double: |
41 libs-double: |
41 |
43 |
42 image.o: image.c |
44 image.o: image.c |
43 $(CXX) -c -o $@ $*.c |
45 $(CXX) -c -o $@ $*.c |
44 |
46 |
45 clean: |
47 clean: |
46 rm -f spheres_shadow realtime realtime_dragon realtime_bunny *.o |
48 rm -f realtime realtime_dragon realtime_bunny spheres_shadow textures *.o |
47 |
49 |
48 distclean: clean |
50 distclean: clean |
49 rm -rf *.png |
51 rm -rf *.png |