diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-20 15:18:26 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-21 11:19:55 +0200 |
commit | ea968820ef31dc77eae9b4219ae5930b34f6d0bd (patch) | |
tree | 7f5461b52d45390f08ea650f80737f9d6c28af91 | |
parent | a10779058f72fb1c6187e9cd6c297c5e24c686d8 (diff) | |
download | fref-ea968820ef31dc77eae9b4219ae5930b34f6d0bd.tar.gz |
Update Makefile
-rw-r--r-- | Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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 |