diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-11-04 11:06:12 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-11-04 11:06:12 +0100 |
| commit | 93260168ed02de2eebd456e345c25f9066bb3a2c (patch) | |
| tree | b727262a0437c0ecbd2c613186372e9f3b4eed78 /Makefile | |
| parent | 3051b2342d67dcba2fdc0010fb26f5850964c4d9 (diff) | |
| download | nissy-core-93260168ed02de2eebd456e345c25f9066bb3a2c.tar.gz nissy-core-93260168ed02de2eebd456e345c25f9066bb3a2c.zip | |
Makefile changes
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
| @@ -1,11 +1,16 @@ | |||
| 1 | include config.mk | 1 | # Set TYPE="AVX2" manually for advanced vector instructions |
| 2 | CUBETYPE = CUBE_${TYPE} | ||
| 2 | 3 | ||
| 4 | CFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra -Wno-unused-parameter -O3 -mavx2 | ||
| 5 | DBGFLAGS = -DDEBUG -std=c99 -pthread -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -g3 -fsanitize=address -fsanitize=undefined -mavx2 | ||
| 6 | |||
| 7 | CC = cc | ||
| 3 | all: cube.o debugcube.o | 8 | all: cube.o debugcube.o |
| 4 | 9 | ||
| 5 | cube.o: clean | 10 | cube.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 | ||
| 8 | debugcube.o: | 13 | debugcube.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 | ||
| 11 | clean: | 16 | clean: |
