diff options
Diffstat (limited to 'yy')
-rw-r--r-- | yy/demo.c (renamed from yy/main.c) | 0 | ||||
-rw-r--r-- | yy/makefile | 8 |
2 files changed, 4 insertions, 4 deletions
diff --git a/yy/makefile b/yy/makefile index a2022a2..6567b56 100644 --- a/yy/makefile +++ b/yy/makefile @@ -1,6 +1,6 @@ WARNINGS = -Wall -Wextra -Wpedantic -all: kalmia +all: kalmia.tab.c kalmia.lex.c kalmia.tab.c: kalmia.y bison -o "$@" --header=kalmia.tab.h kalmia.y @@ -8,8 +8,8 @@ kalmia.tab.c: kalmia.y kalmia.lex.c: kalmia.l flex -o "$@" --header-file="kalmia.lex.h" kalmia.l -kalmia: kalmia.tab.c kalmia.lex.c main.c - gcc -g -o kalmia ${WARNINGS} main.c kalmia.tab.c kalmia.lex.c +demo: kalmia.tab.c kalmia.lex.c demo.c + gcc -g -o demo ${WARNINGS} demo.c kalmia.tab.c kalmia.lex.c clean: - rm kalmia.lex.c kalmia.lex.h kalmia.tab.c kalmia.tab.h kalmia + rm kalmia.lex.c kalmia.lex.h kalmia.tab.c kalmia.tab.h demo |