ccdemos/Makefile
author Radek Brich <radek.brich@devl.cz>
Mon, 26 Nov 2007 23:12:40 +0100
branchpyrit
changeset 19 4e0955fca797
parent 16 20bceb605f48
child 20 f22952603f29
permissions -rw-r--r--
added Camera, currently w/o Python binding new #define option: OVERSAMPLING fixed all demos to work with new camera (they had inverted z axis)

CCFLAGS=-g -O0 -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