msousa@353: include ../common.mk msousa@353: mjsousa@1015: ## Flags for yacc syntax parser generator (bison) msousa@354: AM_YFLAGS = -d mjsousa@1015: ## Flags for lex lexer generator (flex) mjsousa@1015: AM_LFLAGS = --warn -o$(LEX_OUTPUT_ROOT).c msousa@354: msousa@354: # Make sure this header file is generated first (by bison), as it is included msousa@354: # by other C++ code that will also be compiled. Edouard@822: BUILT_SOURCES = iec_bison.hh msousa@354: Edouard@871: %.hh: %.h Edouard@871: cp $< $@ Edouard@871: Matteo@369: CLEANFILES = \ Matteo@369: iec_flex.cc \ Matteo@369: iec_bison.cc \ Edouard@822: iec_bison.hh Matteo@369: msousa@353: lib_LIBRARIES = libstage1_2.a msousa@353: libstage1_2_a_SOURCES = \ msousa@354: iec_flex.ll \ msousa@354: iec_bison.yy \ conti@748: create_enumtype_conversion_functions.cc \ msousa@353: stage1_2.cc msousa@353: Edouard@822: libstage1_2_a_CPPFLAGS = -DDEFAULT_LIBDIR='"lib"' -I../../absyntax -DYY_BUF_SIZE=65536 -fpermissive msousa@353: