author | Radek Brich <radek.brich@devl.cz> |
Sat, 08 Dec 2007 12:37:45 +0100 | |
branch | pyrit |
changeset 28 | ffe83ca074f3 |
parent 25 | b8232edee786 |
child 29 | 574c34441a1c |
permissions | -rw-r--r-- |
22 | 1 |
ifndef $(ROOT) |
2 |
ROOT=$(shell pwd)/.. |
|
3 |
endif |
|
4 |
||
5 |
include $(ROOT)/config.mk |
|
6 |
||
7 |
||
8 |
### Targets ### |
|
24
d0d76e8a5203
new C++ demo: realtime_dragon.cc
Radek Brich <radek.brich@devl.cz>
parents:
22
diff
changeset
|
9 |
all: realtime realtime_dragon spheres_shadow |
22 | 10 |
|
11 |
realtime: realtime.o libs-double |
|
12 |
$(CXX) -o $@ $(ROOT)/bin/libs-double/*.o $< $(LDFLAGS) $(SDL_LDFLAGS) |
|
15
a0a3e334744f
C++ demos: prepare infrastructure, add spheres_shadow.cc
Radek Brich <radek.brich@devl.cz>
parents:
diff
changeset
|
13 |
|
24
d0d76e8a5203
new C++ demo: realtime_dragon.cc
Radek Brich <radek.brich@devl.cz>
parents:
22
diff
changeset
|
14 |
realtime_dragon: realtime_dragon.o libs-double |
d0d76e8a5203
new C++ demo: realtime_dragon.cc
Radek Brich <radek.brich@devl.cz>
parents:
22
diff
changeset
|
15 |
$(CXX) -o $@ $(ROOT)/bin/libs-double/*.o $< $(LDFLAGS) $(SDL_LDFLAGS) |
d0d76e8a5203
new C++ demo: realtime_dragon.cc
Radek Brich <radek.brich@devl.cz>
parents:
22
diff
changeset
|
16 |
|
22 | 17 |
spheres_shadow: spheres_shadow.o image.o libs-float |
18 |
$(CXX) -o $@ $(ROOT)/bin/libs-float/*.o $< image.o $(LDFLAGS) -lpng |
|
19 |
||
20 |
libs-float: |
|
21 |
$(MAKE) -C ../src libs-float |
|
15
a0a3e334744f
C++ demos: prepare infrastructure, add spheres_shadow.cc
Radek Brich <radek.brich@devl.cz>
parents:
diff
changeset
|
22 |
|
22 | 23 |
libs-double: |
24 |
$(MAKE) -C ../src libs-double |
|
25 |
||
26 |
realtime.o: realtime.cc |
|
27 |
$(CXX) -c -o $@ $(CCFLAGS) $(SDL_CCFLAGS) $< $(DEFS) -DPYRIT_DOUBLE |
|
28 |
||
24
d0d76e8a5203
new C++ demo: realtime_dragon.cc
Radek Brich <radek.brich@devl.cz>
parents:
22
diff
changeset
|
29 |
realtime_dragon.o: realtime_dragon.cc |
d0d76e8a5203
new C++ demo: realtime_dragon.cc
Radek Brich <radek.brich@devl.cz>
parents:
22
diff
changeset
|
30 |
$(CXX) -c -o $@ $(CCFLAGS) $(SDL_CCFLAGS) $< $(DEFS) -DPYRIT_DOUBLE |
d0d76e8a5203
new C++ demo: realtime_dragon.cc
Radek Brich <radek.brich@devl.cz>
parents:
22
diff
changeset
|
31 |
|
22 | 32 |
image.o: image.c |
15
a0a3e334744f
C++ demos: prepare infrastructure, add spheres_shadow.cc
Radek Brich <radek.brich@devl.cz>
parents:
diff
changeset
|
33 |
$(CXX) -c -o $@ $*.c |
a0a3e334744f
C++ demos: prepare infrastructure, add spheres_shadow.cc
Radek Brich <radek.brich@devl.cz>
parents:
diff
changeset
|
34 |
|
a0a3e334744f
C++ demos: prepare infrastructure, add spheres_shadow.cc
Radek Brich <radek.brich@devl.cz>
parents:
diff
changeset
|
35 |
spheres_shadow.o: spheres_shadow.cc |
22 | 36 |
$(CXX) -c -o $@ $*.cc $(CCFLAGS) $(DEFS) |
15
a0a3e334744f
C++ demos: prepare infrastructure, add spheres_shadow.cc
Radek Brich <radek.brich@devl.cz>
parents:
diff
changeset
|
37 |
|
a0a3e334744f
C++ demos: prepare infrastructure, add spheres_shadow.cc
Radek Brich <radek.brich@devl.cz>
parents:
diff
changeset
|
38 |
clean: |
25
b8232edee786
tuned ray-triangle intersection, now there are three algorithms to choose from:
Radek Brich <radek.brich@devl.cz>
parents:
24
diff
changeset
|
39 |
rm -f spheres_shadow realtime realtime_dragon *.o |