From b3622e04dfb8317b745f8c911d31dc80bc2f9d66 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 22 Oct 2023 23:34:53 +0200 Subject: Preparatory work for benchmarks, little fixes --- Makefile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9ae2a4f..a0136f0 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ CFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \ -Wno-unused-parameter -O3 -DBGFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \ +DBGFLAGS = -DDEBUG -std=c99 -pthread -pedantic -Wall -Wextra \ -Wno-unused-parameter -Wno-unused-function -g3 \ -fsanitize=address -fsanitize=undefined @@ -10,16 +10,19 @@ CC = cc all: solve -solve: clean - ${CC} ${CFLAGS} -o solve src/*.c +cube.o: clean + ${CC} ${CFLAGS} -c -o cube.o src/*.c -debug: - ${CC} ${DBGFLAGS} -o solve src/*.c +debugcube.o: + ${CC} ${DBGFLAGS} -c -o debugcube.o src/*.c clean: rm -rf solve -test: +test: debugcube.o ./test/test.sh -.PHONY: all debug clean test +benchmark: cube.o + ./benchmark/bench.sh + +.PHONY: all clean test benchmark -- cgit v1.3