From 3272b5d83d2e2167eed24748557df88bd66584ee Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Fri, 5 Jan 2018 23:42:24 +0100 Subject: There's actually a chance that, correctly stringified, this will work --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3-70-g09d2