diff options
author | sanine <sanine.not@pm.me> | 2023-01-18 13:03:34 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-01-18 13:03:34 -0600 |
commit | 82f47550fe3327cce6f2e0e1bf62e81d9ebcf90c (patch) | |
tree | 18c15c14a3f1623a4343d36a2f518ee6f51f204a /yy/makefile | |
parent | 8d5389d66ef79b58a0fff32fa2b01b4206bfb311 (diff) |
begin reentrant refactor
Diffstat (limited to 'yy/makefile')
-rw-r--r-- | yy/makefile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/yy/makefile b/yy/makefile index cd482dc..5f33c4f 100644 --- a/yy/makefile +++ b/yy/makefile @@ -1,10 +1,13 @@ all: kalmia -y.tab.c: kalmia.y - yacc -d kalmia.y +kalmia.tab.c: kalmia.y + bison -o "$@" --header=kalmia.tab.h kalmia.y -lex.yy.c: kalmia.l - lex kalmia.l +kalmia.lex.c: kalmia.l + flex -o "$@" --header-file "kalmia.lex.h" kalmia.l -kalmia: y.tab.c lex.yy.c - gcc -o kalmia y.tab.c lex.yy.c -lfl +kalmia: kalmia.tab.c kalmia.lex.c main.c kalmia.h + gcc -o kalmia main.c kalmia.tab.c kalmia.lex.c -lfl + +clean: + rm kalmia.lex.c kalmia.lex.h kalmia.tab.c kalmia.tab.h kalmia |