aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2018-01-05 23:42:24 +0100
committertomsmeding <tom.smeding@gmail.com>2018-01-05 23:42:24 +0100
commit3272b5d83d2e2167eed24748557df88bd66584ee (patch)
tree6b8f1574f6d6a44e11b74903516286f6249cb0b7 /Makefile
parenta298cb75c4f586b83b304c7dc66cb555693ea1b8 (diff)
There's actually a chance that, correctly stringified, this will work
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e206eea..411fbf3 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,11 @@ YAXX = bison
CFLAGS = -Wall -Wextra -std=c11 -g -I. -D_GNU_SOURCE
LDFLAGS = -lfl
+ifeq ($(shell uname), Darwin)
+ LDFLAGS += -L/usr/local/opt/flex/lib
+ CFLAGS += -I/usr/local/opt/flex/include
+endif
+
TARGET = ccomp
.PHONY: all clean