summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 64b3196..5fdc73e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
CC=gcc
-CFLAGS=-I.
+CFLAGS=-I. -pthread -std=c99 -march=native -O3 -lm
+CFLAGS+= -Wshadow -Wundef -Wcast-align
+CFLAGS+= -Wunreachable-code -Wswitch-enum
generate:
$(CC) -o chess src/chess.c src/vector.c src/chesshelpers.c src/console.c src/fscomch.c $(CFLAGS)