ccdemos/Makefile
author Radek Brich <radek.brich@devl.cz>
Fri, 30 Nov 2007 00:44:51 +0100
branchpyrit
changeset 21 79b516a3803d
parent 20 f22952603f29
child 22 76b7bd51d64a
permissions -rw-r--r--
naive color driven sub-sampling slightly optimized KdTree::nearest_intersection fixed bug in Box::intersect fixed stripes on spheres in spheres_ao.py (was caused by AO distance) new KdTree property: max_depth minor changes in realtime.py

CCFLAGS=-g -O3 -I../src
LDFLAGS=-L.. -pthread
RGBLIB_LDFLAGS=$(LDFLAGS) -lpng
SDL_CCFLAGS=$(CCFLAGS) $(shell sdl-config --cflags)
SDL_LDFLAGS=$(LDFLAGS) $(shell sdl-config --libs)
PYRIT_OBJS=$(shell ls ../*.o | grep -v raytracermodule)

all: spheres_shadow realtime

%.o: %.c
	$(CXX) -c -o $@ $*.c

%.o: %.cc
	$(CXX) -c -o $@ $*.cc $(CCFLAGS)

%: %.o
	(cd .. && make)
	$(CXX) -o $@ $(PYRIT_OBJS) $^ $(RGBLIB_LDFLAGS)

image.o: image.c
spheres_shadow.o: spheres_shadow.cc
spheres_shadow: spheres_shadow.o image.o

realtime: realtime.cc
	$(CXX) -o $@ $@.cc $(SDL_CCFLAGS) -L.. $(PYRIT_OBJS) $(SDL_LDFLAGS)

clean:
	rm -f spheres_shadow realtime *.o