summaryrefslogtreecommitdiff
path: root/Makefile
blob: d8357dda0f05f074a9108f9a56116786a7e393dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
glcpp: glcpp.o glcpp-lex.o glcpp-parse.o

%.c %.h: %.y
	bison --defines=$*.h --output=$*.c $^

%.c: %.l
	flex --outfile=$@ $<

glcpp-lex.c: glcpp-parse.h

clean:
	rm -f glcpp-lex.c glcpp-parse.c *.o *~