aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
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 @@
1CFLAGS = -std=c99 -pedantic -Wall -Wextra -O3
2DBGFLAGS = -std=c99 -pedantic -Wall -Wextra -g3 -DDEBUG
3
4CC = cc
5
6all: cube.o debugcube.o
7
8cube.s: clean
9 ${CC} ${CFLAGS} -c -S -o cube.s cube.c
10
11cube.o: clean
12 ${CC} ${CFLAGS} -c -o cube.o cube.c
13
14debugcube.o: clean
15 ${CC} ${DBGFLAGS} -c -o debugcube.o cube.c
16
17clean:
18 rm -rf *.o
19
20test: debugcube.o
21 CUBETYPE=${CUBETYPE} TEST=${TEST} ./test/test.sh
22
23benchmark: cube.o
24 CUBETYPE=${CUBETYPE} ./benchmark/bench.sh
25
26.PHONY: all clean test benchmark

Generated with cgit - Back to sebastiano.tronto.net