diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9ae2a4f --- /dev/null +++ b/Makefile | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | # See LICENSE file for copyright and license details. | ||
| 2 | |||
| 3 | CFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \ | ||
| 4 | -Wno-unused-parameter -O3 | ||
| 5 | DBGFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \ | ||
| 6 | -Wno-unused-parameter -Wno-unused-function -g3 \ | ||
| 7 | -fsanitize=address -fsanitize=undefined | ||
| 8 | |||
| 9 | CC = cc | ||
| 10 | |||
| 11 | all: solve | ||
| 12 | |||
| 13 | solve: clean | ||
| 14 | ${CC} ${CFLAGS} -o solve src/*.c | ||
| 15 | |||
| 16 | debug: | ||
| 17 | ${CC} ${DBGFLAGS} -o solve src/*.c | ||
| 18 | |||
| 19 | clean: | ||
| 20 | rm -rf solve | ||
| 21 | |||
| 22 | test: | ||
| 23 | ./test/test.sh | ||
| 24 | |||
| 25 | .PHONY: all debug clean test | ||
