branch | pyrit |
changeset 15 | a0a3e334744f |
child 16 | 20bceb605f48 |
14:fc18ac4833f2 | 15:a0a3e334744f |
---|---|
1 CCFLAGS=-g -I../src |
|
2 LDFLAGS=-L.. -lpng `python-config --libs` |
|
3 objs=image.o ../*.o |
|
4 |
|
5 all: image.o spheres_shadow |
|
6 |
|
7 %.o: %.c |
|
8 $(CXX) -c -o $@ $*.c |
|
9 |
|
10 %.o: %.cc |
|
11 $(CXX) -c -o $@ $*.cc $(CCFLAGS) |
|
12 |
|
13 %: %.o |
|
14 (cd .. && make) |
|
15 $(CXX) -o $@ $(objs) $*.o $(LDFLAGS) |
|
16 |
|
17 image.o: image.c |
|
18 spheres_shadow.o: spheres_shadow.cc |
|
19 spheres_shadow: spheres_shadow.o |
|
20 |
|
21 clean: |
|
22 rm -f spheres_shadow *.o |