mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-28 16:28:14 +02:00
The preprocessor here is intended to become part of the glsl2 codebase eventually anyway.
14 lines
291 B
Makefile
14 lines
291 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 --defines=$*.h --output=$*.c $^
|
|
|
|
%.c: %.l
|
|
flex --outfile=$@ $<
|
|
|
|
glcpp-lex.c: glcpp-parse.h
|
|
|
|
clean:
|
|
rm -f glcpp-lex.c glcpp-parse.c *.o *~
|