Makefile
author Radek Brich <radek.brich@devl.cz>
Mon, 03 Dec 2007 01:49:23 +0100
branchpyrit
changeset 22 76b7bd51d64a
parent 17 5176ba000a67
child 24 d0d76e8a5203
permissions -rw-r--r--
new make infrastructure generalize floats to Floats, allow compiling as both double/float

ROOT=$(shell pwd)
include config.mk

all: python-module demos ccdemos

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

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

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

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