-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.unix
40 lines (29 loc) · 958 Bytes
/
Makefile.unix
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
#
# Makefile
# ndt: n-dimensional tracer
#
# Copyright (c) 2019 Bryan Franklin. All rights reserved.
#
include common.mk
.PHONY: clean scenes objects test valgrind docker docker-run
all: ndt objects scenes
get-deps:
$(DEP_CMD) $(DEPS)
docker:
docker build -t ndt .
docker-run: docker
docker run -it -v `pwd`/images:/app/images -v `pwd`/yaml:/app/yaml ndt
ndt: ndt.o vectNd.o image.o scene.o camera.o matrix.o kmeans.o timing.o map.o object.o bounding.o nelder-mead.o
$(LD) -o ndt $(LDFLAGS) $% $^
scenes:
make -C scenes -f Makefile.unix
objects:
make -C objects -f Makefile.unix
valgrind: ndt objects scenes
valgrind --leak-check=full --show-reachable=yes --vgdb-error=0 -v ./ndt -r 60x45 -t 4 -k 8 -f 64:67:300 -w -d 5 -s scenes/random.so
test: scenes ndt objects
./ndt -w 40 -h 30 -t 4 -k 10 -f 300 -i 5 -e 7 -q f -s scenes/random.so -d 5
clean:
rm -f *.o
make -C scenes -f Makefile.unix clean
make -C objects -f Makefile.unix clean