mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 11:40:10 +01:00
Validate desired test cases by ensuring the output of glcpp matches the output of the gcc preprocessor, (ignoring any lines of the gcc output beginning with '#'). Only one test case so far with a trivial #define.
18 lines
381 B
Makefile
18 lines
381 B
Makefile
override CFLAGS += -Wall -Wextra -Wwrite-strings -Wswitch-enum -Wno-unused
|
|
|
|
glcpp: glcpp.o glcpp-lex.o glcpp-parse.o hash_table.o
|
|
|
|
%.c %.h: %.y
|
|
bison --debug --defines=$*.h --output=$*.c $^
|
|
|
|
%.c: %.l
|
|
flex --outfile=$@ $<
|
|
|
|
glcpp-lex.c: glcpp-parse.h
|
|
|
|
test:
|
|
@(cd tests; ./glcpp-test)
|
|
|
|
clean:
|
|
rm -f glcpp-lex.c glcpp-parse.c *.o *~
|
|
rm -f tests/*.out tests/*.gcc tests/*.expected
|