Makefile
author Radek Brich <radek.brich@devl.cz>
Fri, 14 Dec 2007 10:34:31 +0100
branchpyrit
changeset 38 5d043eeb09d9
parent 24 d0d76e8a5203
child 40 929aad02c5f2
permissions -rw-r--r--
realtime_dragon demo: now fullsize model + octree realtime_bunny demo: bigger resolution Box, Sphere: implemented AABB intersection new stop condition for octree building (when number of shapes in children >= 6x shapes in parent node) fixes for octree traversal
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
22
76b7bd51d64a new make infrastructure
Radek Brich <radek.brich@devl.cz>
parents: 17
diff changeset
     1
ROOT=$(shell pwd)
76b7bd51d64a new make infrastructure
Radek Brich <radek.brich@devl.cz>
parents: 17
diff changeset
     2
include config.mk
76b7bd51d64a new make infrastructure
Radek Brich <radek.brich@devl.cz>
parents: 17
diff changeset
     3
24
d0d76e8a5203 new C++ demo: realtime_dragon.cc
Radek Brich <radek.brich@devl.cz>
parents: 22
diff changeset
     4
all: python-module demos ccdemos models
22
76b7bd51d64a new make infrastructure
Radek Brich <radek.brich@devl.cz>
parents: 17
diff changeset
     5
76b7bd51d64a new make infrastructure
Radek Brich <radek.brich@devl.cz>
parents: 17
diff changeset
     6
python-module: libs-float
76b7bd51d64a new make infrastructure
Radek Brich <radek.brich@devl.cz>
parents: 17
diff changeset
     7
	$(MAKE) -C src python-module
76b7bd51d64a new make infrastructure
Radek Brich <radek.brich@devl.cz>
parents: 17
diff changeset
     8
24
d0d76e8a5203 new C++ demo: realtime_dragon.cc
Radek Brich <radek.brich@devl.cz>
parents: 22
diff changeset
     9
demos: python-module models
22
76b7bd51d64a new make infrastructure
Radek Brich <radek.brich@devl.cz>
parents: 17
diff changeset
    10
	$(MAKE) -C demos
0
3547b885df7e initial commit, raytracer source as written year ago and unchanged since 2007-03-25
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    11
24
d0d76e8a5203 new C++ demo: realtime_dragon.cc
Radek Brich <radek.brich@devl.cz>
parents: 22
diff changeset
    12
ccdemos: libs-float libs-double models
22
76b7bd51d64a new make infrastructure
Radek Brich <radek.brich@devl.cz>
parents: 17
diff changeset
    13
	$(MAKE) -C ccdemos
76b7bd51d64a new make infrastructure
Radek Brich <radek.brich@devl.cz>
parents: 17
diff changeset
    14
24
d0d76e8a5203 new C++ demo: realtime_dragon.cc
Radek Brich <radek.brich@devl.cz>
parents: 22
diff changeset
    15
models:
d0d76e8a5203 new C++ demo: realtime_dragon.cc
Radek Brich <radek.brich@devl.cz>
parents: 22
diff changeset
    16
	$(MAKE) -C models
d0d76e8a5203 new C++ demo: realtime_dragon.cc
Radek Brich <radek.brich@devl.cz>
parents: 22
diff changeset
    17
22
76b7bd51d64a new make infrastructure
Radek Brich <radek.brich@devl.cz>
parents: 17
diff changeset
    18
libs-float:
76b7bd51d64a new make infrastructure
Radek Brich <radek.brich@devl.cz>
parents: 17
diff changeset
    19
	$(MAKE) -C src libs-float
0
3547b885df7e initial commit, raytracer source as written year ago and unchanged since 2007-03-25
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    20
22
76b7bd51d64a new make infrastructure
Radek Brich <radek.brich@devl.cz>
parents: 17
diff changeset
    21
libs-double:
76b7bd51d64a new make infrastructure
Radek Brich <radek.brich@devl.cz>
parents: 17
diff changeset
    22
	$(MAKE) -C src libs-double
76b7bd51d64a new make infrastructure
Radek Brich <radek.brich@devl.cz>
parents: 17
diff changeset
    23
76b7bd51d64a new make infrastructure
Radek Brich <radek.brich@devl.cz>
parents: 17
diff changeset
    24
clean:
76b7bd51d64a new make infrastructure
Radek Brich <radek.brich@devl.cz>
parents: 17
diff changeset
    25
	$(MAKE) -C src clean
76b7bd51d64a new make infrastructure
Radek Brich <radek.brich@devl.cz>
parents: 17
diff changeset
    26
	$(MAKE) -C demos clean
76b7bd51d64a new make infrastructure
Radek Brich <radek.brich@devl.cz>
parents: 17
diff changeset
    27
	$(MAKE) -C ccdemos clean
0
3547b885df7e initial commit, raytracer source as written year ago and unchanged since 2007-03-25
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    28
3547b885df7e initial commit, raytracer source as written year ago and unchanged since 2007-03-25
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    29
3547b885df7e initial commit, raytracer source as written year ago and unchanged since 2007-03-25
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    30
# TARGETS
3547b885df7e initial commit, raytracer source as written year ago and unchanged since 2007-03-25
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    31
#########
3547b885df7e initial commit, raytracer source as written year ago and unchanged since 2007-03-25
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    32
3547b885df7e initial commit, raytracer source as written year ago and unchanged since 2007-03-25
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    33
tests: testvector testmatrix
3547b885df7e initial commit, raytracer source as written year ago and unchanged since 2007-03-25
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    34
3547b885df7e initial commit, raytracer source as written year ago and unchanged since 2007-03-25
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    35
3547b885df7e initial commit, raytracer source as written year ago and unchanged since 2007-03-25
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    36
# RULES
3547b885df7e initial commit, raytracer source as written year ago and unchanged since 2007-03-25
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    37
#######
3547b885df7e initial commit, raytracer source as written year ago and unchanged since 2007-03-25
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    38
17
5176ba000a67 fix last leak as reported by valgrind
Radek Brich <radek.brich@devl.cz>
parents: 16
diff changeset
    39
test%: tests/%.cc
5176ba000a67 fix last leak as reported by valgrind
Radek Brich <radek.brich@devl.cz>
parents: 16
diff changeset
    40
	$(CXX) -o $@ tests/$*.cc $(CCFLAGS)
0
3547b885df7e initial commit, raytracer source as written year ago and unchanged since 2007-03-25
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    41
	./$@
3547b885df7e initial commit, raytracer source as written year ago and unchanged since 2007-03-25
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    42
3547b885df7e initial commit, raytracer source as written year ago and unchanged since 2007-03-25
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    43
3547b885df7e initial commit, raytracer source as written year ago and unchanged since 2007-03-25
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    44
# DEPENDENCIES
3547b885df7e initial commit, raytracer source as written year ago and unchanged since 2007-03-25
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    45
##############
3547b885df7e initial commit, raytracer source as written year ago and unchanged since 2007-03-25
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    46
3547b885df7e initial commit, raytracer source as written year ago and unchanged since 2007-03-25
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    47
3547b885df7e initial commit, raytracer source as written year ago and unchanged since 2007-03-25
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    48
# library tests
3547b885df7e initial commit, raytracer source as written year ago and unchanged since 2007-03-25
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    49
testvector: tests/vector.cc src/vector.h