diff options
Diffstat (limited to '')
| -rw-r--r-- | Makefile | 17 |
1 files changed, 10 insertions, 7 deletions
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | CFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \ | 3 | CFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \ |
| 4 | -Wno-unused-parameter -O3 | 4 | -Wno-unused-parameter -O3 |
| 5 | DBGFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \ | 5 | DBGFLAGS = -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 | ||
| 11 | all: solve | 11 | all: solve |
| 12 | 12 | ||
| 13 | solve: clean | 13 | cube.o: clean |
| 14 | ${CC} ${CFLAGS} -o solve src/*.c | 14 | ${CC} ${CFLAGS} -c -o cube.o src/*.c |
| 15 | 15 | ||
| 16 | debug: | 16 | debugcube.o: |
| 17 | ${CC} ${DBGFLAGS} -o solve src/*.c | 17 | ${CC} ${DBGFLAGS} -c -o debugcube.o src/*.c |
| 18 | 18 | ||
| 19 | clean: | 19 | clean: |
| 20 | rm -rf solve | 20 | rm -rf solve |
| 21 | 21 | ||
| 22 | test: | 22 | test: debugcube.o |
| 23 | ./test/test.sh | 23 | ./test/test.sh |
| 24 | 24 | ||
| 25 | .PHONY: all debug clean test | 25 | benchmark: cube.o |
| 26 | ./benchmark/bench.sh | ||
| 27 | |||
| 28 | .PHONY: all clean test benchmark | ||
