OSDN Git Service

Add some compiler warnings and corresponding fixes.
[android-x86/external-mesa.git] / Makefile
1 override CFLAGS += -Wall -Wextra -Wwrite-strings -Wswitch-enum -Wno-unused
2
3 glcpp: glcpp.o glcpp-lex.o glcpp-parse.o
4
5 %.c %.h: %.y
6         bison --defines=$*.h --output=$*.c $^
7
8 %.c: %.l
9         flex --outfile=$@ $<
10
11 glcpp-lex.c: glcpp-parse.h
12
13 clean:
14         rm -f glcpp-lex.c glcpp-parse.c *.o *~