aboutsummaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
Diffstat (limited to 'make')
-rwxr-xr-xmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/make b/make
new file mode 100755
index 0000000..1956b80
--- /dev/null
+++ b/make
@@ -0,0 +1,6 @@
+#!/bin/sh
+if [[ "$1" == "debug" ]]; then
+ clang -O3 -o game-of-life main.c `sdl2-config --cflags --libs` -lm -Wall -fsanitize=address -g
+else
+ clang -O3 -o game-of-life main.c `sdl2-config --cflags --libs` -lm
+fi