diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-04-12 20:22:01 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-04-12 20:22:01 +0200 |
| commit | 72e018b066bd5cc3ce0181b43865a227e8b9b6ec (patch) | |
| tree | 60b2e8dbe7fd2dd7cf58ecd1606e03146329b516 /Makefile | |
| download | cubecore-72e018b066bd5cc3ce0181b43865a227e8b9b6ec.tar.gz cubecore-72e018b066bd5cc3ce0181b43865a227e8b9b6ec.zip | |
Initial fork from H48
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..448c625 --- /dev/null +++ b/Makefile | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | CFLAGS = -std=c99 -pedantic -Wall -Wextra -O3 | ||
| 2 | DBGFLAGS = -std=c99 -pedantic -Wall -Wextra -g3 -DDEBUG | ||
| 3 | |||
| 4 | CC = cc | ||
| 5 | |||
| 6 | all: cube.o debugcube.o | ||
| 7 | |||
| 8 | cube.s: clean | ||
| 9 | ${CC} ${CFLAGS} -c -S -o cube.s cube.c | ||
| 10 | |||
| 11 | cube.o: clean | ||
| 12 | ${CC} ${CFLAGS} -c -o cube.o cube.c | ||
| 13 | |||
| 14 | debugcube.o: clean | ||
| 15 | ${CC} ${DBGFLAGS} -c -o debugcube.o cube.c | ||
| 16 | |||
| 17 | clean: | ||
| 18 | rm -rf *.o | ||
| 19 | |||
| 20 | test: debugcube.o | ||
| 21 | CUBETYPE=${CUBETYPE} TEST=${TEST} ./test/test.sh | ||
| 22 | |||
| 23 | benchmark: cube.o | ||
| 24 | CUBETYPE=${CUBETYPE} ./benchmark/bench.sh | ||
| 25 | |||
| 26 | .PHONY: all clean test benchmark | ||
