aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-11-04 11:06:12 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2023-11-04 11:06:12 +0100
commit93260168ed02de2eebd456e345c25f9066bb3a2c (patch)
treeb727262a0437c0ecbd2c613186372e9f3b4eed78 /Makefile
parent3051b2342d67dcba2fdc0010fb26f5850964c4d9 (diff)
downloadnissy-core-93260168ed02de2eebd456e345c25f9066bb3a2c.tar.gz
nissy-core-93260168ed02de2eebd456e345c25f9066bb3a2c.zip
Makefile changes
Diffstat (limited to '')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 082b740..b2e6da6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,16 @@
1include config.mk 1# Set TYPE="AVX2" manually for advanced vector instructions
2CUBETYPE = CUBE_${TYPE}
2 3
4CFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra -Wno-unused-parameter -O3 -mavx2
5DBGFLAGS = -DDEBUG -std=c99 -pthread -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -g3 -fsanitize=address -fsanitize=undefined -mavx2
6
7CC = cc
3all: cube.o debugcube.o 8all: cube.o debugcube.o
4 9
5cube.o: clean 10cube.o: clean
6 ${CC} -D${CUBETYPE} ${CFLAGS} -c -o cube.o src/cube.c 11 ${CC} -D${CUBETYPE} ${CFLAGS} -c -o cube.o src/cube.c
7 12
8debugcube.o: 13debugcube.o: clean
9 ${CC} -D${CUBETYPE} ${DBGFLAGS} -c -o debugcube.o src/cube.c 14 ${CC} -D${CUBETYPE} ${DBGFLAGS} -c -o debugcube.o src/cube.c
10 15
11clean: 16clean:

Generated with cgit - Back to sebastiano.tronto.net