blob: 38cc1f314a9330933ab1c24d5f5199dedf86d5ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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
|