2009-09-09 18:47:43 +02:00
noinst_LIBRARIES = libmacro.a
BUILT_SOURCES = MacroBison.hh stack.hh position.hh location.hh MacroBison.cc MacroFlex.cc
2009-09-24 12:15:59 +02:00
# We don't put BUILT_SOURCES in libmacro_a_SOURCES, otherwise MacroBison.o and MacroFlex.o will be linked two times (Automake translates MacroFlex.ll and MacroBison.yy into their respective .o); so BUILT_SOURCES is in EXTRA_DIST
2009-09-09 18:47:43 +02:00
libmacro_a_SOURCES = \
MacroFlex.ll \
MacroBison.yy \
MacroDriver.cc \
MacroDriver.hh \
MacroValue.cc \
MacroValue.hh
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
2009-09-09 18:47:43 +02:00
MacroFlex.cc : MacroFlex .ll
2016-03-09 16:53:57 +01:00
$( LEX) -o MacroFlex.cc MacroFlex.ll
2009-09-09 18:47:43 +02:00
MacroBison.cc MacroBison.hh location.hh stack.hh position.hh : MacroBison .yy
$( YACC) -o MacroBison.cc MacroBison.yy