aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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