aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 9ae2a4f..a0136f0 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
2 2
3CFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \ 3CFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \
4 -Wno-unused-parameter -O3 4 -Wno-unused-parameter -O3
5DBGFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \ 5DBGFLAGS = -DDEBUG -std=c99 -pthread -pedantic -Wall -Wextra \
6 -Wno-unused-parameter -Wno-unused-function -g3 \ 6 -Wno-unused-parameter -Wno-unused-function -g3 \
7 -fsanitize=address -fsanitize=undefined 7 -fsanitize=address -fsanitize=undefined
8 8
@@ -10,16 +10,19 @@ CC = cc
10 10
11all: solve 11all: solve
12 12
13solve: clean 13cube.o: clean
14 ${CC} ${CFLAGS} -o solve src/*.c 14 ${CC} ${CFLAGS} -c -o cube.o src/*.c
15 15
16debug: 16debugcube.o:
17 ${CC} ${DBGFLAGS} -o solve src/*.c 17 ${CC} ${DBGFLAGS} -c -o debugcube.o src/*.c
18 18
19clean: 19clean:
20 rm -rf solve 20 rm -rf solve
21 21
22test: 22test: debugcube.o
23 ./test/test.sh 23 ./test/test.sh
24 24
25.PHONY: all debug clean test 25benchmark: cube.o
26 ./benchmark/bench.sh
27
28.PHONY: all clean test benchmark

Generated with cgit - Back to sebastiano.tronto.net