aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 448c6253fc46ba09e0741390d105f1f9abf1e467 (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
CFLAGS = -std=c99 -pedantic -Wall -Wextra -O3
DBGFLAGS = -std=c99 -pedantic -Wall -Wextra -g3 -DDEBUG

CC = cc

all: cube.o debugcube.o

cube.s: clean
	${CC} ${CFLAGS} -c -S -o cube.s cube.c

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

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

clean:
	rm -rf *.o

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

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

.PHONY: all clean test benchmark

Generated with cgit - Back to sebastiano.tronto.net