a1e32bcff0
Most of the current problems were (mostly) harmless things like missing declarations, but there was at least one real error, (reversed argument order for yyerrror).
15 lines
278 B
Makefile
15 lines
278 B
Makefile
override CFLAGS += -Wall -Wextra -Wwrite-strings -Wswitch-enum -Wno-unused
|
|
|
|
glcpp: glcpp.o glcpp-lex.o glcpp-parse.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 *~
|