Add the tiniest shell of a flex/bison-based parser.
[profile/ivi/mesa.git] / Makefile
1 glcpp: glcpp.o glcpp-lex.o glcpp-parse.o
2
3 %.c %.h: %.y
4         bison --defines=$*.h --output=$*.c $^
5
6 %.c: %.l
7         flex --outfile=$@ $<
8
9 glcpp-lex.c: glcpp-parse.h
10
11 clean:
12         rm -f glcpp-lex.c glcpp-parse.c *.o *~