summaryrefslogtreecommitdiff
path: root/Makefile
blob: 2f08bc71d6351fd1c3037229672d88682b47c183 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
P=ocml

${P}:				${P}.tab.o lex.yy.o
						gcc -o $@ $^ -lfl

%.o:				%.c ${P}.tab.h
						gcc -c $^

${P}.tab.h:	${P}.y
						bison -d ${P}.y

lex.yy.c:		${P}.l
						flex ${P}.l

${P}.tab.c:	${P}.y
						bison ${P}.y

clean:
						rm -f *.tab.* *.yy.* ${P}