diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-05-29 01:06:09 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-05-29 01:06:09 +0200 |
| commit | f987f5af492f2ac9d5aeebd351bcb49175556af2 (patch) | |
| tree | e4a6a242996f83c2110dcf46dc2b7a3f271f2b44 /Makefile | |
| download | nissy-core-f987f5af492f2ac9d5aeebd351bcb49175556af2.tar.gz nissy-core-f987f5af492f2ac9d5aeebd351bcb49175556af2.zip | |
Initial commit
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 | ||
