aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-10-22 23:34:53 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2023-10-22 23:43:36 +0200
commitb3622e04dfb8317b745f8c911d31dc80bc2f9d66 (patch)
tree825e54d062667a6cb76ff36730a8e36444fa20ba /Makefile
parent4a7e2dccaa54bc42a4b67cf35cf8b926cf357bb3 (diff)
downloadnissy-core-b3622e04dfb8317b745f8c911d31dc80bc2f9d66.tar.gz
nissy-core-b3622e04dfb8317b745f8c911d31dc80bc2f9d66.zip
Preparatory work for benchmarks, little fixes
Diffstat (limited to '')
-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