-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
26 lines (19 loc) · 958 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
CC = gcc
CFLAGS = -O3 -ggdb -Wall -Wvla -lm -pthread #-fPIC -fsanitize=memory -fPIE -pie -fsanitize-memory-track-origins #fPIC for sanitize=memory
#export MSAN_SYMBOLIZER_PATH="/usr/lib/llvm-3.8/bin/llvm-symbolizer" Not in bin bc not unadorned https://stackoverflow.com/questions/38079761/why-does-asan-symbolizer-path-no-longer-work-with-version-adorned-binaries
all: stereo
generateImage: stereo
./stereo && ./makeIcosahedronNet.sh
stereo: RayPolygon managePNG coords.c
#Needs to end with lpthread bc gcc is picky and wants specific order
$(CC) $(CFLAGS) -o stereo stereo.c RayPolygon.o managePNG.o -lm -lpng # -fno-omit-frame-pointer -fsanitize=address #
RayPolygon:
$(CC) $(CFLAGS) -c RayPolygon.c
coords.c: icosahedronCoord.py
python icosahedronCoord.py
managePNG: managePNG.c
$(CC) $(CFLAGS) -c managePNG.c
clean:
$(RM) *.o stereo
$(RM) out/*.p*m out/png/*.png* out/png/rot/* out/*.png
$(RM) net.png cropped.png withSpaces.p*m in.p*m