blob: 745991037ff81b4b012f581c62f15a04342ce245 (
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
30
|
# See LICENSE file for copyright and license details.
include config.mk
CFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \
-Wno-unused-parameter -O3
DBGFLAGS = -DDEBUG -std=c99 -pthread -pedantic -Wall -Wextra \
-Wno-unused-parameter -Wno-unused-function -g3 \
-fsanitize=address -fsanitize=undefined
CC = cc
all: cube.o debugcube.o
cube.o: clean
${CC} -D${CUBETYPE} ${CFLAGS} -c -o cube.o src/cube.c
debugcube.o:
${CC} -D${CUBETYPE} ${DBGFLAGS} -c -o debugcube.o src/cube.c
clean:
rm -rf *.o
test: debugcube.o
./test/test.sh
benchmark: cube.o
./benchmark/bench.sh
.PHONY: all clean test benchmark
|