aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7ca4091..7223e7b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,13 @@
include config.mk
+# you can `export DEV_MODE=true` to compile the binaries with more warnings and debugging support
+ifdef DEV_MODE
+CFLAGS = -std=gnu11 -Wall -Wextra -g
+else
+CFLAGS = -std=gnu11 -Wall -O2
+endif
+
CC = clang
-CFLAGS = -std=gnu11 -Wall -g
BIN = ml
OBJDIR = objs
SRC = $(wildcard src/*.c)
Feel free to download, copy and edit any repo