author | Radek Brich <radek.brich@devl.cz> |
Mon, 03 Dec 2007 01:49:23 +0100 | |
branch | pyrit |
changeset 22 | 76b7bd51d64a |
parent 20 | f22952603f29 |
child 24 | d0d76e8a5203 |
permissions | -rw-r--r-- |
22 | 1 |
ifndef $(ROOT) |
2 |
ROOT=$(shell pwd)/.. |
|
3 |
endif |
|
4 |
||
5 |
include $(ROOT)/config.mk |
|
6 |
||
7 |
||
8 |
### Targets ### |
|
9 |
all: realtime spheres_shadow |
|
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 |
|
22 | 14 |
spheres_shadow: spheres_shadow.o image.o libs-float |
15 |
$(CXX) -o $@ $(ROOT)/bin/libs-float/*.o $< image.o $(LDFLAGS) -lpng |
|
16 |
||
17 |
libs-float: |
|
18 |
$(MAKE) -C ../src libs-float |
|
15
a0a3e334744f
C++ demos: prepare infrastructure, add spheres_shadow.cc
Radek Brich <radek.brich@devl.cz>
parents:
diff
changeset
|
19 |
|
22 | 20 |
libs-double: |
21 |
$(MAKE) -C ../src libs-double |
|
22 |
||
23 |
realtime.o: realtime.cc |
|
24 |
$(CXX) -c -o $@ $(CCFLAGS) $(SDL_CCFLAGS) $< $(DEFS) -DPYRIT_DOUBLE |
|
25 |
||
26 |
image.o: image.c |
|
15
a0a3e334744f
C++ demos: prepare infrastructure, add spheres_shadow.cc
Radek Brich <radek.brich@devl.cz>
parents:
diff
changeset
|
27 |
$(CXX) -c -o $@ $*.c |
a0a3e334744f
C++ demos: prepare infrastructure, add spheres_shadow.cc
Radek Brich <radek.brich@devl.cz>
parents:
diff
changeset
|
28 |
|
a0a3e334744f
C++ demos: prepare infrastructure, add spheres_shadow.cc
Radek Brich <radek.brich@devl.cz>
parents:
diff
changeset
|
29 |
spheres_shadow.o: spheres_shadow.cc |
22 | 30 |
$(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
|
31 |
|
a0a3e334744f
C++ demos: prepare infrastructure, add spheres_shadow.cc
Radek Brich <radek.brich@devl.cz>
parents:
diff
changeset
|
32 |
clean: |
20
f22952603f29
new C++ demo: realtime.cc (real-time scene viewer using SDL)
Radek Brich <radek.brich@devl.cz>
parents:
16
diff
changeset
|
33 |
rm -f spheres_shadow realtime *.o |