-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (17 loc) · 736 Bytes
/
Makefile
File metadata and controls
23 lines (17 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
all: open-simplex-noise.o open-simplex-noise-test
SANITIZE=
# SANITIZE=-fsanitize=undefined
# SANITIZE=-fsanitize=address
CFLAGS=-W -Wall -Wextra -O3 ${SANITIZE}
#CFLAGS=-W -Wall -Wextra -g
open-simplex-noise-test: open-simplex-noise-test.c open-simplex-noise.o
${CC} ${CFLAGS} -o open-simplex-noise-test open-simplex-noise.o open-simplex-noise-test.c -lpng
open-simplex-noise.o: open-simplex-noise.h open-simplex-noise.c Makefile
${CC} ${CFLAGS} -c open-simplex-noise.c
clean:
rm -f open-simplex-noise.o open-simplex-noise-test test2d.png test3d.png test4d.png
scan-build:
make clean
rm -fr /tmp/osn-scan-build-output
scan-build -o /tmp/osn-scan-build-output make CC=clang
xdg-open /tmp/osn-scan-build-output/*/index.html