-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
83 lines (56 loc) · 2.35 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
incs = -I./include
include Makefile.inc
.PHONY: all clean build/fw1.a build/math.a tests/fw1.a tests/math.a
opts = $(libs) $(defs) $(incs)
all: cube_demos heightmap_demos superbible6_demos misc_demos
all: utilities philosopher
cube_demos: cube texcube litcube speccube bumpcube heightcube
heightmap_demos: heightmap heighttex heightspec
superbible6_demos: basic sb2 sb2_2 sb3_1 sb3_1ff sb3_2 sb3_3 sb3_4 sb5_1 sb5_1-spin
misc_demos: fakesphere pyramid
philosopher: philosopher-test philosopher-naive philosopher-trywait
utilities: height2normal stlviewer
clean:
rm -f build/* *.o primitives/*.o
cd ./fw1 && $(MAKE) clean
cd ./math && $(MAKE) clean
cd ./philosopher && ${MAKE} clean
doc:
doxygen doxygen.cfg
build/fw1.a: fw1/*
cd fw1 && $(MAKE)
build/math.a:
cd math && $(MAKE)
build/philosopher.a: philosopher/*
cd philosopher && ${MAKE}
build/philosopher-naive.a: philosopher/*
cd philosopher && ${MAKE}
tests/fw1.a:
cd ./fw1 && $(MAKE) tests
tests/math.a:
cd ./math && $(MAKE) tests
test: tests.cpp tests/fw1.a tests/math.a
$(CC) $(incs) $^ -o $@ -lcppunit $(libs)
./test
basic: basic.o build/fw1.a
$(CC) $(incs) $^ -o build/$@ $(libs)
%ube: %ube.o build/fw1.a build/math.a SB6_BasicApp.o CubeApp.o primitives/Cube.o
$(CC) $(incs) $^ -o build/$@ $(libs)
sb%: sb%.o build/fw1.a build/math.a SB6_BasicApp.o
$(CC) $(incs) $^ -o build/$@ $(libs)
%viewer: %viewer.o build/fw1.a build/math.a SB6_BasicApp.o
$(CC) $(incs) $^ -o build/$@ $(libs)
pyramid: pyramid.o build/fw1.a build/math.a SB6_BasicApp.o primitives/Pyramid.o
$(CC) $(incs) $^ -o build/$@ $(libs)
fakesphere: fakesphere.o build/fw1.a build/math.a SB6_BasicApp.o primitives/Pyramid.o
$(CC) $(incs) $^ -o build/$@ $(libs)
height%: height%.o build/fw1.a build/math.a SB6_BasicApp.o
$(CC) $(incs) $^ -o build/$@ $(libs)
bumptest: bumptest.o build/fw1.a build/math.a SB6_BasicApp.o
$(CC) $(incs) $^ -o build/$@ $(libs)
philosopher-test: philosopher-test.o build/philosopher.a build/fw1.a build/math.a
$(CC) $(incs) -pthread $^ -o build/$@ $(libs)
philosopher-naive: philosopher-naive.o build/philosopher.a build/philosopher-naive.a build/fw1.a build/math.a
$(CC) $(incs) -pthread $^ -o build/$@ $(libs)
philosopher-trywait: philosopher-trywait.o build/philosopher.a build/philosopher-trywait.a build/fw1.a build/math.a
$(CC) $(incs) -pthread $^ -o build/$@ $(libs)