Makefile
author Radek Brich <radek.brich@devl.cz>
Wed, 05 Dec 2007 18:54:23 +0100
branchpyrit
changeset 24 d0d76e8a5203
parent 22 76b7bd51d64a
child 40 929aad02c5f2
permissions -rw-r--r--
new C++ demo: realtime_dragon.cc class Container moved to its own source file (from kdtree.*) new directory for models and Makefile which downloads and prepares them fixed python module path in some forgotten demos ShapeList moved to scene.h

ROOT=$(shell pwd)
include config.mk

all: python-module demos ccdemos models

python-module: libs-float
	$(MAKE) -C src python-module

demos: python-module models
	$(MAKE) -C demos

ccdemos: libs-float libs-double models
	$(MAKE) -C ccdemos

models:
	$(MAKE) -C models

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

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

clean:
	$(MAKE) -C src clean
	$(MAKE) -C demos clean
	$(MAKE) -C ccdemos clean


# TARGETS
#########

tests: testvector testmatrix


# RULES
#######

test%: tests/%.cc
	$(CXX) -o $@ tests/$*.cc $(CCFLAGS)
	./$@


# DEPENDENCIES
##############


# library tests
testvector: tests/vector.cc src/vector.h