-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (21 loc) · 965 Bytes
/
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
CC = g++
CC_DEBUG = @$(CC) -std=c++11
CC_RELEASE = @$(CC) -std=c++11 -O3 -DNDEBUG
G_DEPS = src/core/*.cpp src/patterns/*.cpp
G_INC = -I.
canvas: $(G_DEPS) tests/CanvasTest.cpp
$(CC_DEBUG) $(G_INC) $(G_DEPS) tests/CanvasTest.cpp -o canvas
matrix: $(G_DEPS) tests/MatrixTest.cpp
$(CC_DEBUG) $(G_INC) $(G_DEPS) tests/MatrixTest.cpp -o matrix
transformations: $(G_DEPS) tests/TransformationsTest.cpp
$(CC_DEBUG) $(G_INC) $(G_DEPS) tests/TransformationsTest.cpp -o transformations
spheres: $(G_DEPS) tests/SpheresTest.cpp
$(CC_DEBUG) $(G_INC) $(G_DEPS) tests/SpheresTest.cpp -o spheres
phong: $(G_DEPS) tests/PhongTest.cpp
$(CC_DEBUG) $(G_INC) $(G_DEPS) tests/PhongTest.cpp -o phong
world: $(G_DEPS) tests/WorldTest.cpp
$(CC_DEBUG) $(G_INC) $(G_DEPS) tests/WorldTest.cpp -o world
patterns: $(G_DEPS) tests/WorldTest.cpp
$(CC_DEBUG) $(G_INC) $(G_DEPS) tests/WorldTest.cpp -o world
clean:
@rm -rf canvas matrix transformations spheres phong world *.ppm