mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-23 18:20:30 +01:00
We were correctly parsing this already, but simply not returning any value (for no good reason). Fortunately the fix is quite simple. This makes the test added in the previous commit now pass.
25 lines
643 B
Makefile
25 lines
643 B
Makefile
# Debug symbols by default, but let the user avoid that with something
|
|
# like "make CFLAGS=-O2"
|
|
CFLAGS = -g
|
|
|
|
# But we use 'override' here so that "make CFLAGS=-O2" will still have
|
|
# all the warnings enabled.
|
|
override CFLAGS += -Wall -Wextra -Wwrite-strings -Wswitch-enum -Wno-unused
|
|
|
|
glcpp: glcpp.o glcpp-lex.o glcpp-parse.o hash_table.o xtalloc.o
|
|
gcc -o $@ -ltalloc $^
|
|
|
|
%.c %.h: %.y
|
|
bison --debug --defines=$*.h --output=$*.c $^
|
|
|
|
%.c: %.l
|
|
flex --outfile=$@ $<
|
|
|
|
glcpp-lex.c: glcpp-parse.h
|
|
|
|
test: glcpp
|
|
@(cd tests; ./glcpp-test)
|
|
|
|
clean:
|
|
rm -f glcpp glcpp-lex.c glcpp-parse.c *.o *~
|
|
rm -f tests/*.out tests/*.gcc tests/*.expected tests/*~
|