summaryrefslogtreecommitdiff
path: root/yy/makefile
blob: 76b5c7797f1f4042c47a463b58327ce7c50c04d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
WARNINGS = -Wall -Wextra -Wpedantic

all: kalmia

kalmia.tab.c: kalmia.y
	bison -o "$@" --header=kalmia.tab.h 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 kalmia.h
	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