ccdemos/Makefile
author Radek Brich <radek.brich@devl.cz>
Sun, 25 Nov 2007 17:58:29 +0100
branchpyrit
changeset 15 a0a3e334744f
child 16 20bceb605f48
permissions -rw-r--r--
C++ demos: prepare infrastructure, add spheres_shadow.cc rename Ray::a to Ray::o KdNode::shapes changed to pointer and added to union together with *children (to save memory)

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