2009-09-09 18:47:43 +02:00
SUBDIRS = macro
2012-08-06 18:52:06 +02:00
BUILT_SOURCES = DynareBison.hh stack.hh position.hh location.hh DynareBison.cc DynareFlex.cc FlexLexer.h
2009-09-09 18:47:43 +02:00
2014-07-18 12:15:36 +02:00
matlabdir = $( pkglibdir) /matlab
2009-09-09 18:47:43 +02:00
matlab_PROGRAMS = dynare_m
2009-09-24 12:15:59 +02:00
# 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
2009-09-09 18:47:43 +02:00
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 \
2010-10-25 18:20:58 +02:00
ConfigFile.cc \
ConfigFile.hh \
2009-09-09 18:47:43 +02:00
Statement.cc \
Statement.hh \
ExprNode.cc \
ExprNode.hh \
MinimumFeedbackSet.cc \
MinimumFeedbackSet.hh \
DynareMain.cc \
DynareMain2.cc \
2009-09-17 18:02:55 +02:00
CodeInterpreter.hh \
2010-02-22 17:33:38 +01:00
ExternalFunctionsTable.cc \
2010-04-23 18:39:07 +02:00
ExternalFunctionsTable.hh \
SteadyStateModel.hh \
2012-01-23 16:52:27 +01:00
SteadyStateModel.cc \
WarningConsolidation.hh \
2014-02-25 15:53:14 +01:00
WarningConsolidation.cc \
2015-07-21 17:26:08 +02:00
ExtendedPreprocessorTypes.hh
2009-09-09 18:47:43 +02:00
2009-09-21 12:00:47 +02:00
# The -I. is for <FlexLexer.h>
dynare_m_CPPFLAGS = $( BOOST_CPPFLAGS) -I.
2009-09-15 18:50:23 +02:00
dynare_m_LDFLAGS = $( BOOST_LDFLAGS)
2009-09-09 18:47:43 +02:00
dynare_m_LDADD = macro/libmacro.a
2012-08-06 18:52:06 +02:00
DynareFlex.cc FlexLexer.h : DynareFlex .ll
2009-09-09 18:47:43 +02:00
$( LEX) -oDynareFlex.cc DynareFlex.ll
2014-01-07 11:56:39 +01:00
cp $( LEXINC) /FlexLexer.h .
2009-09-09 18:47:43 +02:00
DynareBison.cc DynareBison.hh location.hh stack.hh position.hh : DynareBison .yy
$( YACC) -o DynareBison.cc DynareBison.yy
2009-09-09 19:00:43 +02:00
2015-03-30 11:14:44 +02:00
all-local : $( PROGRAMS )
2015-03-26 19:08:30 +01:00
if [ -z " `file $( PROGRAMS) | grep x86.64` " ] ; then \
2015-03-27 17:10:00 +01:00
ARCH = "32" ; \
2015-03-26 19:08:30 +01:00
else \
ARCH = "64" ; \
fi ; \
2015-03-27 17:10:00 +01:00
mkdir -p ../matlab/preprocessor$$ ARCH ; \
cd ../matlab/preprocessor$$ ARCH && $( LN_S) -f $( abs_srcdir) /$( PROGRAMS) $( PROGRAMS)
2009-09-15 18:50:23 +02:00
i f H A V E _ D O X Y G E N
html-local :
$( DOXYGEN)
e n d i f
clean-local :
2015-03-30 11:06:58 +02:00
rm -rf ../matlab/preprocessor*
2009-09-15 18:50:23 +02:00
rm -rf doc/html/
2009-09-17 10:14:44 +02:00
2009-09-24 12:15:59 +02:00
EXTRA_DIST = $( BUILT_SOURCES) Doxyfile
2014-07-16 16:18:06 +02:00
install-exec-local :
$( MKDIR_P) $( DESTDIR) $( pkglibdir) /matlab