aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2018-01-24 22:46:14 +0100
committertomsmeding <tom.smeding@gmail.com>2018-01-24 22:46:14 +0100
commitf36879c1d42e34d593dff204e26ecfb10eb6dfac (patch)
tree6cf7247f6b9ecca271a529ebf05c194e99dcdae2 /Makefile
parent20d898496b7371872bfd128a895d39465f13c970 (diff)
Asm literals and hwi
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 411fbf3..079f321 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,10 @@ YAXX = bison
CFLAGS = -Wall -Wextra -std=c11 -g -I. -D_GNU_SOURCE
LDFLAGS = -lfl
+ifneq ($(DEBUG),)
+ CFLAGS += -DDEBUG=$(value DEBUG)
+endif
+
ifeq ($(shell uname), Darwin)
LDFLAGS += -L/usr/local/opt/flex/lib
CFLAGS += -I/usr/local/opt/flex/include