aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 5fc8232016e36b2e7fc6dd8ecf797512154f5b4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
CFLAGS = -std=c99 -pedantic -Wall -Wextra -O3
DBGFLAGS = -std=c99 -pedantic -Wall -Wextra -g3 -DDEBUG

CC = cc

all: cleancube cube.o

cleancube:
	rm -rf cube.o

cube.o:
	${CC} ${CFLAGS} -c -o cube.o cube.c

cleandebug:
	rm -rf debugcube.o

debugcube.o:
	${CC} ${DBGFLAGS} -c -o debugcube.o cube.c

clean:
	rm -rf *.o

test: cleandebug debugcube.o
	CUBETYPE=${CUBETYPE} TEST=${TEST} ./test/test.sh

benchmark: cube.o
	CUBETYPE=${CUBETYPE} ./benchmark/bench.sh

.PHONY: all clean cleancube cleandebug test benchmark

Generated with cgit - Back to sebastiano.tronto.net