aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 448c625..5fc8232 100644
--- a/Makefile
+++ b/Makefile
@@ -3,24 +3,27 @@ DBGFLAGS = -std=c99 -pedantic -Wall -Wextra -g3 -DDEBUG
3 3
4CC = cc 4CC = cc
5 5
6all: cube.o debugcube.o 6all: cleancube cube.o
7 7
8cube.s: clean 8cleancube:
9 ${CC} ${CFLAGS} -c -S -o cube.s cube.c 9 rm -rf cube.o
10 10
11cube.o: clean 11cube.o:
12 ${CC} ${CFLAGS} -c -o cube.o cube.c 12 ${CC} ${CFLAGS} -c -o cube.o cube.c
13 13
14debugcube.o: clean 14cleandebug:
15 rm -rf debugcube.o
16
17debugcube.o:
15 ${CC} ${DBGFLAGS} -c -o debugcube.o cube.c 18 ${CC} ${DBGFLAGS} -c -o debugcube.o cube.c
16 19
17clean: 20clean:
18 rm -rf *.o 21 rm -rf *.o
19 22
20test: debugcube.o 23test: cleandebug debugcube.o
21 CUBETYPE=${CUBETYPE} TEST=${TEST} ./test/test.sh 24 CUBETYPE=${CUBETYPE} TEST=${TEST} ./test/test.sh
22 25
23benchmark: cube.o 26benchmark: cube.o
24 CUBETYPE=${CUBETYPE} ./benchmark/bench.sh 27 CUBETYPE=${CUBETYPE} ./benchmark/bench.sh
25 28
26.PHONY: all clean test benchmark 29.PHONY: all clean cleancube cleandebug test benchmark

Generated with cgit - Back to sebastiano.tronto.net