Add a very simple test for the pre-processor.
[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 hash_table.o
4
5 %.c %.h: %.y
6 bison --debug --defines=$*.h --output=$*.c $^
7
8 %.c: %.l
9 flex --outfile=$@ $<
10
11 glcpp-lex.c: glcpp-parse.h
12
13 test:
14 @(cd tests; ./glcpp-test)
15
16 clean:
17 rm -f glcpp-lex.c glcpp-parse.c *.o *~
18 rm -f tests/*.out tests/*.gcc tests/*.expected