aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: a0136f09015e988ec60214113b549ad50615f709 (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
# See LICENSE file for copyright and license details.

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: solve

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

debugcube.o:
	${CC} ${DBGFLAGS} -c -o debugcube.o src/*.c

clean:
	rm -rf solve

test: debugcube.o
	./test/test.sh

benchmark: cube.o
	./benchmark/bench.sh

.PHONY: all clean test benchmark

Generated with cgit - Back to sebastiano.tronto.net