From 93260168ed02de2eebd456e345c25f9066bb3a2c Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sat, 4 Nov 2023 11:06:12 +0100 Subject: Makefile changes --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 082b740..b2e6da6 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,16 @@ -include config.mk +# Set TYPE="AVX2" manually for advanced vector instructions +CUBETYPE = CUBE_${TYPE} +CFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra -Wno-unused-parameter -O3 -mavx2 +DBGFLAGS = -DDEBUG -std=c99 -pthread -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -g3 -fsanitize=address -fsanitize=undefined -mavx2 + +CC = cc all: cube.o debugcube.o cube.o: clean ${CC} -D${CUBETYPE} ${CFLAGS} -c -o cube.o src/cube.c -debugcube.o: +debugcube.o: clean ${CC} -D${CUBETYPE} ${DBGFLAGS} -c -o debugcube.o src/cube.c clean: -- cgit v1.3