2018-02-15 12:40:17 +01:00
SUBDIRS = macro
2019-08-14 15:36:01 +02:00
BUILT_SOURCES = DynareBison.hh location.hh DynareBison.cc DynareFlex.cc FlexLexer.h
2018-02-15 12:40:17 +01:00
bin_PROGRAMS = dynare_m
# We don't put BUILT_SOURCES in dynare_m_SOURCES, otherwise DynareBison.o and DynareFlex.o will be linked two times (Automake translates DynareFlex.ll and DynareBison.yy into their respective .o); so BUILT_SOURCES is in EXTRA_DIST
dynare_m_SOURCES = \
DynareFlex.ll \
DynareBison.yy \
ComputingTasks.cc \
ComputingTasks.hh \
ModelTree.cc \
ModelTree.hh \
StaticModel.cc \
StaticModel.hh \
DynamicModel.cc \
DynamicModel.hh \
NumericalConstants.cc \
NumericalConstants.hh \
NumericalInitialization.cc \
NumericalInitialization.hh \
Shocks.cc \
Shocks.hh \
SigmaeInitialization.cc \
SigmaeInitialization.hh \
SymbolTable.cc \
SymbolTable.hh \
SymbolList.cc \
SymbolList.hh \
ParsingDriver.cc \
ParsingDriver.hh \
DataTree.cc \
DataTree.hh \
ModFile.cc \
ModFile.hh \
ConfigFile.cc \
ConfigFile.hh \
Statement.cc \
Statement.hh \
ExprNode.cc \
ExprNode.hh \
MinimumFeedbackSet.cc \
MinimumFeedbackSet.hh \
DynareMain.cc \
DynareMain1.cc \
CodeInterpreter.hh \
ExternalFunctionsTable.cc \
ExternalFunctionsTable.hh \
2018-09-03 17:16:28 +02:00
ModelEquationBlock.hh \
ModelEquationBlock.cc \
2018-02-15 12:40:17 +01:00
WarningConsolidation.hh \
WarningConsolidation.cc \
2018-08-14 14:23:21 +02:00
ExtendedPreprocessorTypes.hh \
SubModel.cc \
SubModel.hh
2018-02-15 12:40:17 +01:00
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = \
Doxyfile \
$( BUILT_SOURCES)
# The -I. is for <FlexLexer.h>
dynare_m_CPPFLAGS = $( BOOST_CPPFLAGS) -I.
2018-11-06 12:14:49 +01:00
dynare_m_LDFLAGS = $( AM_LDFLAGS) $( BOOST_LDFLAGS)
2019-04-04 17:01:37 +02:00
dynare_m_LDADD = macro/libmacro.a -lstdc++fs
2018-02-15 12:40:17 +01:00
2019-12-03 15:10:45 +01:00
# -Ca flag comes from hitting a hard-coded size limit.
# Partial explanation: https://www.owlfolio.org/possibly-useful/flex-input-scanner-rules-are-too-complicated
# There is a Debian bug report about this: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=642040
2019-08-14 11:21:47 +02:00
DynareFlex.cc : DynareFlex .ll
2019-12-03 15:10:45 +01:00
$( LEX) -Ca -o DynareFlex.cc DynareFlex.ll
2019-08-14 11:21:47 +02:00
FlexLexer.h :
2018-02-15 12:40:17 +01:00
cp $( LEXINC) /FlexLexer.h . || test -f ./FlexLexer.h
2019-04-23 11:07:32 +02:00
dynare_m-DynareFlex.$(OBJEXT) : CXXFLAGS += -Wno -old -style -cast
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
DynareBison.cc : DynareBison .yy
$( YACC) -W -o $@ $<
2019-08-14 15:36:01 +02:00
DynareBison.hh location.hh : DynareBison .cc
2018-02-15 12:40:17 +01:00
all-local : $( PROGRAMS )
i f H A V E _ D O X Y G E N
html-local :
$( DOXYGEN)
e n d i f
clean-local :
rm -rf doc/html/