blob: d0ca78de74c9dad04bef4c24dcac4b0962fa8106 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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 *~
|