From ea968820ef31dc77eae9b4219ae5930b34f6d0bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 20 Jul 2021 15:18:26 +0200 Subject: Update Makefile --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1bd8fb8..3d1e305 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,11 @@ -fref: fref.lex - lex fref.lex - cc -std=c89 -O2 -o fref lex.yy.c -lfl +CFLAGS += -std=c89 +LDFLAGS += -lfl + +fref: lex.yy.c + $(CC) $(CFLAGS) -o fref lex.yy.c $(LDFLAGS) + +lex.yy.c: fref.lex + flex fref.lex install: install fref /usr/local/bin -- cgit v1.2.3