2009-09-09 18:47:43 +02:00
noinst_LIBRARIES = libmacro.a
2023-05-29 19:10:16 +02:00
BUILT_SOURCES = Parser.hh ParserLocation.hh Parser.cc Tokenizer.cc
2009-09-09 18:47:43 +02:00
2019-05-30 20:40:56 +02:00
# We don't put BUILT_SOURCES in libmacro_a_SOURCES, otherwise Parser.o and Tokenizer.o will be linked two times (Automake translates Tokenizer.ll and Parser.yy into their respective .o); so BUILT_SOURCES is in EXTRA_DIST
2009-09-09 18:47:43 +02:00
libmacro_a_SOURCES = \
2019-05-30 20:40:56 +02:00
Tokenizer.ll \
Parser.yy \
ForwardDeclarationsAndEnums.hh \
Driver.cc \
Driver.hh \
Environment.cc \
Environment.hh \
Expressions.cc \
Expressions.hh \
Directives.cc \
Directives.hh
2009-09-09 18:47:43 +02:00
2009-09-24 12:15:59 +02:00
EXTRA_DIST = $( BUILT_SOURCES)
2009-09-21 12:00:47 +02:00
# The -I.. is for <FlexLexer.h>
2011-06-13 10:23:55 +02:00
libmacro_a_CPPFLAGS = $( BOOST_CPPFLAGS) -I..
2009-09-21 12:00:47 +02:00
2019-05-30 20:40:56 +02:00
Tokenizer.cc : Tokenizer .ll
$( LEX) -o Tokenizer.cc Tokenizer.ll
2009-09-09 18:47:43 +02:00
2019-05-30 20:40:56 +02:00
libmacro_a-Tokenizer.$(OBJEXT) : CXXFLAGS += -Wno -old -style -cast
2019-04-23 11:07:32 +02:00
2019-08-14 11:21:47 +02:00
# We do not use a multiple target rule for Bison, because otherwise it will be
# run several times in parallel builds
Parser.cc : Parser .yy
$( YACC) -W -o $@ $<
2023-05-29 19:10:16 +02:00
Parser.hh ParserLocation.hh : Parser .cc