diff -r fc18ac4833f2 -r a0a3e334744f ccdemos/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ccdemos/Makefile Sun Nov 25 17:58:29 2007 +0100 @@ -0,0 +1,22 @@ +CCFLAGS=-g -I../src +LDFLAGS=-L.. -lpng `python-config --libs` +objs=image.o ../*.o + +all: image.o spheres_shadow + +%.o: %.c + $(CXX) -c -o $@ $*.c + +%.o: %.cc + $(CXX) -c -o $@ $*.cc $(CCFLAGS) + +%: %.o + (cd .. && make) + $(CXX) -o $@ $(objs) $*.o $(LDFLAGS) + +image.o: image.c +spheres_shadow.o: spheres_shadow.cc +spheres_shadow: spheres_shadow.o + +clean: + rm -f spheres_shadow *.o