1 # Debug symbols by default, but let the user avoid that with something
2 # like "make CFLAGS=-O2"
5 # But we use 'override' here so that "make CFLAGS=-O2" will still have
6 # all the warnings enabled.
7 override CFLAGS
+= -Wall
-Wextra
-Wwrite-strings
-Wswitch-enum
-Wno-unused
9 glcpp
: glcpp.o glcpp-lex.o glcpp-parse.o hash_table.o
13 bison
--debug
--defines
=$*.h
--output
=$*.c
$^
18 glcpp-lex.c
: glcpp-parse.h
21 @
(cd tests
; .
/glcpp-test
)
24 rm -f glcpp-lex.c glcpp-parse.c
*.o
*~
25 rm -f tests
/*.out tests
/*.gcc tests
/*.expected