aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-20 15:18:26 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-21 11:19:55 +0200
commitea968820ef31dc77eae9b4219ae5930b34f6d0bd (patch)
tree7f5461b52d45390f08ea650f80737f9d6c28af91
parenta10779058f72fb1c6187e9cd6c297c5e24c686d8 (diff)
downloadfref-ea968820ef31dc77eae9b4219ae5930b34f6d0bd.tar.gz
Update Makefile
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
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