ccdemos/Makefile
author Radek Brich <radek.brich@devl.cz>
Tue, 04 Dec 2007 08:58:05 +0100
branchpyrit
changeset 23 7e258561a690
parent 22 76b7bd51d64a
child 24 d0d76e8a5203
permissions -rw-r--r--
fix a bug in KdNode::subdivide and remove some extra variables realtime.cc - use SW surface

ifndef $(ROOT)
	ROOT=$(shell pwd)/..
endif

include $(ROOT)/config.mk


### Targets ###
all: realtime spheres_shadow

realtime: realtime.o libs-double
	$(CXX) -o $@ $(ROOT)/bin/libs-double/*.o $< $(LDFLAGS) $(SDL_LDFLAGS)

spheres_shadow: spheres_shadow.o image.o libs-float
	$(CXX) -o $@ $(ROOT)/bin/libs-float/*.o $< image.o $(LDFLAGS) -lpng

libs-float:
	$(MAKE) -C ../src libs-float

libs-double:
	$(MAKE) -C ../src libs-double

realtime.o: realtime.cc
	$(CXX) -c -o $@ $(CCFLAGS) $(SDL_CCFLAGS) $< $(DEFS) -DPYRIT_DOUBLE

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

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

clean:
	rm -f spheres_shadow realtime *.o