OSDN Git Service

Add the tiniest shell of a flex/bison-based parser.
[android-x86/external-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 *~