summaryrefslogtreecommitdiff
path: root/yy/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'yy/makefile')
-rw-r--r--yy/makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/yy/makefile b/yy/makefile
index 5c9ce5f..76b5c77 100644
--- a/yy/makefile
+++ b/yy/makefile
@@ -1,3 +1,5 @@
+WARNINGS = -Wall -Wextra -Wpedantic
+
all: kalmia
kalmia.tab.c: kalmia.y
@@ -7,7 +9,7 @@ kalmia.lex.c: kalmia.l
flex -o "$@" --header-file="kalmia.lex.h" kalmia.l
kalmia: kalmia.tab.c kalmia.lex.c main.c kalmia.h
- gcc -o kalmia main.c kalmia.tab.c kalmia.lex.c -lfl
+ gcc -o kalmia ${WARNINGS} main.c kalmia.tab.c kalmia.lex.c
clean:
rm kalmia.lex.c kalmia.lex.h kalmia.tab.c kalmia.tab.h kalmia