Makefile
author Radek Brich <radek.brich@devl.cz>
Wed, 12 Dec 2007 19:59:19 +0100
branchpyrit
changeset 35 fb170fccb19f
parent 24 d0d76e8a5203
child 40 929aad02c5f2
permissions -rw-r--r--
new space partitioning structure: octree realtime_bunny updated to use octree plus other files updated to be container type independent (only user programs are supposed to include and use special containers)

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