From 72e018b066bd5cc3ce0181b43865a227e8b9b6ec Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Fri, 12 Apr 2024 20:22:01 +0200 Subject: Initial fork from H48 --- Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..448c625 --- /dev/null +++ b/Makefile @@ -0,0 +1,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 -- cgit v1.3