-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathMakefile
52 lines (39 loc) · 1.28 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
DOXYGEN := doxygen
CXXFLAGS := -Wall -Wextra -Werror -Wfatal-errors
CXXFLAGS := $(CXXFLAGS) -I $(CURDIR)/include
CXXFLAGS := $(CXXFLAGS) -std=c++14
VPATH += include/fast_bvh
headers := include/FastBVH.h \
include/FastBVH/BBox.h \
include/FastBVH/BuildStrategy1.h \
include/FastBVH/BuildStrategy.h \
include/FastBVH/BVH.h \
include/FastBVH/Config.h \
include/FastBVH/Intersection.h \
include/FastBVH/Iterable.h \
include/FastBVH/Ray.h \
include/FastBVH/Traverser.h \
include/FastBVH/Vector3.h
example_headers := examples/Log.h \
examples/SimpleScheduler.h \
examples/Stopwatch.h \
examples/tiny_obj_loader.h
examples := examples/CubeOfSpheres \
examples/ObjFile
.PHONY: all
all: simple-target
.PHONY: simple-target
simple-target: $(examples)
examples/CubeOfSpheres: examples/CubeOfSpheres.cpp $(headers) $(example_headers)
examples/ObjFile: examples/ObjFile.cpp $(headers) $(example_headers)
$(CXX) $(CXXFLAGS) -I $(CURDIR)/examples examples/tiny_obj_loader.cc $< -o $@
examples/%: examples/%.cpp
$(CXX) $(CXXFLAGS) $< -o $@
.PHONY: clean
clean:
$(RM) $(examples)
.PHONY: test
test:
.PHONY: docs
docs:
$(DOXYGEN)