From 6dd55726e6368317484edc1097f5c1be50fd0d53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Wed, 20 Sep 2023 15:26:58 +0200 Subject: [PATCH] Drop autoconf/automake build system --- .gitignore | 126 +- Makefile.am | 67 - VERSION.in | 1 - configure.ac | 124 -- doc/Makefile.am | 33 - doc/dseries-and-reporting/Makefile.am | 14 - doc/gsa/Makefile.am | 16 - doc/internals/Makefile.am | 9 - doc/manual/Makefile.am | 22 - doc/parallel/Makefile.am | 29 - license.txt | 92 - m4/ax_compare_version.m4 | 177 -- m4/ax_gsl.m4 | 66 - m4/ax_latex_class.m4 | 68 - m4/ax_latex_test.m4 | 56 - m4/ax_matio.m4 | 69 - m4/ax_matlab.m4 | 126 -- m4/ax_matlab_arch.m4 | 76 - m4/ax_matlab_batch_options.m4 | 41 - m4/ax_matlab_version.m4 | 176 -- m4/ax_mexext.m4 | 75 - m4/ax_mexopts.m4 | 139 -- m4/ax_octave.m4 | 56 - m4/ax_prog_ln_s.m4 | 27 - m4/ax_slicot.m4 | 68 - .../matlab => macOS}/mexFunction-MacOSX.map | 0 meson.build | 4 +- mex/build/block_trust_region.am | 29 - mex/build/bytecode.am | 19 - mex/build/cycle_reduction.am | 18 - mex/build/disclyap_fast.am | 11 - mex/build/folded_to_unfolded_dr.am | 14 - mex/build/gensylv.am | 15 - mex/build/k_order_mean.am | 14 - mex/build/k_order_perturbation.am | 16 - mex/build/k_order_simul.am | 14 - mex/build/k_order_welfare.am | 20 - mex/build/kalman_steady_state.am | 12 - mex/build/kronecker.am | 18 - mex/build/libkorder.am | 90 - mex/build/libkordersim.am | 35 - mex/build/local_state_space_iterations.am | 27 - mex/build/logarithmic_reduction.am | 19 - mex/build/matlab/Makefile.am | 29 - .../matlab/block_trust_region/Makefile.am | 2 - mex/build/matlab/bytecode/Makefile.am | 4 - mex/build/matlab/configure.ac | 156 -- mex/build/matlab/cycle_reduction/Makefile.am | 2 - mex/build/matlab/disclyap_fast/Makefile.am | 2 - .../matlab/folded_to_unfolded_dr/Makefile.am | 2 - mex/build/matlab/gensylv/Makefile.am | 2 - mex/build/matlab/k_order_mean/Makefile.am | 2 - .../matlab/k_order_perturbation/Makefile.am | 2 - mex/build/matlab/k_order_simul/Makefile.am | 2 - mex/build/matlab/k_order_welfare/Makefile.am | 2 - .../matlab/kalman_steady_state/Makefile.am | 2 - mex/build/matlab/kronecker/Makefile.am | 2 - mex/build/matlab/libkorder/Makefile.am | 2 - mex/build/matlab/libkordersim/Makefile.am | 2 - .../local_state_space_iterations/Makefile.am | 2 - .../matlab/logarithmic_reduction/Makefile.am | 2 - mex/build/matlab/mex.am | 51 - mex/build/matlab/mjdgges/Makefile.am | 2 - mex/build/matlab/ms_sbvar/Makefile.am | 5 - mex/build/matlab/num_procs/Makefile.am | 2 - .../perfect_foresight_problem/Makefile.am | 2 - mex/build/matlab/riccati_update/Makefile.am | 2 - mex/build/matlab/sobol/Makefile.am | 2 - mex/build/mjdgges.am | 11 - mex/build/ms_sbvar.am | 92 - mex/build/num_procs.am | 9 - mex/build/octave/Makefile.am | 14 - .../octave/block_trust_region/Makefile.am | 3 - mex/build/octave/bytecode/Makefile.am | 5 - mex/build/octave/configure.ac | 174 -- mex/build/octave/cycle_reduction/Makefile.am | 3 - mex/build/octave/disclyap_fast/Makefile.am | 3 - .../octave/folded_to_unfolded_dr/Makefile.am | 3 - mex/build/octave/gensylv/Makefile.am | 3 - mex/build/octave/k_order_mean/Makefile.am | 3 - .../octave/k_order_perturbation/Makefile.am | 3 - mex/build/octave/k_order_simul/Makefile.am | 3 - mex/build/octave/k_order_welfare/Makefile.am | 3 - .../octave/kalman_steady_state/Makefile.am | 3 - mex/build/octave/kronecker/Makefile.am | 3 - mex/build/octave/libkorder/Makefile.am | 3 - mex/build/octave/libkordersim/Makefile.am | 3 - .../local_state_space_iterations/Makefile.am | 3 - .../octave/logarithmic_reduction/Makefile.am | 3 - mex/build/octave/mex.am | 57 - mex/build/octave/mjdgges/Makefile.am | 3 - mex/build/octave/ms_sbvar/Makefile.am | 12 - mex/build/octave/num_procs/Makefile.am | 3 - .../perfect_foresight_problem/Makefile.am | 3 - mex/build/octave/riccati_update/Makefile.am | 3 - mex/build/octave/sobol/Makefile.am | 3 - mex/build/perfect_foresight_problem.am | 15 - mex/build/qmc_sequence.am | 18 - mex/build/riccati_update.am | 18 - mex/sources/Makefile.am | 36 - mex/sources/libkorder/kord/tests/Makefile.am | 11 - mex/sources/libkorder/sylv/tests/Makefile.am | 10 - mex/sources/libkorder/tl/tests/Makefile.am | 9 - preprocessor | 2 +- tests/.gitignore | 180 -- tests/Makefile.am | 1683 ----------------- tests/pac/.gitignore | 16 - tests/pac/trend-component-27/.gitignore | 1 - tests/pac/trend-component-29/.gitignore | 2 - tests/read_trs_files.sh | 94 - tests/run_m_script.m | 54 - tests/run_o_script.m | 54 - tests/run_test_matlab.m | 73 - tests/run_test_octave.m | 76 - {mex/build/matlab => windows}/mex.def | 0 115 files changed, 8 insertions(+), 5191 deletions(-) delete mode 100644 Makefile.am delete mode 100644 VERSION.in delete mode 100644 configure.ac delete mode 100644 doc/Makefile.am delete mode 100644 doc/dseries-and-reporting/Makefile.am delete mode 100644 doc/gsa/Makefile.am delete mode 100644 doc/internals/Makefile.am delete mode 100644 doc/manual/Makefile.am delete mode 100644 doc/parallel/Makefile.am delete mode 100644 m4/ax_compare_version.m4 delete mode 100644 m4/ax_gsl.m4 delete mode 100644 m4/ax_latex_class.m4 delete mode 100644 m4/ax_latex_test.m4 delete mode 100644 m4/ax_matio.m4 delete mode 100644 m4/ax_matlab.m4 delete mode 100644 m4/ax_matlab_arch.m4 delete mode 100644 m4/ax_matlab_batch_options.m4 delete mode 100644 m4/ax_matlab_version.m4 delete mode 100644 m4/ax_mexext.m4 delete mode 100644 m4/ax_mexopts.m4 delete mode 100644 m4/ax_octave.m4 delete mode 100644 m4/ax_prog_ln_s.m4 delete mode 100644 m4/ax_slicot.m4 rename {mex/build/matlab => macOS}/mexFunction-MacOSX.map (100%) delete mode 100644 mex/build/block_trust_region.am delete mode 100644 mex/build/bytecode.am delete mode 100644 mex/build/cycle_reduction.am delete mode 100644 mex/build/disclyap_fast.am delete mode 100644 mex/build/folded_to_unfolded_dr.am delete mode 100644 mex/build/gensylv.am delete mode 100644 mex/build/k_order_mean.am delete mode 100644 mex/build/k_order_perturbation.am delete mode 100644 mex/build/k_order_simul.am delete mode 100644 mex/build/k_order_welfare.am delete mode 100644 mex/build/kalman_steady_state.am delete mode 100644 mex/build/kronecker.am delete mode 100644 mex/build/libkorder.am delete mode 100644 mex/build/libkordersim.am delete mode 100644 mex/build/local_state_space_iterations.am delete mode 100644 mex/build/logarithmic_reduction.am delete mode 100644 mex/build/matlab/Makefile.am delete mode 100644 mex/build/matlab/block_trust_region/Makefile.am delete mode 100644 mex/build/matlab/bytecode/Makefile.am delete mode 100644 mex/build/matlab/configure.ac delete mode 100644 mex/build/matlab/cycle_reduction/Makefile.am delete mode 100644 mex/build/matlab/disclyap_fast/Makefile.am delete mode 100644 mex/build/matlab/folded_to_unfolded_dr/Makefile.am delete mode 100644 mex/build/matlab/gensylv/Makefile.am delete mode 100644 mex/build/matlab/k_order_mean/Makefile.am delete mode 100644 mex/build/matlab/k_order_perturbation/Makefile.am delete mode 100644 mex/build/matlab/k_order_simul/Makefile.am delete mode 100644 mex/build/matlab/k_order_welfare/Makefile.am delete mode 100644 mex/build/matlab/kalman_steady_state/Makefile.am delete mode 100644 mex/build/matlab/kronecker/Makefile.am delete mode 100644 mex/build/matlab/libkorder/Makefile.am delete mode 100644 mex/build/matlab/libkordersim/Makefile.am delete mode 100644 mex/build/matlab/local_state_space_iterations/Makefile.am delete mode 100644 mex/build/matlab/logarithmic_reduction/Makefile.am delete mode 100644 mex/build/matlab/mex.am delete mode 100644 mex/build/matlab/mjdgges/Makefile.am delete mode 100644 mex/build/matlab/ms_sbvar/Makefile.am delete mode 100644 mex/build/matlab/num_procs/Makefile.am delete mode 100644 mex/build/matlab/perfect_foresight_problem/Makefile.am delete mode 100644 mex/build/matlab/riccati_update/Makefile.am delete mode 100644 mex/build/matlab/sobol/Makefile.am delete mode 100644 mex/build/mjdgges.am delete mode 100644 mex/build/ms_sbvar.am delete mode 100644 mex/build/num_procs.am delete mode 100644 mex/build/octave/Makefile.am delete mode 100644 mex/build/octave/block_trust_region/Makefile.am delete mode 100644 mex/build/octave/bytecode/Makefile.am delete mode 100644 mex/build/octave/configure.ac delete mode 100644 mex/build/octave/cycle_reduction/Makefile.am delete mode 100644 mex/build/octave/disclyap_fast/Makefile.am delete mode 100644 mex/build/octave/folded_to_unfolded_dr/Makefile.am delete mode 100644 mex/build/octave/gensylv/Makefile.am delete mode 100644 mex/build/octave/k_order_mean/Makefile.am delete mode 100644 mex/build/octave/k_order_perturbation/Makefile.am delete mode 100644 mex/build/octave/k_order_simul/Makefile.am delete mode 100644 mex/build/octave/k_order_welfare/Makefile.am delete mode 100644 mex/build/octave/kalman_steady_state/Makefile.am delete mode 100644 mex/build/octave/kronecker/Makefile.am delete mode 100644 mex/build/octave/libkorder/Makefile.am delete mode 100644 mex/build/octave/libkordersim/Makefile.am delete mode 100644 mex/build/octave/local_state_space_iterations/Makefile.am delete mode 100644 mex/build/octave/logarithmic_reduction/Makefile.am delete mode 100644 mex/build/octave/mex.am delete mode 100644 mex/build/octave/mjdgges/Makefile.am delete mode 100644 mex/build/octave/ms_sbvar/Makefile.am delete mode 100644 mex/build/octave/num_procs/Makefile.am delete mode 100644 mex/build/octave/perfect_foresight_problem/Makefile.am delete mode 100644 mex/build/octave/riccati_update/Makefile.am delete mode 100644 mex/build/octave/sobol/Makefile.am delete mode 100644 mex/build/perfect_foresight_problem.am delete mode 100644 mex/build/qmc_sequence.am delete mode 100644 mex/build/riccati_update.am delete mode 100644 mex/sources/Makefile.am delete mode 100644 mex/sources/libkorder/kord/tests/Makefile.am delete mode 100644 mex/sources/libkorder/sylv/tests/Makefile.am delete mode 100644 mex/sources/libkorder/tl/tests/Makefile.am delete mode 100644 tests/.gitignore delete mode 100644 tests/Makefile.am delete mode 100644 tests/pac/.gitignore delete mode 100644 tests/pac/trend-component-27/.gitignore delete mode 100644 tests/pac/trend-component-29/.gitignore delete mode 100755 tests/read_trs_files.sh delete mode 100644 tests/run_m_script.m delete mode 100644 tests/run_o_script.m delete mode 100644 tests/run_test_matlab.m delete mode 100644 tests/run_test_octave.m rename {mex/build/matlab => windows}/mex.def (100%) diff --git a/.gitignore b/.gitignore index f3363ee11..540839f1c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,107 +3,12 @@ # Any file that is displayed should be removed from the ignore list # (possibly by an exclusion rule beginning with an exclamation mark) -# Generic ignore rules *~ -*.o -*.a -*.fig -\#*\# -TAGS -*.mat -# Build system rules -.deps -Makefile -Makefile.in -confdefs.h -configure -config.log -config.status -aclocal.m4 -autom4te.cache -config.guess -config.sub -depcomp -install-sh -/missing -/mex/build/matlab/missing -/mex/build/octave/missing -/compile -/mex/build/matlab/compile -/mex/build/octave/compile -ylwrap -ar-lib - -# checksum associated with fast option -checksum - -# Make Check Rules -*.trs -*.tls - -# Doc rules -*.pdf -*.aux -*.log -*.out -*.toc -*.idx -*.scn -*.nav -*.snm -*.vrb -*.bbl -*.blg -*.lof -/doc/manual/build -/doc/manual/utils/version.py +# Created when building the reference manual /doc/manual/utils/__pycache__/* -!/doc/parallel/AvenueParadigm.pdf -!/doc/parallel/iVaNo_*.pdf -!/doc/parallel/netbook_*.pdf -!/doc/parallel/quest_*.pdf -!/doc/parallel/RWMH_quest1_*.pdf -!/doc/parallel/waitbars*.pdf -doc/internals/*.html -doc/internals/ltxpng -# MATLAB dir -/matlab/preprocessor64/ -/matlab/dynare_version.m - -# DLL rules -*.mex -*.mexa64 -*.mexw64 -*.mexmaci64 -*.mexmaca64 -/mex/matlab/ -/mex/octave/ - -# Symbolic links created for building MEX files -/mex/build/matlab/*/*.c -/mex/build/matlab/*/*.cc -/mex/build/matlab/*/*.f08 -/mex/build/matlab/*/*.F08 -/mex/build/octave/*/*.c -/mex/build/octave/*/*.cc -/mex/build/octave/*/*.f08 -/mex/build/octave/*/*.F08 - -# Fortran modules -/mex/build/matlab/*/*.mod -/mex/build/octave/*/*.mod - -# Extra rules for trust_region MEX testfiles -/mex/sources/block_trust_region/test/*.mod -/mex/sources/block_trust_region/test/dulmage_mendelsohn_test -/mex/sources/block_trust_region/test/trust_region_test -!/mex/sources/block_trust_region/test/Makefile - -# Windows -!/windows/Makefile -!/windows/deps/Makefile +# Created by the Windows package build script /windows/deps/lib64/ /windows/deps/lib64-msys2/ /windows/deps/matlab64/ @@ -114,35 +19,14 @@ doc/internals/ltxpng /windows/exe/ /windows/7z/ /windows/zip/ +/matlab/preprocessor64/ +/matlab/supported_octave_version.m -# MacOS stuff -.DS_Store -/macOS/pkg/ +# Created by the macOS package build script /macOS/deps/sources64/ /macOS/deps/tarballs/ /macOS/deps/lib64/ -!/macOS/Makefile -!/macOS/deps/Makefile # Emacs stuff scripts/dynare.elc -# MS-Sbvar -/contrib/ms-sbvar/*.prn -/contrib/ms-sbvar/*.dat -/contrib/ms-sbvar/sbvar_commandline -/contrib/ms-sbvar/sbvar_init_file -!/contrib/ms-sbvar/Makefile -/tests/ms-sbvar/*.tmp - -# Reporting -*synctex.gz -tests/reporting/tmpRepDir - -# Octave variables saved when Octave crashes -octave-workspace - -# VERSION generated file -VERSION - -matlab/supported_octave_version.m diff --git a/Makefile.am b/Makefile.am deleted file mode 100644 index 404e051a3..000000000 --- a/Makefile.am +++ /dev/null @@ -1,67 +0,0 @@ -SUBDIRS = preprocessor doc tests mex/sources - -if ENABLE_MATLAB -SUBDIRS += mex/build/matlab -endif -if ENABLE_OCTAVE -SUBDIRS += mex/build/octave -endif - -ACLOCAL_AMFLAGS = -I m4 - -EXTRA_DIST = \ - matlab \ - contrib \ - NEWS.md \ - license.txt \ - README.md \ - COPYING \ - CONTRIBUTING.md \ - windows \ - macOS \ - examples \ - scripts \ - .dir-locals.el - -all-local: -# Create top-level preprocessor symlink needed by matlab/dynare.m (when Dynare is run -# from the locally-built copy) - $(LN_S) -f $(abs_builddir)/preprocessor/src/dynare-preprocessor$(EXEEXT) $(abs_builddir)/preprocessor/dynare-preprocessor$(EXEEXT) -# Create backward-compatibility symlink for old location of preprocessor - $(MKDIR_P) matlab/preprocessor64/ - $(LN_S) -f $(abs_builddir)/preprocessor/src/dynare-preprocessor$(EXEEXT) $(abs_srcdir)/matlab/preprocessor64/dynare_m$(EXEEXT) - -clean-local: - rm -f preprocessor/dynare-preprocessor$(EXEEXT) - rm -rf matlab/preprocessor64/ - -dist-hook: - rm -rf `find $(distdir)/matlab $(distdir)/examples -name *~` - rm -f $(distdir)/matlab/dynare_version.m - rm -rf $(distdir)/matlab/preprocessor64/ - $(MKDIR_P) $(distdir)/mex/matlab $(distdir)/mex/octave - rm -rf `find $(distdir) -name '.git*'` - -install-exec-local: - $(MKDIR_P) $(DESTDIR)$(pkglibdir)/preprocessor -# The following will break under Windows, but we don’t use the install rule there - $(LN_S) -f $(bindir)/dynare-preprocessor$(EXEEXT) $(DESTDIR)$(pkglibdir)/preprocessor/dynare-preprocessor$(EXEEXT) - $(MKDIR_P) $(DESTDIR)$(pkglibdir)/contrib/ms-sbvar/TZcode - cp -r contrib/ms-sbvar/TZcode/MatlabFiles $(DESTDIR)$(pkglibdir)/contrib/ms-sbvar/TZcode - $(MKDIR_P) $(DESTDIR)$(pkglibdir)/contrib/jsonlab - cp -r contrib/jsonlab $(DESTDIR)$(pkglibdir)/contrib/jsonlab - cp -r examples $(DESTDIR)$(pkglibdir) - cp -r matlab $(DESTDIR)$(pkglibdir) - find $(DESTDIR)$(pkglibdir) -name LICENSE.md -delete -# Recreate backward-compatibility symlink - rm -f $(DESTDIR)$(pkglibdir)/matlab/preprocessor64/dynare_m$(EXEEXT) - $(LN_S) -f $(bindir)/dynare-preprocessor$(EXEEXT) $(DESTDIR)$(pkglibdir)/matlab/preprocessor64/dynare_m$(EXEEXT) -# We don’t fail over doc install rules, since the user may deliberately not have compiled them -# (e.g. with the “nodoc” option under Debian) - $(MKDIR_P) $(DESTDIR)$(docdir) - -cp doc/*.pdf doc/gsa/gsa.pdf doc/parallel/parallel.pdf doc/dseries-and-reporting/dseriesReporting.pdf preprocessor/doc/preprocessor/preprocessor.pdf preprocessor/doc/macroprocessor/macroprocessor.pdf doc/manual/build/latex/dynare-manual.pdf $(DESTDIR)$(docdir) - -cp -r doc/manual/build/html $(DESTDIR)$(docdir)/dynare-manual.html - -uninstall-local: - rm -rf $(DESTDIR)$(pkglibdir) - rm -rf $(DESTDIR)$(docdir) diff --git a/VERSION.in b/VERSION.in deleted file mode 100644 index 7b4f3f3a0..000000000 --- a/VERSION.in +++ /dev/null @@ -1 +0,0 @@ -@PACKAGE_VERSION@ \ No newline at end of file diff --git a/configure.ac b/configure.ac deleted file mode 100644 index 8d489c7de..000000000 --- a/configure.ac +++ /dev/null @@ -1,124 +0,0 @@ -dnl Process this file with autoconf to produce a configure script. - -dnl Copyright © 2009-2023 Dynare Team -dnl -dnl This file is part of Dynare. -dnl -dnl Dynare is free software: you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation, either version 3 of the License, or -dnl (at your option) any later version. -dnl -dnl Dynare is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with Dynare. If not, see . - -AC_PREREQ([2.62]) -AC_INIT([dynare], [6-unstable]) -AC_CONFIG_SRCDIR([preprocessor/src/DynareMain.cc]) -AM_INIT_AUTOMAKE([1.11 -Wall -Wno-portability foreign no-dist-gzip dist-xz tar-pax]) - -AC_CONFIG_SUBDIRS([preprocessor]) - -# For setting EXEEXT, needed by top-level Makefile.am -AC_PROG_CC - -AX_PROG_LN_S - -AC_PROG_MKDIR_P - -# Define optional components and their corresponding flags and Automake conditionals -AC_ARG_ENABLE([doc], AS_HELP_STRING([--disable-doc], [disable compilation of documentation]), [], [enable_doc=yes]) -AM_CONDITIONAL([ENABLE_DOC], [test "$enable_doc" = yes]) - -AC_ARG_ENABLE([matlab], AS_HELP_STRING([--disable-matlab], [disable compilation of MEX files for MATLAB]), [], [enable_matlab=yes]) -AM_CONDITIONAL([ENABLE_MATLAB], [test "$enable_matlab" = yes]) - -AC_ARG_ENABLE([octave], AS_HELP_STRING([--disable-octave], [disable compilation of MEX files for Octave]), [], [enable_octave=yes]) -AM_CONDITIONAL([ENABLE_OCTAVE], [test "$enable_octave" = yes]) - -AC_ARG_ENABLE([org-export], AS_HELP_STRING([--enable-org-export], [enable exporting of Org files (requires Emacs, org-mode and other external programs)])) -AM_CONDITIONAL([ENABLE_ORG_EXPORT], [test -n "$enable_org_export"]) - -# Check utilities needed for documentation -if test "$enable_doc" = yes; then - AC_CHECK_PROG([PDFLATEX], [pdflatex], [pdflatex], [no]) - test "$PDFLATEX" = no && AC_MSG_ERROR([pdflatex cannot be found. If you want to skip the compilation of the documentation, pass the --disable-doc flag.]) - AC_CHECK_PROG([BIBTEX], [bibtex], [bibtex], [no]) - test "$BIBTEX" = no && AC_MSG_ERROR([bibtex cannot be found. If you want to skip the compilation of the documentation, pass the --disable-doc flag.]) - AC_CHECK_PROG([SPHINXBUILD], [sphinx-build], [sphinx-build], [no]) - test "$SPHINXBUILD" = no && AC_MSG_ERROR([sphinx-build cannot be found. If you want to skip the compilation of the documentation, pass the --disable-doc flag.]) - AX_LATEX_CLASS([beamer], [ax_latex_have_beamer], [], [AC_MSG_ERROR([beamer cannot be found. If you want to skip the compilation of the documentation, pass the --disable-doc flag.])]) -fi - -# Check for MATLAB -if test "$enable_matlab" = yes; then - AC_CONFIG_SUBDIRS([mex/build/matlab]) - AX_MATLAB - AX_MATLAB_BATCH_OPTIONS - test "$ax_enable_matlab" != yes && AC_MSG_ERROR([MATLAB cannot be found. If you want to compile Dynare without MATLAB support, pass the --disable-matlab flag.]) -fi - -# Check for Octave -if test "$enable_octave" = yes; then - AC_CONFIG_SUBDIRS([mex/build/octave]) - AX_OCTAVE - test "$ax_enable_octave" != yes && AC_MSG_ERROR([Octave cannot be found. If you want to compile Dynare without Octave support, pass the --disable-octave flag.]) -fi - -# Construct final output message -if test "$enable_doc" = yes; then - BUILD_DOC="yes" -else - BUILD_DOC="no" -fi - -if test -n "$enable_org_export"; then - BUILD_INTERNAL_DOC="yes" -else - BUILD_INTERNAL_DOC="no" -fi - -if test "$enable_matlab" = yes; then - TESTSUITE_MATLAB="yes" -else - TESTSUITE_MATLAB="no" -fi - -if test "$enable_octave" = yes; then - TESTSUITE_OCTAVE="yes" -else - TESTSUITE_OCTAVE="no" -fi - -AC_MSG_NOTICE([ - -Dynare is now configured for building the following components... - -Documentation (with "make html pdf"): - Manual and other documents $BUILD_DOC - Dynare internal doc: $BUILD_INTERNAL_DOC - -Testsuites (run with "make check"): - Dynare for MATLAB: $TESTSUITE_MATLAB - Dynare for Octave: $TESTSUITE_OCTAVE -]) - -AC_CONFIG_FILES([Makefile - VERSION - doc/Makefile - doc/manual/Makefile - doc/parallel/Makefile - doc/internals/Makefile - doc/gsa/Makefile - doc/dseries-and-reporting/Makefile - tests/Makefile - matlab/dynare_version.m - mex/sources/Makefile -]) - -AC_OUTPUT diff --git a/doc/Makefile.am b/doc/Makefile.am deleted file mode 100644 index fed49937b..000000000 --- a/doc/Makefile.am +++ /dev/null @@ -1,33 +0,0 @@ -SUBDIRS = parallel internals gsa dseries-and-reporting - -if ENABLE_DOC -SUBDIRS += manual -pdf-local: guide.pdf bvar-a-la-sims.pdf dr.pdf sylvester.pdf tl.pdf -endif - -EXTRA_DIST = guide.tex bvar-a-la-sims.tex dr.tex dr.bib dynare.plots - -guide.pdf: guide.tex - $(PDFLATEX) guide - $(PDFLATEX) guide - -bvar-a-la-sims.pdf: bvar-a-la-sims.tex - $(PDFLATEX) bvar-a-la-sims - $(PDFLATEX) bvar-a-la-sims - -dr.pdf: dr.tex dr.bib - $(PDFLATEX) dr - $(BIBTEX) dr - $(PDFLATEX) dr - $(PDFLATEX) dr - -sylvester.pdf: sylvester.tex - $(PDFLATEX) sylvester - $(PDFLATEX) sylvester - -tl.pdf: tl.tex - $(PDFLATEX) tl - $(PDFLATEX) tl - -clean-local: - rm -f *~ *.pdf *.log *.aux *.out *.blg *.bbl diff --git a/doc/dseries-and-reporting/Makefile.am b/doc/dseries-and-reporting/Makefile.am deleted file mode 100644 index 809b9bbc2..000000000 --- a/doc/dseries-and-reporting/Makefile.am +++ /dev/null @@ -1,14 +0,0 @@ -if ENABLE_DOC -pdf-local: dseriesReporting.pdf -endif - -SRC = dseriesReporting.tex - -EXTRA_DIST = $(SRC) - -dseriesReporting.pdf: $(SRC) - $(PDFLATEX) dseriesReporting - $(PDFLATEX) dseriesReporting - -clean-local: - rm -f dseriesReporting.pdf *.toc *.aux *.log *.nav *.snm *.vrb *.out *~ diff --git a/doc/gsa/Makefile.am b/doc/gsa/Makefile.am deleted file mode 100644 index 9a6c418f1..000000000 --- a/doc/gsa/Makefile.am +++ /dev/null @@ -1,16 +0,0 @@ -if ENABLE_DOC -pdf-local: gsa.pdf -endif - -SRC = gsa.tex marco.bib - -EXTRA_DIST = $(SRC) - -gsa.pdf: $(SRC) - $(PDFLATEX) gsa - $(BIBTEX) gsa - $(PDFLATEX) gsa - $(PDFLATEX) gsa - -clean-local: - rm -f *.pdf *.log *.aux *.toc *.lof *.blg *.bbl *.out *~ diff --git a/doc/internals/Makefile.am b/doc/internals/Makefile.am deleted file mode 100644 index 0b6a7a22f..000000000 --- a/doc/internals/Makefile.am +++ /dev/null @@ -1,9 +0,0 @@ -EXTRA_DIST = dynare-internals.org - -if ENABLE_ORG_EXPORT -html-local: - emacs --batch --visit=dynare-internals.org --funcall org-html-export-to-html -endif - -clean-local: - rm -rf *.html ltxpng diff --git a/doc/manual/Makefile.am b/doc/manual/Makefile.am deleted file mode 100644 index 23439869c..000000000 --- a/doc/manual/Makefile.am +++ /dev/null @@ -1,22 +0,0 @@ -EXTRA_DIST = source \ - utils/dynare_dom.py \ - utils/dynare_lex.py - -SRC = $(wildcard source/*.rst) - -html-local: build/html/index.html - -build/html/index.html: $(SRC) source/conf.py - $(SPHINXBUILD) -b html -D version=$(PACKAGE_VERSION) -D release=$(PACKAGE_VERSION) -d build/doctrees source build/html - -pdf-local: build/latex/dynare-manual.pdf - -# NB: we cannot use -M latexpdf because of this bug: -# https://bugs.debian.org/933347 -build/latex/dynare-manual.pdf: $(SRC) source/conf.py - $(SPHINXBUILD) -b latex -D version=$(PACKAGE_VERSION) -D release=$(PACKAGE_VERSION) -d build/doctrees source build/latex - make -C build/latex all-pdf - -clean-local: - rm -rf build - rm -rf utils/__pycache__ diff --git a/doc/parallel/Makefile.am b/doc/parallel/Makefile.am deleted file mode 100644 index 9b5818fed..000000000 --- a/doc/parallel/Makefile.am +++ /dev/null @@ -1,29 +0,0 @@ -if ENABLE_DOC -pdf-local: parallel.pdf -endif - -SRC = AvenueParadigm.pdf iVaNo_gain.pdf iVaNo_time_comp.pdf marco.bib \ - netbook_complete_comp.pdf netbook_complete_openclose.pdf \ - netbook_partial_comp.pdf netbook_partial_openclose.pdf parallel.tex \ - quest_complete_comp.pdf quest_complete_openclose.pdf quest_partial_comp.pdf \ - quest_partial_openclose.pdf RWMH_quest1_PriorsAndPosteriors1Comp.pdf \ - RWMH_quest1_PriorsAndPosteriors2Comp.pdf \ - RWMH_quest1_PriorsAndPosteriors3Comp.pdf \ - RWMH_quest1_PriorsAndPosteriors4Comp.pdf \ - RWMH_quest1_PriorsAndPosteriors5Comp.pdf \ - RWMH_quest1_PriorsAndPosteriors6Comp.pdf \ - RWMH_quest1_PriorsAndPosteriors7Comp.pdf waitbars1.pdf waitbars2.pdf \ - waitbarsP.pdf - -EXTRA_DIST = $(SRC) - -parallel.pdf: $(SRC) - $(PDFLATEX) parallel - $(BIBTEX) parallel - $(PDFLATEX) parallel - $(PDFLATEX) parallel - $(PDFLATEX) parallel - -clean-local: - rm -f *.log *.aux *.toc *.blg *.bbl *.out - rm -f parallel.pdf diff --git a/license.txt b/license.txt index 72cb108f8..aa9f41c24 100644 --- a/license.txt +++ b/license.txt @@ -282,20 +282,6 @@ Files: doc/sylvester.tex doc/tl.tex Copyright: 2004-2011 Ondra Kamenik License: GPL-3+ -Files: m4/ax_compare_version.m4 -Copyright: 2008 Tim Toolan -License: FSFAP - -Files: m4/ax_latex_class.m4 m4/ax_latex_test.m4 -Copyright: 2008 Boretti Mathieu - 2009 Dynare Team -License: LGPL-2.1+ - -Files: m4/ax_matlab_arch.m4 m4/ax_matlab.m4 m4/ax_mexext.m4 -Copyright: 2002-2003 Ralph Schleicher - 2009-2021 Dynare Team -License: GPL-2+ with Autoconf exception - Files: scripts/dynare.el Copyright: 2010 Yannick Kalantzis 2019-2023 Dynare Team @@ -318,17 +304,6 @@ Copyright: 2009-2019 Homebrew contributors 2019-2021 Dynare Team License: BSD-2-clause -Files: preprocessor/m4/ax_boost_base.m4 -Copyright: 2008-2009 Thomas Porschberg - 2009 Peter Adolphs -License: FSFAP - -Files: preprocessor/m4/ax_latex_class.m4 - preprocessor/m4/ax_latex_test.m4 -Copyright: 2008 Boretti Mathieu - 2009 Dynare Team -License: LGPL-2.1+ - Files: preprocessor/doc/macroprocessor/* Copyright: 2008-2021 Dynare Team License: CC-BY-SA-4.0 @@ -499,26 +474,6 @@ License: GFDL-NIV-1.3+ . A copy of the license can be found at -License: GPL-2+ with Autoconf exception - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2, - or (at your option) any later version. - . - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - . - You should have received a copy of the GNU General Public License along - with this program. If not, see . - . - As a special exception to the GNU General Public License, if - you distribute this file as part of a program that contains a - configuration script generated by GNU Autoconf, you may include - it under the same distribution terms that you use for the rest - of that program. - License: GPL-3+ Dynare is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -533,47 +488,6 @@ License: GPL-3+ You should have received a copy of the GNU General Public License along with Dynare. If not, see . -License: GPL-3+ with Autoconf exception - This program is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation, either version 3 of the License, or (at your - option) any later version. - . - This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General - Public License for more details. - . - You should have received a copy of the GNU General Public License along - with this program. If not, see . - . - As a special exception, the respective Autoconf Macro's copyright owner - gives unlimited permission to copy, distribute and modify the configure - scripts that are the output of Autoconf when processing the Macro. You - need not follow the terms of the GNU General Public License when using - or distributing such scripts, even though portions of the text of the - Macro appear in them. The GNU General Public License (GPL) does govern - all other use of the material that constitutes the Autoconf Macro. - . - This special exception to the GPL applies to versions of the Autoconf - Macro released by the Autoconf Archive. When you make and distribute a - modified version of the Autoconf Macro, you may extend this special - exception to the GPL to apply to your modified version as well. - -License: LGPL-2.1+ - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or (at - your option) any later version. - . - This library is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser - General Public License for more details. - . - You should have received a copy of the GNU Lesser General Public License - along with this library. If not, see . - License: LGPL-3+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by @@ -1014,9 +928,3 @@ License: CC-BY-SA-4.0 licenses. . Creative Commons may be contacted at creativecommons.org. - -License: FSFAP - Copying and distribution of this file, with or without modification, are - permitted in any medium without royalty provided the copyright notice - and this notice are preserved. This file is offered as-is, without any - warranty. diff --git a/m4/ax_compare_version.m4 b/m4/ax_compare_version.m4 deleted file mode 100644 index ffb4997e8..000000000 --- a/m4/ax_compare_version.m4 +++ /dev/null @@ -1,177 +0,0 @@ -# =========================================================================== -# https://www.gnu.org/software/autoconf-archive/ax_compare_version.html -# =========================================================================== -# -# SYNOPSIS -# -# AX_COMPARE_VERSION(VERSION_A, OP, VERSION_B, [ACTION-IF-TRUE], [ACTION-IF-FALSE]) -# -# DESCRIPTION -# -# This macro compares two version strings. Due to the various number of -# minor-version numbers that can exist, and the fact that string -# comparisons are not compatible with numeric comparisons, this is not -# necessarily trivial to do in a autoconf script. This macro makes doing -# these comparisons easy. -# -# The six basic comparisons are available, as well as checking equality -# limited to a certain number of minor-version levels. -# -# The operator OP determines what type of comparison to do, and can be one -# of: -# -# eq - equal (test A == B) -# ne - not equal (test A != B) -# le - less than or equal (test A <= B) -# ge - greater than or equal (test A >= B) -# lt - less than (test A < B) -# gt - greater than (test A > B) -# -# Additionally, the eq and ne operator can have a number after it to limit -# the test to that number of minor versions. -# -# eq0 - equal up to the length of the shorter version -# ne0 - not equal up to the length of the shorter version -# eqN - equal up to N sub-version levels -# neN - not equal up to N sub-version levels -# -# When the condition is true, shell commands ACTION-IF-TRUE are run, -# otherwise shell commands ACTION-IF-FALSE are run. The environment -# variable 'ax_compare_version' is always set to either 'true' or 'false' -# as well. -# -# Examples: -# -# AX_COMPARE_VERSION([3.15.7],[lt],[3.15.8]) -# AX_COMPARE_VERSION([3.15],[lt],[3.15.8]) -# -# would both be true. -# -# AX_COMPARE_VERSION([3.15.7],[eq],[3.15.8]) -# AX_COMPARE_VERSION([3.15],[gt],[3.15.8]) -# -# would both be false. -# -# AX_COMPARE_VERSION([3.15.7],[eq2],[3.15.8]) -# -# would be true because it is only comparing two minor versions. -# -# AX_COMPARE_VERSION([3.15.7],[eq0],[3.15]) -# -# would be true because it is only comparing the lesser number of minor -# versions of the two values. -# -# Note: The characters that separate the version numbers do not matter. An -# empty string is the same as version 0. OP is evaluated by autoconf, not -# configure, so must be a string, not a variable. -# -# The author would like to acknowledge Guido Draheim whose advice about -# the m4_case and m4_ifvaln functions make this macro only include the -# portions necessary to perform the specific comparison specified by the -# OP argument in the final configure script. -# -# LICENSE -# -# Copyright (c) 2008 Tim Toolan -# -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty provided the copyright notice -# and this notice are preserved. This file is offered as-is, without any -# warranty. - -#serial 13 - -dnl ######################################################################### -AC_DEFUN([AX_COMPARE_VERSION], [ - AC_REQUIRE([AC_PROG_AWK]) - - # Used to indicate true or false condition - ax_compare_version=false - - # Convert the two version strings to be compared into a format that - # allows a simple string comparison. The end result is that a version - # string of the form 1.12.5-r617 will be converted to the form - # 0001001200050617. In other words, each number is zero padded to four - # digits, and non digits are removed. - AS_VAR_PUSHDEF([A],[ax_compare_version_A]) - A=`echo "$1" | sed -e 's/\([[0-9]]*\)/Z\1Z/g' \ - -e 's/Z\([[0-9]]\)Z/Z0\1Z/g' \ - -e 's/Z\([[0-9]][[0-9]]\)Z/Z0\1Z/g' \ - -e 's/Z\([[0-9]][[0-9]][[0-9]]\)Z/Z0\1Z/g' \ - -e 's/[[^0-9]]//g'` - - AS_VAR_PUSHDEF([B],[ax_compare_version_B]) - B=`echo "$3" | sed -e 's/\([[0-9]]*\)/Z\1Z/g' \ - -e 's/Z\([[0-9]]\)Z/Z0\1Z/g' \ - -e 's/Z\([[0-9]][[0-9]]\)Z/Z0\1Z/g' \ - -e 's/Z\([[0-9]][[0-9]][[0-9]]\)Z/Z0\1Z/g' \ - -e 's/[[^0-9]]//g'` - - dnl # In the case of le, ge, lt, and gt, the strings are sorted as necessary - dnl # then the first line is used to determine if the condition is true. - dnl # The sed right after the echo is to remove any indented white space. - m4_case(m4_tolower($2), - [lt],[ - ax_compare_version=`echo "x$A -x$B" | sed 's/^ *//' | sort -r | sed "s/x${A}/false/;s/x${B}/true/;1q"` - ], - [gt],[ - ax_compare_version=`echo "x$A -x$B" | sed 's/^ *//' | sort | sed "s/x${A}/false/;s/x${B}/true/;1q"` - ], - [le],[ - ax_compare_version=`echo "x$A -x$B" | sed 's/^ *//' | sort | sed "s/x${A}/true/;s/x${B}/false/;1q"` - ], - [ge],[ - ax_compare_version=`echo "x$A -x$B" | sed 's/^ *//' | sort -r | sed "s/x${A}/true/;s/x${B}/false/;1q"` - ],[ - dnl Split the operator from the subversion count if present. - m4_bmatch(m4_substr($2,2), - [0],[ - # A count of zero means use the length of the shorter version. - # Determine the number of characters in A and B. - ax_compare_version_len_A=`echo "$A" | $AWK '{print(length)}'` - ax_compare_version_len_B=`echo "$B" | $AWK '{print(length)}'` - - # Set A to no more than B's length and B to no more than A's length. - A=`echo "$A" | sed "s/\(.\{$ax_compare_version_len_B\}\).*/\1/"` - B=`echo "$B" | sed "s/\(.\{$ax_compare_version_len_A\}\).*/\1/"` - ], - [[0-9]+],[ - # A count greater than zero means use only that many subversions - A=`echo "$A" | sed "s/\(\([[0-9]]\{4\}\)\{m4_substr($2,2)\}\).*/\1/"` - B=`echo "$B" | sed "s/\(\([[0-9]]\{4\}\)\{m4_substr($2,2)\}\).*/\1/"` - ], - [.+],[ - AC_WARNING( - [invalid OP numeric parameter: $2]) - ],[]) - - # Pad zeros at end of numbers to make same length. - ax_compare_version_tmp_A="$A`echo $B | sed 's/./0/g'`" - B="$B`echo $A | sed 's/./0/g'`" - A="$ax_compare_version_tmp_A" - - # Check for equality or inequality as necessary. - m4_case(m4_tolower(m4_substr($2,0,2)), - [eq],[ - test "x$A" = "x$B" && ax_compare_version=true - ], - [ne],[ - test "x$A" != "x$B" && ax_compare_version=true - ],[ - AC_WARNING([invalid OP parameter: $2]) - ]) - ]) - - AS_VAR_POPDEF([A])dnl - AS_VAR_POPDEF([B])dnl - - dnl # Execute ACTION-IF-TRUE / ACTION-IF-FALSE. - if test "$ax_compare_version" = "true" ; then - m4_ifvaln([$4],[$4],[:])dnl - m4_ifvaln([$5],[else $5])dnl - fi -]) dnl AX_COMPARE_VERSION diff --git a/m4/ax_gsl.m4 b/m4/ax_gsl.m4 deleted file mode 100644 index a14cf515a..000000000 --- a/m4/ax_gsl.m4 +++ /dev/null @@ -1,66 +0,0 @@ -dnl Detect GSL. -dnl We don't use the official M4 macro since it relies on the script gsl-config, -dnl which does not work when cross-compiling. -dnl -dnl Copyright © 2010-2021 Dynare Team -dnl -dnl This file is part of Dynare. -dnl -dnl Dynare is free software: you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation, either version 3 of the License, or -dnl (at your option) any later version. -dnl -dnl Dynare is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with Dynare. If not, see . - -AC_DEFUN([AX_GSL], -[ -AC_ARG_WITH(gsl, AS_HELP_STRING([--with-gsl=DIR], [prefix to GSL installation]), - gsl_prefix="$withval", gsl_prefix="") - - has_gsl=yes - - if test -n "$gsl_prefix"; then - GSL_CPPFLAGS="-I$withval/include" - GSL_LDFLAGS="-L$withval/lib" - else - GSL_CPPFLAGS="" - GSL_LDFLAGS="" - fi - - ac_save_CPPFLAGS="$CPPFLAGS" - ac_save_LDFLAGS="$LDFLAGS" - ac_save_LIBS="$LIBS" - - LIBS="" - CPPFLAGS="$CPPFLAGS $GSL_CPPFLAGS" - LDFLAGS="$LDFLAGS $GSL_LDFLAGS" - - AC_LANG_PUSH(C) - AC_CHECK_HEADER([gsl/gsl_cdf.h], [], [has_gsl=no]) - AC_LANG_POP(C) - - AC_CHECK_LIB([m], [cos]) - AC_CHECK_LIB([gslcblas], [cblas_dgemm], [LIBS="-lgslcblas $LIBS"], [has_gsl=no]) - AC_CHECK_LIB([gsl], [gsl_cdf_ugaussian_P], [LIBS="-lgsl $LIBS"], [has_gsl=no]) - - if test "$has_gsl" = yes; then - GSL_LIBS="$LIBS" - else - GSL_LIBS="" - fi - - CPPFLAGS="$ac_save_CPPFLAGS" - LDFLAGS="$ac_save_LDFLAGS" - LIBS="$ac_save_LIBS" - - AC_SUBST(GSL_CPPFLAGS) - AC_SUBST(GSL_LDFLAGS) - AC_SUBST(GSL_LIBS) -]) diff --git a/m4/ax_latex_class.m4 b/m4/ax_latex_class.m4 deleted file mode 100644 index 6b560614e..000000000 --- a/m4/ax_latex_class.m4 +++ /dev/null @@ -1,68 +0,0 @@ -# =========================================================================== -# http://www.nongnu.org/autoconf-archive/ax_latex_class.html -# =========================================================================== -# -# OBSOLETE MACRO -# -# Deprecated because of licensing issues. The Lesser GPL imposes licensing -# restrictions on the generated configure script unless it is augmented -# with an Autoconf Exception clause. -# -# SYNOPSIS -# -# AX_LATEX_CLASS(CLASSNAME,VARIABLETOSET[,ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]]) -# -# DESCRIPTION -# -# This macros test is class CLASSNAME exists and work and set -# VARIABLETOSET to yes or no If ACTION-IF-FOUND (and ACTION-IF-NOT-FOUND) -# are set, do the correct action -# -# LICENSE -# -# Copyright © 2008 Boretti Mathieu -# Copyright © 2009 Dynare Team -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation; either version 2.1 of the License, or (at -# your option) any later version. -# -# This library is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser -# General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library. If not, see . - -AC_DEFUN([AX_LATEX_CLASS],[ -AC_CACHE_CHECK([for usability of class $1],[ac_cv_latex_class_]translit($1,[-],[_]),[ -AX_LATEX_TEST([\documentclass{$1} -\begin{document} -\end{document}],[ac_cv_latex_class_]translit($1,[-],[_])) -]) -$2=$[ac_cv_latex_class_]translit($1,[-],[_]) ; export $2; -AC_SUBST($2) -ifelse($#,2,[],$#,3,[ - if test "[$]$2" = "yes" ; - then - $3 - fi -],$#,4,[ - ifelse($3,[],[ - if test "[$]$2" = "no" ; - then - $4 - fi - ],[ - if test "[$]$2" = "yes" ; - then - $3 - else - $4 - fi - ]) -]) - -]) diff --git a/m4/ax_latex_test.m4 b/m4/ax_latex_test.m4 deleted file mode 100644 index 7e5b8d5e5..000000000 --- a/m4/ax_latex_test.m4 +++ /dev/null @@ -1,56 +0,0 @@ -# =========================================================================== -# http://www.nongnu.org/autoconf-archive/ax_latex_test.html -# =========================================================================== -# -# OBSOLETE MACRO -# -# Deprecated because of licensing issues. The Lesser GPL imposes licensing -# restrictions on the generated configure script unless it is augmented -# with an Autoconf Exception clause. -# -# SYNOPSIS -# -# AX_LATEX_TEST(FILEDATA,VARIABLETOSET,[NOCLEAN]) -# -# DESCRIPTION -# -# This macros execute the latex application with FILEDATA as input and set -# VARIABLETOSET the yes or no depending of the result if NOCLEAN is set, -# the folder used for the test is not delete after testing. -# -# The macro assumes that the variable PDFLATEX is set. -# -# LICENSE -# -# Copyright © 2008 Boretti Mathieu -# Copyright © 2009 Dynare Team -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation; either version 2.1 of the License, or (at -# your option) any later version. -# -# This library is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser -# General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library. If not, see . - -AC_DEFUN([AX_LATEX_TEST],[ -rm -rf conftest.dir/.acltx -AS_MKDIR_P([conftest.dir/.acltx]) -cd conftest.dir/.acltx -m4_ifval([$2],[$2="no"; export $2;]) -cat > conftest.tex << ACLEOF -$1 -ACLEOF -cat conftest.tex | $PDFLATEX 2>&1 1>output m4_ifval([$2],[&& $2=yes]) -cd .. -cd .. -sed 's/^/| /' conftest.dir/.acltx/conftest.tex >&5 -echo "$as_me:$LINENO: executing cat conftest.tex | $PDFLATEX" >&5 -sed 's/^/| /' conftest.dir/.acltx/output >&5 -m4_ifval([$3],,[rm -rf conftest.dir/.acltx]) -]) diff --git a/m4/ax_matio.m4 b/m4/ax_matio.m4 deleted file mode 100644 index 9a4d56284..000000000 --- a/m4/ax_matio.m4 +++ /dev/null @@ -1,69 +0,0 @@ -dnl Detect the MATIO Library. -dnl -dnl Copyright © 2012-2023 Dynare Team -dnl -dnl This file is part of Dynare. -dnl -dnl Dynare is free software: you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation, either version 3 of the License, or -dnl (at your option) any later version. -dnl -dnl Dynare is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with Dynare. If not, see . - -AC_DEFUN([AX_MATIO], -[ -AC_ARG_WITH(matio, AS_HELP_STRING([--with-matio=DIR], [prefix to MATIO installation]), - matio_prefix="$withval", matio_prefix="") - - AC_REQUIRE([AC_CANONICAL_HOST]) - - has_matio=yes - - if test -n "$matio_prefix"; then - CPPFLAGS_MATIO="-I$withval/include" - LDFLAGS_MATIO="-L$withval/lib" - else - CPPFLAGS_MATIO="" - LDFLAGS_MATIO="" - fi - - ac_save_CPPFLAGS="$CPPFLAGS" - ac_save_LDFLAGS="$LDFLAGS" - ac_save_LIBS="$LIBS" - - LIBADD_MATIO="" - CPPFLAGS="$CPPFLAGS_MATIO $CPPFLAGS" - LDFLAGS="$LDFLAGS_MATIO $LDFLAGS" - - dnl Under Windows and macOS, add hdf5 and its dependencies since we are linking statically - case ${host_os} in - *mingw32*) - dnl Partly inspired by /mingw64/lib/pkgconfig/{hdf5,libcurl}.pc (in particular for the system libraries) - LIBS="-lhdf5 -lcurl -lnghttp2 -lidn2 -lssh2 -lpsl -lunistring -liconv -lbcrypt -ladvapi32 -lcrypt32 -lbcrypt -lgdi32 -lwldap32 -lzstd -lbrotlidec -lbrotlicommon -lssl -lcrypto -lws2_32 -lz -lsz" - ;; - *darwin*) - LIBS="-lhdf5 -lz -lsz" - ;; - *) - LIBS="" - ;; - esac - - AC_CHECK_HEADER([matio.h], [], [has_matio=no]) - AC_CHECK_LIB([matio], [Mat_Open], [LIBADD_MATIO="-lmatio $LIBS"], [has_matio=no]) - - CPPFLAGS="$ac_save_CPPFLAGS" - LDFLAGS="$ac_save_LDFLAGS" - LIBS="$ac_save_LIBS" - - AC_SUBST(CPPFLAGS_MATIO) - AC_SUBST(LIBADD_MATIO) - AC_SUBST(LDFLAGS_MATIO) -]) diff --git a/m4/ax_matlab.m4 b/m4/ax_matlab.m4 deleted file mode 100644 index 58e6e753a..000000000 --- a/m4/ax_matlab.m4 +++ /dev/null @@ -1,126 +0,0 @@ -dnl ax_matlab.m4 --- check for MATLAB. -dnl -dnl Copyright © 2000-2003 Ralph Schleicher -dnl Copyright © 2009-2021 Dynare Team -dnl -dnl This program is free software; you can redistribute it and/or -dnl modify it under the terms of the GNU General Public License as -dnl published by the Free Software Foundation; either version 2, -dnl or (at your option) any later version. -dnl -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License along -dnl with this program. If not, see . -dnl -dnl As a special exception to the GNU General Public License, if -dnl you distribute this file as part of a program that contains a -dnl configuration script generated by GNU Autoconf, you may include -dnl it under the same distribution terms that you use for the rest -dnl of that program. -dnl -dnl Code: - -# AX_MATLAB -# --------- -# Check for MATLAB. -AC_DEFUN([AX_MATLAB], -[dnl -AC_PREREQ([2.50]) -ax_enable_matlab= -AC_ARG_WITH([matlab], AS_HELP_STRING([--with-matlab=ARG], [check for MATLAB [[yes]]]), -[case $withval in - yes | no) - # Explicitly enable or disable MATLAB but determine - # MATLAB prefix automatically. - ax_enable_matlab=$withval - ;; - *) - # Enable MATLAB and use ARG as the MATLAB prefix. - # ARG must be an existing directory. - ax_enable_matlab=yes - MATLAB=$(cd "${withval-/}" > /dev/null 2>&1 && pwd) - if test -z "$MATLAB" ; then - AC_MSG_ERROR([invalid value '$withval' for --with-matlab]) - fi - ;; -esac]) -AC_CACHE_CHECK([for MATLAB prefix], [ax_cv_matlab], -[if test "${MATLAB+set}" = set ; then - ax_cv_matlab=$(cd "${MATLAB-/}" > /dev/null 2>&1 && pwd) -else - ax_cv_matlab= - IFS=${IFS= } ; ax_ifs=$IFS ; IFS=: - for ax_dir in ${PATH-/opt/bin:/usr/local/bin:/usr/bin:/bin} ; do - if test -z "$ax_dir" ; then - ax_dir=. - fi - if test -x "$ax_dir/matlab" ; then - ax_dir=$(echo "$ax_dir" | sed 's,/bin$,,') - # Directory sanity check. - ax_cv_matlab=$(cd "${ax_dir-/}" > /dev/null 2>&1 && pwd) - if test -n "$ax_cv_matlab" ; then - break - fi - fi - done - IFS=$ax_ifs -fi -if test -z "$ax_cv_matlab" ; then - ax_cv_matlab="not found" -fi]) -if test "$ax_cv_matlab" = "not found" ; then - unset MATLAB -else - # Strip trailing dashes. - MATLAB=$(echo "$ax_cv_matlab" | sed 's,/*$,,') -fi -AC_MSG_CHECKING([whether to enable MATLAB support]) -if test "$ax_enable_matlab" != no; then - if test "${MATLAB+set}" = set && test -d "$MATLAB/extern/include" ; then - ax_enable_matlab=yes - elif test -z "$ax_enable_matlab"; then - ax_enable_matlab=no - else - # Fail if MATLAB was explicitly enabled. - AC_MSG_RESULT([failure]) - AC_MSG_ERROR([check your MATLAB setup]) - fi -fi -AC_MSG_RESULT([$ax_enable_matlab]) -if test "$ax_enable_matlab" = yes; then - AC_DEFINE([HAVE_MATLAB], [1], [Define if you have MATLAB.]) -fi -AC_SUBST([MATLAB]) -]) - -# AX_REQUIRE_MATLAB -# ----------------- -# Like AX_MATLAB but fail if MATLAB support is disabled. -AC_DEFUN([AX_REQUIRE_MATLAB], -[dnl -AC_PREREQ([2.50]) -AC_REQUIRE([AX_MATLAB]) -if test "$ax_enable_matlab" = no; then - AC_MSG_ERROR([can not enable MATLAB support]) -fi -]) - -# AX_MATLAB_CONDITIONAL -# --------------------- -# Define MATLAB conditional for GNU Automake. -AC_DEFUN([AX_MATLAB_CONDITIONAL], -[dnl -AC_PREREQ([2.50]) -AC_REQUIRE([AX_MATLAB]) -AM_CONDITIONAL([MATLAB], [test "$ax_enable_matlab" = yes]) -]) - -dnl ax_matlab.m4 ends here - -dnl Local variables: -dnl tab-width: 8 -dnl End: diff --git a/m4/ax_matlab_arch.m4 b/m4/ax_matlab_arch.m4 deleted file mode 100644 index 3def1809a..000000000 --- a/m4/ax_matlab_arch.m4 +++ /dev/null @@ -1,76 +0,0 @@ -dnl matlabarch.m4 --- check for MATLAB machine architecture. -dnl -dnl Copyright © 2002, 2003 Ralph Schleicher -dnl Copyright © 2009-2023 Dynare Team -dnl -dnl This program is free software; you can redistribute it and/or -dnl modify it under the terms of the GNU General Public License as -dnl published by the Free Software Foundation; either version 2, -dnl or (at your option) any later version. -dnl -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License along -dnl with this program. If not, see . -dnl -dnl As a special exception to the GNU General Public License, if -dnl you distribute this file as part of a program that contains a -dnl configuration script generated by GNU Autoconf, you may include -dnl it under the same distribution terms that you use for the rest -dnl of that program. -dnl -dnl Code: - -# AX_MATLAB_ARCH -# -------------- -# Check for MATLAB machine architecture. -AC_DEFUN([AX_MATLAB_ARCH], -[dnl -AC_PREREQ([2.50]) -AC_REQUIRE([AX_MEXEXT]) -AC_CACHE_CHECK([for MATLAB machine architecture], [ax_cv_matlab_arch], -[if test "${MATLAB_ARCH+set}" = set ; then - ax_cv_matlab_arch="$MATLAB_ARCH" -else - case $MEXEXT in - *dll | *mexw32) - ax_cv_matlab_arch=win32 - ;; - *mexw64) - ax_cv_matlab_arch=win64 - ;; - *mexglx) - ax_cv_matlab_arch=glnx86 - ;; - *mexa64) - ax_cv_matlab_arch=glnxa64 - ;; - *mexs64) - ax_cv_matlab_arch=sol64 - ;; - *mexmaci) - ax_cv_matlab_arch=maci - ;; - *mexmaci64) - ax_cv_matlab_arch=maci64 - ;; - *mexmaca64) - ax_cv_matlab_arch=maca64 - ;; - *) - ax_cv_matlab_arch=unknown - ;; - esac -fi]) -MATLAB_ARCH="$ax_cv_matlab_arch" -AC_SUBST([MATLAB_ARCH]) -]) - -dnl matlabarch.m4 ends here - -dnl Local variables: -dnl tab-width: 8 -dnl End: diff --git a/m4/ax_matlab_batch_options.m4 b/m4/ax_matlab_batch_options.m4 deleted file mode 100644 index 96f186eba..000000000 --- a/m4/ax_matlab_batch_options.m4 +++ /dev/null @@ -1,41 +0,0 @@ -dnl Copyright © 2019 Dynare Team -dnl -dnl This file is part of Dynare. -dnl -dnl Dynare is free software: you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation, either version 3 of the License, or -dnl (at your option) any later version. -dnl -dnl Dynare is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with Dynare. If not, see . - -AC_DEFUN([AX_MATLAB_BATCH_OPTIONS], -[dnl -AC_REQUIRE([AX_MATLAB]) -AC_REQUIRE([AX_MATLAB_ARCH]) -AC_REQUIRE([AX_MATLAB_VERSION]) - -AX_COMPARE_VERSION([$MATLAB_VERSION], [ge], [9.6], - [ - if test "${MATLAB_ARCH}" = win32 -o "${MATLAB_ARCH}" = win64; then - MATLAB_BATCH_OPTIONS='-noFigureWindows -batch' - else - MATLAB_BATCH_OPTIONS='-nodisplay -batch' - fi - ], - [ - if test "${MATLAB_ARCH}" = win32 -o "${MATLAB_ARCH}" = win64; then - MATLAB_BATCH_OPTIONS='-nosplash -automation -wait -sd "$(CURDIR)" -r' - else - MATLAB_BATCH_OPTIONS='-nosplash -nodisplay -r' - fi - ]) - -AC_SUBST([MATLAB_BATCH_OPTIONS]) -]) diff --git a/m4/ax_matlab_version.m4 b/m4/ax_matlab_version.m4 deleted file mode 100644 index 98f314562..000000000 --- a/m4/ax_matlab_version.m4 +++ /dev/null @@ -1,176 +0,0 @@ -dnl Copyright © 2009-2023 Dynare Team -dnl -dnl This file is part of Dynare. -dnl -dnl Dynare is free software: you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation, either version 3 of the License, or -dnl (at your option) any later version. -dnl -dnl Dynare is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with Dynare. If not, see . - -AC_DEFUN([AX_MATLAB_VERSION], -[dnl -AC_REQUIRE([AX_MATLAB]) - -AC_MSG_CHECKING([for MATLAB version]) - -if test -n "$MATLAB"; then - dnl Try to autodetect MATLAB version - if test -f "${MATLAB}/VersionInfo.xml"; then - dnl The VersionInfo.xml file is present on all versions since R2017a, on all platforms. - dnl Extract the version number as x.y, since it is our preferred form, and is - dnl more robust to future versions. - dnl NB: brackets in regular expressions are enclosed in other brackets, because this is m4 - MATLAB_VERSION=$(sed -En '//s/.*>([[0-9]]+\.[[0-9]]+).*/\1/p' "${MATLAB}/VersionInfo.xml") - elif test -f "${MATLAB}/bin/util/mex/version.txt"; then - dnl The bin/util/mex/version.txt file is present on Windows and macOS, at least - dnl since R2009b. It contains the release number (Rnnnnx). - MATLAB_VERSION=$(cat "${MATLAB}/bin/util/mex/version.txt") - elif test -f "${MATLAB}/bin/mex" || test -f "${MATLAB}/bin/mexsh"; then - dnl Works on Linux and macOS until R2018a included. Returns the release number (Rnnnnx). - dnl Older MATLABs have the version in bin/mex, more recent in bin/mexsh - dnl NB: brackets in regular expressions are enclosed in other brackets, because this is m4 - MATLAB_VERSION=$(sed -En "/^.*full_ver=/s/^.*full_ver='(R[[^']]+)'.*/\1/p" "${MATLAB}"/bin/mex*) - fi -fi - -if test -n "$MATLAB_VERSION"; then - dnl Convert a release number (Rnnnnx) into a version number (x.y) - case $MATLAB_VERSION in - *2023a | *2023A) - MATLAB_VERSION="9.14" - ;; - *2022b | *2022B) - MATLAB_VERSION="9.13" - ;; - *2022a | *2022A) - MATLAB_VERSION="9.12" - ;; - *2021b | *2021B) - MATLAB_VERSION="9.11" - ;; - *2021a | *2021A) - MATLAB_VERSION="9.10" - ;; - *2020b | *2020B) - MATLAB_VERSION="9.9" - ;; - *2020a | *2020A) - MATLAB_VERSION="9.8" - ;; - *2019b | *2019B) - MATLAB_VERSION="9.7" - ;; - *2019a | *2019A) - MATLAB_VERSION="9.6" - ;; - *2018b | *2018B) - MATLAB_VERSION="9.5" - ;; - *2018a | *2018A) - MATLAB_VERSION="9.4" - ;; - *2017b | *2017B) - MATLAB_VERSION="9.3" - ;; - *2017a | *2017A) - MATLAB_VERSION="9.2" - ;; - *2016b | *2016B) - MATLAB_VERSION="9.1" - ;; - *2016a | *2016A) - MATLAB_VERSION="9.0" - ;; - *2015b | *2015B) - MATLAB_VERSION="8.6" - ;; - *2015a | *2015A) - MATLAB_VERSION="8.5" - ;; - *2014b | *2014B) - MATLAB_VERSION="8.4" - ;; - *2014a | *2014A) - MATLAB_VERSION="8.3" - ;; - *2013b | *2013B) - MATLAB_VERSION="8.2" - ;; - *2013a | *2013A) - MATLAB_VERSION="8.1" - ;; - *2012b | *2012B) - MATLAB_VERSION="8.0" - ;; - *2012a | *2012A) - MATLAB_VERSION="7.14" - ;; - *2011b | *2011B) - MATLAB_VERSION="7.13" - ;; - *2011a | *2011A) - MATLAB_VERSION="7.12" - ;; - *2010b | *2010B) - MATLAB_VERSION="7.11" - ;; - *2010a | *2010A) - MATLAB_VERSION="7.10" - ;; - *2009b | *2009B) - MATLAB_VERSION="7.9" - ;; - *2009a | *2009A) - MATLAB_VERSION="7.8" - ;; - *2008b | *2008B) - MATLAB_VERSION="7.7" - ;; - *2008a | *2008A) - MATLAB_VERSION="7.6" - ;; - *2007b | *2007B) - MATLAB_VERSION="7.5" - ;; - *2007a | *2007A) - MATLAB_VERSION="7.4" - ;; - *2006b | *2006B) - MATLAB_VERSION="7.3" - ;; - *2006a | *2006A) - MATLAB_VERSION="7.2" - ;; - *14SP3 | *14sp3) - MATLAB_VERSION="7.1" - ;; - *14SP2 | *14sp2) - MATLAB_VERSION="7.0.4" - ;; - *14SP1 | *14sp1) - MATLAB_VERSION="7.0.1" - ;; - R14 | r14) - MATLAB_VERSION="7.0.0" - ;; - esac - dnl Check that we have an x.y version number - if ! echo "${MATLAB_VERSION}" | grep -qE '^[[0-9.]]+$'; then - AC_MSG_ERROR([unknown MATLAB version ${MATLAB_VERSION}]) - fi - AC_MSG_RESULT([${MATLAB_VERSION}]) - ax_matlab_version_ok="yes" -else - AC_MSG_RESULT([unknown]) - ax_matlab_version_ok="no" -fi -AC_SUBST([MATLAB_VERSION]) -]) diff --git a/m4/ax_mexext.m4 b/m4/ax_mexext.m4 deleted file mode 100644 index bb4e175d6..000000000 --- a/m4/ax_mexext.m4 +++ /dev/null @@ -1,75 +0,0 @@ -dnl ax_mexext.m4 --- check for MEX-file suffix. -dnl -dnl Copyright © 2000-2003 Ralph Schleicher -dnl Copyright © 2009-2019 Dynare Team -dnl -dnl This program is free software; you can redistribute it and/or -dnl modify it under the terms of the GNU General Public License as -dnl published by the Free Software Foundation; either version 2, -dnl or (at your option) any later version. -dnl -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License along -dnl with this program. If not, see . -dnl -dnl As a special exception to the GNU General Public License, if -dnl you distribute this file as part of a program that contains a -dnl configuration script generated by GNU Autoconf, you may include -dnl it under the same distribution terms that you use for the rest -dnl of that program. -dnl -dnl Code: - -# AX_MEXEXT -# --------- -# Check for MEX-file suffix. -AC_DEFUN([AX_MEXEXT], -[dnl -AC_PREREQ([2.50]) -AC_REQUIRE([AX_MATLAB]) -AC_REQUIRE([AC_CANONICAL_BUILD]) -AC_CACHE_CHECK([for MEX-file suffix], [ax_cv_mexext], -[if test "${MEXEXT+set}" = set ; then - ax_cv_mexext="$MEXEXT" -else - case $build_os in - *cygwin*|*mingw*) - ax_cv_mexext=$("$MATLAB"/bin/mexext.bat | sed 's/\r//') - ;; - *) - ax_cv_mexext=$("$MATLAB"/bin/mexext) - ;; - esac -fi]) -MEXEXT="$ax_cv_mexext" -AC_SUBST([MEXEXT]) -]) - -# AX_DOT_MEXEXT -# ------------- -# Check for MEX-file suffix with leading dot. -AC_DEFUN([AX_DOT_MEXEXT], -[dnl -AC_REQUIRE([AX_MEXEXT]) -case $MEXEXT in - .*) - ;; - *) - if test -n "$MEXEXT" ; then - MEXEXT=.$MEXEXT - AC_MSG_RESULT([setting MEX-file suffix to $MEXEXT]) - AC_SUBST([MEXEXT]) - fi - ;; -esac -]) - -dnl ax_mexext.m4 ends here - -dnl Local variables: -dnl tab-width: 8 -dnl End: diff --git a/m4/ax_mexopts.m4 b/m4/ax_mexopts.m4 deleted file mode 100644 index 1a5ef9512..000000000 --- a/m4/ax_mexopts.m4 +++ /dev/null @@ -1,139 +0,0 @@ -dnl Copyright © 2009-2023 Dynare Team -dnl -dnl This file is part of Dynare. -dnl -dnl Dynare is free software: you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation, either version 3 of the License, or -dnl (at your option) any later version. -dnl -dnl Dynare is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with Dynare. If not, see . - -AC_DEFUN([AX_MEXOPTS], -[dnl -AC_REQUIRE([AX_MEXEXT]) -AC_REQUIRE([AX_MATLAB_ARCH]) -AC_REQUIRE([AX_MATLAB_VERSION]) -AC_REQUIRE([AC_PROG_SED]) - -AX_COMPARE_VERSION([$MATLAB_VERSION], [lt], [8.3], [AC_MSG_ERROR([Your MATLAB is too old, please upgrade to 8.3 (R2014a) at least.])]) - -AC_MSG_CHECKING([for options to compile MEX for MATLAB]) - -MATLAB_CPPFLAGS="-I$MATLAB/extern/include" - -case ${MATLAB_ARCH} in - glnxa64) - MATLAB_DEFS="-D_GNU_SOURCE -DNDEBUG" - MATLAB_CFLAGS="-fexceptions -fPIC -pthread" - MATLAB_CXXFLAGS="-fPIC -pthread" - MATLAB_FCFLAGS="-fPIC -fexceptions" - MATLAB_LDFLAGS_NOMAP="-shared -Wl,--no-undefined -Wl,-rpath-link,$MATLAB/bin/glnxa64 -L$MATLAB/bin/glnxa64" - MATLAB_LDFLAGS="$MATLAB_LDFLAGS_NOMAP -Wl,--version-script,$MATLAB/extern/lib/glnxa64/mexFunction.map" - MATLAB_LIBS="-lmx -lmex -lmat -lm -lmwlapack -lmwblas" - FORTRAN_LIBS_FOR_CXXLINK="-lgfortran -lquadmath" - ax_mexopts_ok="yes" - ;; - win64) - MATLAB_CFLAGS="-fexceptions" - MATLAB_CXXFLAGS="" - MATLAB_FCFLAGS="-fexceptions -fno-underscoring" - MATLAB_DEFS="-DNDEBUG" - # The hack for libquadmath is needed because -static-libgfortran - # unfortunately does not imply the static linking of the former. - # The last part about winpthread is a hack to avoid dynamically linking - # against libwinpthread DLL (which is pulled in by libstdc++, even without - # using threads, since we are using the POSIX threads version of MinGW) - MATLAB_LDFLAGS_NOMAP="-static-libgcc -static-libstdc++ -static-libgfortran -Wl,-Bstatic,--whole-archive -lquadmath -Wl,-Bdynamic,--no-whole-archive -shared -L$MATLAB/bin/win64 -Wl,-Bstatic,--whole-archive -lwinpthread -Wl,-Bdynamic,--no-whole-archive" - MATLAB_LDFLAGS="$MATLAB_LDFLAGS_NOMAP \$(abs_top_srcdir)/mex.def" - # Hack for libssp, which is pulled in by -fstack-protector - # (curiously only on some MEX files), see windows/build.sh. - # Note that the link against libssp should not happen with compilers - # from MSYS2, see: - # https://www.msys2.org/news/#2022-10-10-libssp-is-no-longer-required - # But it happens with Debian’s cross compilers (as of Debian “bookworm” 12). - # Also note that the -lssp must come by the end of the link command - # (otherwise it will have to be enclosed within --whole-archive). - MATLAB_LIBS="-lmex -lmx -lmat -lmwlapack -lmwblas -Wl,-Bstatic -lssp -Wl,-Bdynamic" - # Hack for static linking of libgomp, needed for OpenMP. - # Should come by the end of the link command - # (otherwise it will have to be enclosed within --whole-archive). - OPENMP_LIBS="-Wl,-Bstatic -lgomp -Wl,-Bdynamic" - FORTRAN_LIBS_FOR_CXXLINK="-Wl,-Bstatic -lgfortran -Wl,-Bdynamic" # libquadmath is already in MATLAB_LDFLAGS_NOMAP - ax_mexopts_ok="yes" - ;; - mac[[ai]]64) - MATLAB_DEFS="-DNDEBUG" - MATLAB_CFLAGS="-fno-common -fexceptions" - MATLAB_CXXFLAGS="-fno-common -fexceptions" - MATLAB_FCFLAGS="-fexceptions -fbackslash" - MATLAB_LDFLAGS_NOMAP="-Wl,-twolevel_namespace -undefined error -bundle" - MATLAB_LDFLAGS="$MATLAB_LDFLAGS_NOMAP -Wl,-exported_symbols_list,\$(abs_top_srcdir)/mexFunction-MacOSX.map" - # This -L flag is put here, hence later on the linker command line, so as - # to avoid linking against the HDF5 shipped by MATLAB (which would - # otherwise override the HDF5 from Homebrew) - MATLAB_LIBS="-L$MATLAB/bin/${MATLAB_ARCH} -lmx -lmex -lmat -lmwlapack -lmwblas" - FORTRAN_LIBS_FOR_CXXLINK="-lgfortran -lquadmath" - ax_mexopts_ok="yes" - ;; - *) - ax_mexopts_ok="no" - ;; -esac - -# Converts the MATLAB version number into comparable integers with only major and minor version numbers -# For example, 7.4.2 will become 0704 -ax_matlab_ver=$(echo "$MATLAB_VERSION" | $SED -e 's/\([[0-9]]*\)\.\([[0-9]]*\).*/Z\1ZZ\2Z/' \ - -e 's/Z\([[0-9]]\)Z/Z0\1Z/g' \ - -e 's/[[^0-9]]//g') - -MATLAB_DEFS="$MATLAB_DEFS -DMATLAB_VERSION=0x${ax_matlab_ver}" - -if test "$ax_mexopts_ok" = "yes"; then - AC_MSG_RESULT([ok]) -else - AC_MSG_RESULT([unknown]) -fi - -# Allow user to override default Matlab compilation flags -# Github ticket #1121 -if test -n "$MATLAB_MEX_CPPFLAGS"; then - MATLAB_CPPFLAGS="$MATLAB_CPPFLAGS $MATLAB_MEX_CPPFLAGS" -fi - -if test -n "$MATLAB_MEX_DEFS"; then - MATLAB_DEFS="$MATLAB_DEFS $MATLAB_MEX_DEFS" -fi - -if test -n "$MATLAB_MEX_CFLAGS"; then - MATLAB_CFLAGS="$MATLAB_CFLAGS $MATLAB_MEX_CFLAGS" -fi - -if test -n "$MATLAB_MEX_CXXFLAGS"; then - MATLAB_CXXFLAGS="$MATLAB_CXXFLAGS $MATLAB_MEX_CXXFLAGS" -fi - -if test -n "$MATLAB_MEX_LDFLAGS"; then - MATLAB_LDFLAGS="$MATLAB_LDFLAGS $MATLAB_MEX_LDFLAGS" -fi - -if test -n "$MATLAB_MEX_LIBS"; then - MATLAB_LIBS="$MATLAB_LIBS $MATLAB_MEX_LIBS" -fi - -AC_SUBST([MATLAB_CPPFLAGS]) -AC_SUBST([MATLAB_DEFS]) -AC_SUBST([MATLAB_CFLAGS]) -AC_SUBST([MATLAB_CXXFLAGS]) -AC_SUBST([MATLAB_FCFLAGS]) -AC_SUBST([MATLAB_LDFLAGS]) -AC_SUBST([MATLAB_LIBS]) -AC_SUBST([OPENMP_LIBS]) -AC_SUBST([FORTRAN_LIBS_FOR_CXXLINK]) -]) diff --git a/m4/ax_octave.m4 b/m4/ax_octave.m4 deleted file mode 100644 index 6bd400d6e..000000000 --- a/m4/ax_octave.m4 +++ /dev/null @@ -1,56 +0,0 @@ -dnl ax_octave.m4 --- check for Octave -dnl -dnl Copyright © 2020-2021 Dynare Team -dnl -dnl This program is free software; you can redistribute it and/or -dnl modify it under the terms of the GNU General Public License as -dnl published by the Free Software Foundation; either version 2, -dnl or (at your option) any later version. -dnl -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License along -dnl with this program. If not, see . -dnl -dnl As a special exception to the GNU General Public License, if -dnl you distribute this file as part of a program that contains a -dnl configuration script generated by GNU Autoconf, you may include -dnl it under the same distribution terms that you use for the rest -dnl of that program. - -# AX_OCTAVE -# --------- -# Checks for Octave. -# Search in the argument given to --with-octave if any. -# Otherwise, search in PATH. -# Sets OCTAVE and MKOCTFILE variables and calls AC_SUBST on them. -# Sets ax_enable_octave=yes if successful, ax_enable_octave=no otherwise -AC_DEFUN([AX_OCTAVE], -[dnl -AC_ARG_WITH([octave], AS_HELP_STRING([--with-octave=PATH], [Path to search for Octave installation]), -[ - if test -n "$withval"; then - if test -x "$withval/bin/octave" && test -x "$withval/bin/mkoctfile"; then - OCTAVE="$withval/bin/octave" - MKOCTFILE="$withval/bin/mkoctfile" - else - AC_MSG_ERROR([invalid value '$withval' for --with-octave]) - fi - fi -]) - -AC_CHECK_PROG([OCTAVE], [octave], [octave]) -AC_CHECK_PROG([MKOCTFILE], [mkoctfile], [mkoctfile]) - -if test -n "$OCTAVE" && test -n "$MKOCTFILE"; then - ax_enable_octave=yes -else - ax_enable_octave=no -fi - -AC_SUBST([OCTAVE]) -AC_SUBST([MKOCTFILE]) -]) diff --git a/m4/ax_prog_ln_s.m4 b/m4/ax_prog_ln_s.m4 deleted file mode 100644 index 64916c41f..000000000 --- a/m4/ax_prog_ln_s.m4 +++ /dev/null @@ -1,27 +0,0 @@ -dnl Copyright © 2009-2010 Dynare Team -dnl -dnl This file is part of Dynare. -dnl -dnl Dynare is free software: you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation, either version 3 of the License, or -dnl (at your option) any later version. -dnl -dnl Dynare is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with Dynare. If not, see . - -AC_DEFUN([AX_PROG_LN_S], -[ -AC_REQUIRE([AC_CANONICAL_HOST]) -AC_REQUIRE([AC_PROG_LN_S]) -case ${host_os} in - *cygwin*|*mingw32*) - LN_S="cp -p" # Symbolic links are not understood by MATLAB under Windows - ;; -esac -]) diff --git a/m4/ax_slicot.m4 b/m4/ax_slicot.m4 deleted file mode 100644 index e329d0b17..000000000 --- a/m4/ax_slicot.m4 +++ /dev/null @@ -1,68 +0,0 @@ -dnl Detect the SLICOT Library. -dnl Called with an argument of either 'matlab' or 'octave', depending -dnl on the configure script from which we're calling it -dnl -dnl AX_SLICOT([matlab]) -dnl AX_SLICOT([octave]) -dnl -dnl Copyright © 2012-2021 Dynare Team -dnl -dnl This file is part of Dynare. -dnl -dnl Dynare is free software: you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation, either version 3 of the License, or -dnl (at your option) any later version. -dnl -dnl Dynare is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with Dynare. If not, see . - -AC_DEFUN([AX_SLICOT], -[ - if test "$1" != matlab && test "$1" != octave; then - AC_MSG_ERROR([Argument to autoconf slicot macro must be either 'matlab' or 'octave']) - fi - - AC_ARG_WITH(slicot, AS_HELP_STRING([--with-slicot=DIR], [prefix to SLICOT installation]), - slicot_prefix="$withval", slicot_prefix="") - has_slicot=yes - - if test -n "$slicot_prefix"; then - LDFLAGS_SLICOT="-L$withval/lib" - else - LDFLAGS_SLICOT="" - fi - my_save_LDFLAGS=$LDFLAGS - - # At this point we should add MATLAB_FCFLAGS to FCFLAGS for Windows (which has -fno-underscoring), - # but that does not work. The actual underscore test seems to happen at the very beginning of the - # macro. Hence the modification of FCFLAGS was moved higher (in mex/build/matlab/configure.ac). - AC_FC_FUNC(sb02od) - - if test "$1" = matlab; then - LDFLAGS="$LDFLAGS $MATLAB_LDFLAGS_NOMAP $LDFLAGS_SLICOT" - - # Add MATLAB_CFLAGS to get the -fPIC on Linux/x86_64 (otherwise linking fails) - my_save_CFLAGS=$CFLAGS - CFLAGS="$CFLAGS $MATLAB_CFLAGS" - AC_CHECK_LIB([slicot64_pic], [$sb02od], [LIBADD_SLICOT="-lslicot64_pic"], [has_slicot=no], [$MATLAB_LIBS]) - CFLAGS=$my_save_CFLAGS - else - LDFLAGS="$LDFLAGS $LDFLAGS_SLICOT" - # Fallback on libslicot_pic if dynamic libslicot not found - AC_CHECK_LIB([slicot], [$sb02od], [LIBADD_SLICOT="-lslicot"], - [ - AC_CHECK_LIB([slicot_pic], [$sb02od], [LIBADD_SLICOT="-lslicot_pic"], [has_slicot=no], [$($MKOCTFILE -p BLAS_LIBS) $($MKOCTFILE -p LAPACK_LIBS)]) - ], - [$($MKOCTFILE -p BLAS_LIBS) $($MKOCTFILE -p LAPACK_LIBS)]) - fi - - LDFLAGS=$my_save_LDFLAGS - AC_SUBST(LDFLAGS_SLICOT) - AC_SUBST(LIBADD_SLICOT) -]) diff --git a/mex/build/matlab/mexFunction-MacOSX.map b/macOS/mexFunction-MacOSX.map similarity index 100% rename from mex/build/matlab/mexFunction-MacOSX.map rename to macOS/mexFunction-MacOSX.map diff --git a/meson.build b/meson.build index 05d8db369..137f9618c 100644 --- a/meson.build +++ b/meson.build @@ -87,7 +87,7 @@ if get_option('build_for') == 'matlab' elif host_machine.system() == 'windows' and host_machine.cpu_family() == 'x86_64' mexext = 'mexw64' matlab_arch = 'win64' - export_file = meson.current_source_dir() / 'mex/build/matlab/mex.def' + export_file = meson.current_source_dir() / 'windows/mex.def' export_link_arg = export_file if get_option('build_for') == 'matlab' arch_fortran_args = [ '-fno-underscoring' ] @@ -102,7 +102,7 @@ if get_option('build_for') == 'matlab' else error('Unsupported platform') endif - export_file = meson.current_source_dir() / 'mex/build/matlab/mexFunction-MacOSX.map' + export_file = meson.current_source_dir() / 'macOS/mexFunction-MacOSX.map' export_link_arg = '-Wl,-exported_symbols_list,' + export_file else error('Unsupported platform') diff --git a/mex/build/block_trust_region.am b/mex/build/block_trust_region.am deleted file mode 100644 index 71b296e5f..000000000 --- a/mex/build/block_trust_region.am +++ /dev/null @@ -1,29 +0,0 @@ -mex_PROGRAMS = block_trust_region - -nodist_block_trust_region_SOURCES = \ - dulmage_mendelsohn.f08 \ - matlab_fcn_closure.F08 \ - trust_region.f08 \ - mexFunction.f08 \ - matlab_mex.F08 \ - blas_lapack.F08 - -BUILT_SOURCES = $(nodist_block_trust_region_SOURCES) -CLEANFILES = $(nodist_block_trust_region_SOURCES) - -dulmage_mendelsohn.o: matlab_mex.mod -dulmage_mendelsohn.mod: dulmage_mendelsohn.o - -matlab_fcn_closure.mod: matlab_fcn_closure.o -matlab_fcn_closure.o: matlab_mex.mod - -trust_region.mod: trust_region.o -trust_region.o: lapack.mod - -mexFunction.o: matlab_mex.mod dulmage_mendelsohn.mod matlab_fcn_closure.mod trust_region.mod - -%.f08: $(top_srcdir)/../../sources/block_trust_region/%.f08 - $(LN_S) -f $< $@ - -%.F08: $(top_srcdir)/../../sources/block_trust_region/%.F08 - $(LN_S) -f $< $@ diff --git a/mex/build/bytecode.am b/mex/build/bytecode.am deleted file mode 100644 index d4c535657..000000000 --- a/mex/build/bytecode.am +++ /dev/null @@ -1,19 +0,0 @@ -mex_PROGRAMS = bytecode - -TOPDIR = $(top_srcdir)/../../sources/bytecode - -bytecode_CPPFLAGS = $(AM_CPPFLAGS) -I$(TOPDIR) -I$(top_srcdir)/../../../preprocessor/src - -nodist_bytecode_SOURCES = \ - bytecode.cc \ - Interpreter.cc \ - Mem_Mngr.cc \ - SparseMatrix.cc \ - Evaluate.cc \ - BasicSymbolTable.cc - -BUILT_SOURCES = $(nodist_bytecode_SOURCES) -CLEANFILES = $(nodist_bytecode_SOURCES) - -%.cc: $(TOPDIR)/%.cc - $(LN_S) -f $< $@ diff --git a/mex/build/cycle_reduction.am b/mex/build/cycle_reduction.am deleted file mode 100644 index ad774a29f..000000000 --- a/mex/build/cycle_reduction.am +++ /dev/null @@ -1,18 +0,0 @@ -mex_PROGRAMS = cycle_reduction - -nodist_cycle_reduction_SOURCES = \ - matlab_mex.F08 \ - blas_lapack.F08 \ - mexFunction.f08 - -BUILT_SOURCES = $(nodist_cycle_reduction_SOURCES) -CLEANFILES = $(nodist_cycle_reduction_SOURCES) - -mexFunction.o: matlab_mex.mod blas.mod lapack.mod - -mexFunction.mod: mexFunction.o - -%.f08: $(top_srcdir)/../../sources/cycle_reduction/%.f08 - $(LN_S) -f $< $@ -%.F08: $(top_srcdir)/../../sources/cycle_reduction/%.F08 - $(LN_S) -f $< $@ diff --git a/mex/build/disclyap_fast.am b/mex/build/disclyap_fast.am deleted file mode 100644 index 011d4e0ee..000000000 --- a/mex/build/disclyap_fast.am +++ /dev/null @@ -1,11 +0,0 @@ -mex_PROGRAMS = disclyap_fast - -nodist_disclyap_fast_SOURCES = disclyap_fast.f08 matlab_mex.F08 blas_lapack.F08 - -BUILT_SOURCES = $(nodist_disclyap_fast_SOURCES) -CLEANFILES = $(nodist_disclyap_fast_SOURCES) - -disclyap_fast.o : matlab_mex.mod lapack.mod - -%.f08: $(top_srcdir)/../../sources/disclyap_fast/%.f08 - $(LN_S) -f $< $@ diff --git a/mex/build/folded_to_unfolded_dr.am b/mex/build/folded_to_unfolded_dr.am deleted file mode 100644 index d0359723a..000000000 --- a/mex/build/folded_to_unfolded_dr.am +++ /dev/null @@ -1,14 +0,0 @@ -mex_PROGRAMS = folded_to_unfolded_dr - -folded_to_unfolded_dr_FCFLAGS = $(AM_FCFLAGS) -I../libkordersim - -nodist_folded_to_unfolded_dr_SOURCES = \ - mexFunction.f08 - -folded_to_unfolded_dr_LDADD = ../libkordersim/libkordersim.a - -BUILT_SOURCES = $(nodist_folded_to_unfolded_dr_SOURCES) -CLEANFILES = $(nodist_folded_to_unfolded_dr_SOURCES) - -%.f08: $(top_srcdir)/../../sources/folded_to_unfolded_dr/%.f08 - $(LN_S) -f $< $@ diff --git a/mex/build/gensylv.am b/mex/build/gensylv.am deleted file mode 100644 index 9ac05d7d1..000000000 --- a/mex/build/gensylv.am +++ /dev/null @@ -1,15 +0,0 @@ -mex_PROGRAMS = gensylv - -LIBKORDER_DIR = $(top_srcdir)/../../sources/libkorder - -gensylv_CPPFLAGS = $(AM_CPPFLAGS) -I$(LIBKORDER_DIR)/sylv -I$(LIBKORDER_DIR)/utils - -gensylv_LDADD = ../libkorder/libkorder.a - -nodist_gensylv_SOURCES = gensylv.cc - -BUILT_SOURCES = $(nodist_gensylv_SOURCES) -CLEANFILES = $(nodist_gensylv_SOURCES) - -%.cc: $(top_srcdir)/../../sources/gensylv/%.cc - $(LN_S) -f $< $@ diff --git a/mex/build/k_order_mean.am b/mex/build/k_order_mean.am deleted file mode 100644 index 5c38cd37c..000000000 --- a/mex/build/k_order_mean.am +++ /dev/null @@ -1,14 +0,0 @@ -mex_PROGRAMS = k_order_mean - -k_order_mean_FCFLAGS = $(AM_FCFLAGS) -I../libkordersim - -nodist_k_order_mean_SOURCES = \ - mexFunction.f08 - -k_order_mean_LDADD = ../libkordersim/libkordersim.a - -BUILT_SOURCES = $(nodist_k_order_mean_SOURCES) -CLEANFILES = $(nodist_k_order_mean_SOURCES) - -%.f08: $(top_srcdir)/../../sources/k_order_mean/%.f08 - $(LN_S) -f $< $@ diff --git a/mex/build/k_order_perturbation.am b/mex/build/k_order_perturbation.am deleted file mode 100644 index c872333b5..000000000 --- a/mex/build/k_order_perturbation.am +++ /dev/null @@ -1,16 +0,0 @@ -mex_PROGRAMS = k_order_perturbation - -TOPDIR = $(top_srcdir)/../../sources/k_order_perturbation -LIBKORDER_DIR = $(top_srcdir)/../../sources/libkorder - -k_order_perturbation_CPPFLAGS = $(AM_CPPFLAGS) -I$(LIBKORDER_DIR) -I$(LIBKORDER_DIR)/kord -I$(LIBKORDER_DIR)/tl -I$(LIBKORDER_DIR)/utils -I$(LIBKORDER_DIR)/sylv -I$(LIBKORDER_DIR)/integ -I$(TOPDIR) - -k_order_perturbation_LDADD = ../libkorder/libkorder.a $(LIBADD_DLOPEN) - -nodist_k_order_perturbation_SOURCES = k_order_perturbation.cc - -BUILT_SOURCES = $(nodist_k_order_perturbation_SOURCES) -CLEANFILES = $(nodist_k_order_perturbation_SOURCES) - -%.cc: $(TOPDIR)/%.cc - $(LN_S) -f $< $@ diff --git a/mex/build/k_order_simul.am b/mex/build/k_order_simul.am deleted file mode 100644 index c7232168f..000000000 --- a/mex/build/k_order_simul.am +++ /dev/null @@ -1,14 +0,0 @@ -mex_PROGRAMS = k_order_simul - -k_order_simul_FCFLAGS = $(AM_FCFLAGS) -I../libkordersim - -nodist_k_order_simul_SOURCES = \ - mexFunction.f08 - -k_order_simul_LDADD = ../libkordersim/libkordersim.a - -BUILT_SOURCES = $(nodist_k_order_simul_SOURCES) -CLEANFILES = $(nodist_k_order_simul_SOURCES) - -%.f08: $(top_srcdir)/../../sources/k_order_simul/%.f08 - $(LN_S) -f $< $@ diff --git a/mex/build/k_order_welfare.am b/mex/build/k_order_welfare.am deleted file mode 100644 index 8fdcdde6c..000000000 --- a/mex/build/k_order_welfare.am +++ /dev/null @@ -1,20 +0,0 @@ -mex_PROGRAMS = k_order_welfare - -TOPDIR = $(top_srcdir)/../../sources/k_order_welfare -LIBKORDER_DIR = $(top_srcdir)/../../sources/libkorder - -k_order_welfare_CPPFLAGS = $(AM_CPPFLAGS) -I$(TOPDIR) -I$(LIBKORDER_DIR) -I$(LIBKORDER_DIR)/tl -I$(LIBKORDER_DIR)/kord -I$(LIBKORDER_DIR)/sylv -I$(LIBKORDER_DIR)/utils - -k_order_welfare_LDADD = ../libkorder/libkorder.a $(LIBADD_DLOPEN) - -nodist_k_order_welfare_SOURCES = \ - k_order_welfare.cc \ - approximation_welfare.cc \ - k_ord_objective.cc \ - objective_m.cc - -BUILT_SOURCES = $(nodist_k_order_welfare_SOURCES) -CLEANFILES = $(nodist_k_order_welfare_SOURCES) - -%.cc: $(TOPDIR)/%.cc - $(LN_S) -f $< $@ diff --git a/mex/build/kalman_steady_state.am b/mex/build/kalman_steady_state.am deleted file mode 100644 index 21f03ecae..000000000 --- a/mex/build/kalman_steady_state.am +++ /dev/null @@ -1,12 +0,0 @@ -mex_PROGRAMS = kalman_steady_state - -kalman_steady_state_LDADD = $(LIBADD_SLICOT) -kalman_steady_state_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_SLICOT) - -nodist_kalman_steady_state_SOURCES = kalman_steady_state.cc - -BUILT_SOURCES = $(nodist_kalman_steady_state_SOURCES) -CLEANFILES = $(nodist_kalman_steady_state_SOURCES) - -%.cc: $(top_srcdir)/../../sources/kalman_steady_state/%.cc - $(LN_S) -f $< $@ diff --git a/mex/build/kronecker.am b/mex/build/kronecker.am deleted file mode 100644 index 9308edf08..000000000 --- a/mex/build/kronecker.am +++ /dev/null @@ -1,18 +0,0 @@ -mex_PROGRAMS = sparse_hessian_times_B_kronecker_C A_times_B_kronecker_C - -nodist_sparse_hessian_times_B_kronecker_C_SOURCES = sparse_hessian_times_B_kronecker_C.cc -nodist_A_times_B_kronecker_C_SOURCES = A_times_B_kronecker_C.f08 matlab_mex.F08 blas_lapack.F08 - -sparse_hessian_times_B_kronecker_C_CXXFLAGS = $(AM_CXXFLAGS) -fopenmp -sparse_hessian_times_B_kronecker_C_LDADD = $(OPENMP_LIBS) - -BUILT_SOURCES = $(nodist_sparse_hessian_times_B_kronecker_C_SOURCES) $(nodist_A_times_B_kronecker_C_SOURCES) -CLEANFILES = $(nodist_sparse_hessian_times_B_kronecker_C_SOURCES) $(nodist_A_times_B_kronecker_C_SOURCES) - -%.cc: $(top_srcdir)/../../sources/kronecker/%.cc - $(LN_S) -f $< $@ - -A_times_B_kronecker_C.o : matlab_mex.mod lapack.mod - -%.f08: $(top_srcdir)/../../sources/kronecker/%.f08 - $(LN_S) -f $< $@ diff --git a/mex/build/libkorder.am b/mex/build/libkorder.am deleted file mode 100644 index 7f0ed700c..000000000 --- a/mex/build/libkorder.am +++ /dev/null @@ -1,90 +0,0 @@ -noinst_LIBRARIES = libkorder.a - -TOPDIR = $(top_srcdir)/../../sources/libkorder - -libkorder_a_CPPFLAGS = $(AM_CPPFLAGS) -I$(TOPDIR) -I$(TOPDIR)/tl -I$(TOPDIR)/sylv -I$(TOPDIR)/kord -I$(TOPDIR)/utils - -# TODO: fix the codebase so that the following line is no longer needed -libkorder_a_CXXFLAGS = $(AM_CXXFLAGS) -Wno-unused-parameter - -KORD_SRCS = \ - approximation.cc \ - decision_rule.cc \ - dynamic_model.cc \ - faa_di_bruno.cc \ - first_order.cc \ - korder.cc \ - korder_stoch.cc \ - journal.cc - -SYLV_SRCS = \ - BlockDiagonal.cc \ - GeneralMatrix.cc \ - GeneralSylvester.cc \ - IterativeSylvester.cc \ - KronUtils.cc \ - KronVector.cc \ - QuasiTriangular.cc \ - QuasiTriangularZero.cc \ - SchurDecomp.cc \ - SchurDecompEig.cc \ - SimilarityDecomp.cc \ - SylvException.cc \ - SylvMatrix.cc \ - SylvParams.cc \ - SymSchurDecomp.cc \ - TriangularSylvester.cc \ - Vector.cc - -TL_SRCS = \ - equivalence.cc \ - fine_container.cc \ - fs_tensor.cc \ - gs_tensor.cc \ - int_sequence.cc \ - kron_prod.cc \ - normal_moments.cc \ - permutation.cc \ - ps_tensor.cc \ - pyramid_prod.cc \ - pyramid_prod2.cc \ - rfs_tensor.cc \ - sparse_tensor.cc \ - stack_container.cc \ - symmetry.cc \ - t_container.cc \ - t_polynomial.cc \ - tensor.cc \ - tl_static.cc \ - twod_matrix.cc - -UTILS_SRCS = \ - pascal_triangle.cc \ - int_power.cc \ - sthread.cc - -TOPDIR_SRCS = \ - k_ord_dynare.cc \ - dynamic_dll.cc \ - dynamic_m.cc - -nodist_libkorder_a_SOURCES = \ - $(KORD_SRCS) \ - $(TL_SRCS) \ - $(SYLV_SRCS) \ - $(UTILS_SRCS) \ - $(TOPDIR_SRCS) - -BUILT_SOURCES = $(nodist_libkorder_a_SOURCES) -CLEANFILES = $(nodist_libkorder_a_SOURCES) - -$(TOPDIR_SRCS): %.cc: $(TOPDIR)/%.cc - $(LN_S) -f $< $@ -$(KORD_SRCS): %.cc: $(TOPDIR)/kord/%.cc - $(LN_S) -f $< $@ -$(TL_SRCS): %.cc: $(TOPDIR)/tl/%.cc - $(LN_S) -f $< $@ -$(SYLV_SRCS): %.cc: $(TOPDIR)/sylv/%.cc - $(LN_S) -f $< $@ -$(UTILS_SRCS): %.cc: $(TOPDIR)/utils/%.cc - $(LN_S) -f $< $@ diff --git a/mex/build/libkordersim.am b/mex/build/libkordersim.am deleted file mode 100644 index f3c53ddc7..000000000 --- a/mex/build/libkordersim.am +++ /dev/null @@ -1,35 +0,0 @@ -noinst_LIBRARIES = libkordersim.a - -nodist_libkordersim_a_SOURCES = \ - blas_lapack.F08 \ - matlab_mex.F08 \ - pascal.f08 \ - sort.f08 \ - partitions.f08 \ - tensors.f08 \ - simulation.f08 \ - struct.f08 \ - pthread.F08 - - -BUILT_SOURCES = $(nodist_libkordersim_a_SOURCES) -CLEANFILES = $(nodist_libkordersim_a_SOURCES) - -struct.o: matlab_mex.mod -struct.mod: struct.o - -pascal.mod: pascal.o - -sort.mod: sort.o - -partitions.o: sort.mod pascal.mod -partitions.mod: partitions.o - -tensors.o: partitions.mod -tensors.mod: tensors.o - -simulation.o: tensors.mod lapack.mod matlab_mex.mod -simulation.mod: simulation.o - -%.f08: $(top_srcdir)/../../sources/libkordersim/%.f08 - $(LN_S) -f $< $@ diff --git a/mex/build/local_state_space_iterations.am b/mex/build/local_state_space_iterations.am deleted file mode 100644 index ddff330da..000000000 --- a/mex/build/local_state_space_iterations.am +++ /dev/null @@ -1,27 +0,0 @@ -mex_PROGRAMS = local_state_space_iteration_2 local_state_space_iteration_3 local_state_space_iteration_k - -nodist_local_state_space_iteration_2_SOURCES = local_state_space_iteration_2.cc -nodist_local_state_space_iteration_3_SOURCES = local_state_space_iteration_3.f08 -nodist_local_state_space_iteration_k_SOURCES = local_state_space_iteration_k.f08 - -local_state_space_iteration_2_CXXFLAGS = $(AM_CXXFLAGS) -fopenmp -local_state_space_iteration_2_LDADD = $(OPENMP_LIBS) - -local_state_space_iteration_3_FCFLAGS = $(AM_FCFLAGS) -I../libkordersim -pthread -local_state_space_iteration_3_LDADD = ../libkordersim/libkordersim.a - -local_state_space_iteration_k_FCFLAGS = $(AM_FCFLAGS) -I../libkordersim -pthread -local_state_space_iteration_k_LDADD = ../libkordersim/libkordersim.a - -BUILT_SOURCES = $(nodist_local_state_space_iteration_2_SOURCES) \ - $(nodist_local_state_space_iteration_3_SOURCES) \ - $(nodist_local_state_space_iteration_k_SOURCES) -CLEANFILES = $(nodist_local_state_space_iteration_2_SOURCES) \ - $(nodist_local_state_space_iteration_3_SOURCES) \ - $(nodist_local_state_space_iteration_k_SOURCES) - -%.f08: $(top_srcdir)/../../sources/local_state_space_iterations/%.f08 - $(LN_S) -f $< $@ - -%.cc: $(top_srcdir)/../../sources/local_state_space_iterations/%.cc - $(LN_S) -f $< $@ \ No newline at end of file diff --git a/mex/build/logarithmic_reduction.am b/mex/build/logarithmic_reduction.am deleted file mode 100644 index dc79612f9..000000000 --- a/mex/build/logarithmic_reduction.am +++ /dev/null @@ -1,19 +0,0 @@ -mex_PROGRAMS = logarithmic_reduction - -nodist_logarithmic_reduction_SOURCES = \ - matlab_mex.F08 \ - blas_lapack.F08 \ - mexFunction.f08 - -BUILT_SOURCES = $(nodist_logarithmic_reduction_SOURCES) -CLEANFILES = $(nodist_logarithmic_reduction_SOURCES) - -mexFunction.o: matlab_mex.mod blas.mod lapack.mod - -mexFunction.mod: mexFunction.o - - -%.f08: $(top_srcdir)/../../sources/logarithmic_reduction/%.f08 - $(LN_S) -f $< $@ -%.F08: $(top_srcdir)/../../sources/logarithmic_reduction/%.F08 - $(LN_S) -f $< $@ diff --git a/mex/build/matlab/Makefile.am b/mex/build/matlab/Makefile.am deleted file mode 100644 index 78134214b..000000000 --- a/mex/build/matlab/Makefile.am +++ /dev/null @@ -1,29 +0,0 @@ -ACLOCAL_AMFLAGS = -I ../../../m4 - -SUBDIRS = mjdgges kronecker bytecode sobol perfect_foresight_problem num_procs block_trust_region disclyap_fast libkordersim local_state_space_iterations folded_to_unfolded_dr k_order_simul k_order_mean cycle_reduction logarithmic_reduction riccati_update libkorder gensylv k_order_perturbation k_order_welfare - -if ENABLE_MEX_MS_SBVAR -SUBDIRS += ms_sbvar -endif - -if ENABLE_MEX_KALMAN_STEADY_STATE -SUBDIRS += kalman_steady_state -endif - -if HAVE_M2HTML -html-local: - echo "addpath ${M2HTML}" > run_m2html.m - echo "cd ../../.." >> run_m2html.m - echo "m2html('mFiles', 'matlab', 'htmlDir', 'doc/m2html', 'recursive', 'on', 'globalHypertextLinks', 'on')" >> run_m2html.m - echo "quit" >> run_m2html.m - $(MATLAB)/bin/matlab -r run_m2html # Not using the -nodisplay option, because with m2html it confuses the terminal (need to do a "reset") - -clean-local: - rm -f run_m2html.m - rm -rf ../../../doc/m2html -endif - -install-exec-local: - $(MKDIR_P) $(DESTDIR)$(pkglibdir)/mex/matlab - -EXTRA_DIST = mex.def mexFunction-MacOSX.map diff --git a/mex/build/matlab/block_trust_region/Makefile.am b/mex/build/matlab/block_trust_region/Makefile.am deleted file mode 100644 index 2cc2868d6..000000000 --- a/mex/build/matlab/block_trust_region/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -include ../mex.am -include ../../block_trust_region.am diff --git a/mex/build/matlab/bytecode/Makefile.am b/mex/build/matlab/bytecode/Makefile.am deleted file mode 100644 index 7e351742b..000000000 --- a/mex/build/matlab/bytecode/Makefile.am +++ /dev/null @@ -1,4 +0,0 @@ -include ../mex.am -include ../../bytecode.am - -bytecode_LDADD = -lmwumfpack -lut diff --git a/mex/build/matlab/configure.ac b/mex/build/matlab/configure.ac deleted file mode 100644 index 54cf3c717..000000000 --- a/mex/build/matlab/configure.ac +++ /dev/null @@ -1,156 +0,0 @@ -dnl Process this file with autoconf to produce a configure script. - -dnl Copyright © 2009-2023 Dynare Team -dnl -dnl This file is part of Dynare. -dnl -dnl Dynare is free software: you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation, either version 3 of the License, or -dnl (at your option) any later version. -dnl -dnl Dynare is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with Dynare. If not, see . - -AC_PREREQ([2.62]) -AC_INIT([dynare], [6-unstable]) -AC_CONFIG_SRCDIR([configure.ac]) -AM_INIT_AUTOMAKE([-Wall -Wno-portability foreign]) - -dnl The following must occur before we modify CFLAGS/CXXFLAGS -AC_CANONICAL_HOST - -AX_MATLAB -AX_MATLAB_VERSION -AX_DOT_MEXEXT -AX_MATLAB_ARCH -AX_MEXOPTS - -if test "$ax_enable_matlab" != yes -o "$ax_matlab_version_ok" != yes -o "$ax_mexopts_ok" != yes; then - AC_MSG_ERROR([MATLAB cannot be found]) -fi - -AX_COMPARE_VERSION([$MATLAB_VERSION], [lt], [8.3], [AC_MSG_ERROR([Your MATLAB is too old, please upgrade to version 8.3 (R2014a) at least (or disable MATLAB support with --disable-matlab).])]) - -case ${host_os} in - *cygwin*) - AC_MSG_WARN([You are compiling for the Cygwin target. This means that the MEX files will]) - AC_MSG_WARN([not run from MATLAB, because it cannot load the Cygwin DLL.]) - AC_MSG_WARN([This is probably not what you want. Consider using a MinGW cross-compiler.]) - ;; -esac - -AC_PROG_FC -AC_PROG_CC -AC_PROG_CXX -AC_PROG_RANLIB -AX_PROG_LN_S -AC_PROG_MKDIR_P -AM_PROG_AR - -# Get the size of a pthread_t instance, needed by pthread.F08 -AC_CHECK_SIZEOF([pthread_t], [], [#include ]) - -# Check for dlopen(), needed by k_order_perturbation DLL -AC_CHECK_LIB([dl], [dlopen], [LIBADD_DLOPEN="-ldl"], []) -AC_SUBST([LIBADD_DLOPEN]) - -# Define optional components and their corresponding flags and Automake conditionals -AC_ARG_ENABLE([mex-ms-sbvar], AS_HELP_STRING([--disable-mex-ms-sbvar], [disable compilation of the MS-SBVAR MEX]), [], [enable_mex_ms_sbvar=yes]) -AM_CONDITIONAL([ENABLE_MEX_MS_SBVAR], [test "$enable_mex_ms_sbvar" = yes]) - -AC_ARG_ENABLE([mex-kalman-steady-state], AS_HELP_STRING([--disable-mex-kalman-steady-state], [disable compilation of the kalman_steady_state MEX]), [], [enable_mex_kalman_steady_state=yes]) -AM_CONDITIONAL([ENABLE_MEX_KALMAN_STEADY_STATE], [test "$enable_mex_kalman_steady_state" = yes]) - -# Check for GSL, needed by MS-SBVAR MEX -if test "$enable_mex_ms_sbvar" = yes; then - AX_GSL - test "$has_gsl" != yes && AC_MSG_ERROR([GSL cannot be found. If you want to skip the compilation of the MS-SBVAR MEX, pass the --disable-mex-ms-sbvar flag.]) -fi - -# Check for libslicot, needed by kalman_steady_state -if test "$enable_mex_kalman_steady_state" = yes; then - # FCFLAGS must be temporarily modified, because otherwise -fno-underscoring is not - # taken into account by AC_FC_FUNC in the AX_SLICOT macro. - # For some obscure reason, it is necessary to do it at this level and not within the macro. - my_save_FCFLAGS=$FCFLAGS - FCFLAGS="$FCFLAGS $MATLAB_FCFLAGS" - AX_SLICOT([matlab]) - FCFLAGS=$my_save_FCFLAGS - test "$has_slicot" != yes && AC_MSG_ERROR([slicot cannot be found. If you want to skip the compilation of the kalman_steady_state MEX, pass the --disable-mex-kalman-steady-state flag.]) -fi - -# On Windows, we want static linking of the external libraries -case ${host_os} in - *mingw32*) - GSL_LIBS="-Wl,-Bstatic $GSL_LIBS -Wl,-Bdynamic" - LIBADD_SLICOT="-Wl,-Bstatic $LIBADD_SLICOT -Wl,-Bdynamic" - ;; -esac - -# Support for M2HTML -AC_ARG_WITH([m2html], AS_HELP_STRING([--with-m2html=DIR], [specify installation directory of M2HTML]), [ -M2HTML=$withval -BUILD_M2HTML=yes -], [ -M2HTML= -BUILD_M2HTML=no -]) -AC_SUBST([M2HTML]) -AM_CONDITIONAL([HAVE_M2HTML], [test "x$M2HTML" != "x"]) - -# Construct final output message -if test "$enable_mex_kalman_steady_state" = yes; then - BUILD_KALMAN_STEADY_STATE_MATLAB="yes" -else - BUILD_KALMAN_STEADY_STATE_MATLAB="no" -fi - -if test "$enable_mex_ms_sbvar" = yes; then - BUILD_MS_SBVAR_MEX_MATLAB="yes" -else - BUILD_MS_SBVAR_MEX_MATLAB="no" -fi - -AC_MSG_NOTICE([ - -Dynare is now configured for building the following components... - -Binaries (with "make"): - MEX files for MATLAB (except those listed below): yes - MS-SBVAR MEX files for MATLAB: $BUILD_MS_SBVAR_MEX_MATLAB - Kalman Steady State MEX file for MATLAB: $BUILD_KALMAN_STEADY_STATE_MATLAB - M2HTML documentation: $BUILD_M2HTML - -]) - -AC_CONFIG_FILES([Makefile - mjdgges/Makefile - kronecker/Makefile - bytecode/Makefile - gensylv/Makefile - libkorder/Makefile - k_order_perturbation/Makefile - k_order_welfare/Makefile - kalman_steady_state/Makefile - ms_sbvar/Makefile - sobol/Makefile - local_state_space_iterations/Makefile - libkordersim/Makefile - folded_to_unfolded_dr/Makefile - k_order_simul/Makefile - k_order_mean/Makefile - perfect_foresight_problem/Makefile - num_procs/Makefile - block_trust_region/Makefile - disclyap_fast/Makefile - cycle_reduction/Makefile - logarithmic_reduction/Makefile - riccati_update/Makefile]) - -AC_OUTPUT diff --git a/mex/build/matlab/cycle_reduction/Makefile.am b/mex/build/matlab/cycle_reduction/Makefile.am deleted file mode 100644 index f05308c1f..000000000 --- a/mex/build/matlab/cycle_reduction/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -include ../mex.am -include ../../cycle_reduction.am diff --git a/mex/build/matlab/disclyap_fast/Makefile.am b/mex/build/matlab/disclyap_fast/Makefile.am deleted file mode 100644 index ddf0a49b5..000000000 --- a/mex/build/matlab/disclyap_fast/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -include ../mex.am -include ../../disclyap_fast.am diff --git a/mex/build/matlab/folded_to_unfolded_dr/Makefile.am b/mex/build/matlab/folded_to_unfolded_dr/Makefile.am deleted file mode 100644 index b6ea3f920..000000000 --- a/mex/build/matlab/folded_to_unfolded_dr/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -include ../mex.am -include ../../folded_to_unfolded_dr.am \ No newline at end of file diff --git a/mex/build/matlab/gensylv/Makefile.am b/mex/build/matlab/gensylv/Makefile.am deleted file mode 100644 index 2750dc961..000000000 --- a/mex/build/matlab/gensylv/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -include ../mex.am -include ../../gensylv.am diff --git a/mex/build/matlab/k_order_mean/Makefile.am b/mex/build/matlab/k_order_mean/Makefile.am deleted file mode 100644 index 58684092c..000000000 --- a/mex/build/matlab/k_order_mean/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -include ../mex.am -include ../../k_order_mean.am \ No newline at end of file diff --git a/mex/build/matlab/k_order_perturbation/Makefile.am b/mex/build/matlab/k_order_perturbation/Makefile.am deleted file mode 100644 index 916f40d75..000000000 --- a/mex/build/matlab/k_order_perturbation/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -include ../mex.am -include ../../k_order_perturbation.am diff --git a/mex/build/matlab/k_order_simul/Makefile.am b/mex/build/matlab/k_order_simul/Makefile.am deleted file mode 100644 index 99bfd2fb2..000000000 --- a/mex/build/matlab/k_order_simul/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -include ../mex.am -include ../../k_order_simul.am \ No newline at end of file diff --git a/mex/build/matlab/k_order_welfare/Makefile.am b/mex/build/matlab/k_order_welfare/Makefile.am deleted file mode 100644 index ea0c40789..000000000 --- a/mex/build/matlab/k_order_welfare/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -include ../mex.am -include ../../k_order_welfare.am diff --git a/mex/build/matlab/kalman_steady_state/Makefile.am b/mex/build/matlab/kalman_steady_state/Makefile.am deleted file mode 100644 index db09b25f9..000000000 --- a/mex/build/matlab/kalman_steady_state/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -include ../mex.am -include ../../kalman_steady_state.am diff --git a/mex/build/matlab/kronecker/Makefile.am b/mex/build/matlab/kronecker/Makefile.am deleted file mode 100644 index 41a9064ab..000000000 --- a/mex/build/matlab/kronecker/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -include ../mex.am -include ../../kronecker.am diff --git a/mex/build/matlab/libkorder/Makefile.am b/mex/build/matlab/libkorder/Makefile.am deleted file mode 100644 index bc7168b33..000000000 --- a/mex/build/matlab/libkorder/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -include ../mex.am -include ../../libkorder.am diff --git a/mex/build/matlab/libkordersim/Makefile.am b/mex/build/matlab/libkordersim/Makefile.am deleted file mode 100644 index 727b6b607..000000000 --- a/mex/build/matlab/libkordersim/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -include ../mex.am -include ../../libkordersim.am diff --git a/mex/build/matlab/local_state_space_iterations/Makefile.am b/mex/build/matlab/local_state_space_iterations/Makefile.am deleted file mode 100644 index 4b8b7c077..000000000 --- a/mex/build/matlab/local_state_space_iterations/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -include ../mex.am -include ../../local_state_space_iterations.am \ No newline at end of file diff --git a/mex/build/matlab/logarithmic_reduction/Makefile.am b/mex/build/matlab/logarithmic_reduction/Makefile.am deleted file mode 100644 index fdc1ac2f0..000000000 --- a/mex/build/matlab/logarithmic_reduction/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -include ../mex.am -include ../../logarithmic_reduction.am diff --git a/mex/build/matlab/mex.am b/mex/build/matlab/mex.am deleted file mode 100644 index 03bef38ef..000000000 --- a/mex/build/matlab/mex.am +++ /dev/null @@ -1,51 +0,0 @@ -EXEEXT = $(MEXEXT) - -AM_CPPFLAGS = $(MATLAB_CPPFLAGS) -AM_CPPFLAGS += -I$(top_srcdir)/../../sources - -DEFS += $(MATLAB_DEFS) -DEFS += -DMATLAB_MEX_FILE -DEFS += -DMEXEXT=\"$(MEXEXT)\" - -AM_CFLAGS = $(MATLAB_CFLAGS) -Wall -Wno-parentheses # TODO: use same warnings as C++ -AM_FCFLAGS = $(MATLAB_FCFLAGS) -Wall -Wimplicit-interface -AM_CXXFLAGS = -std=gnu++20 $(MATLAB_CXXFLAGS) -Wall -Wextra -Wold-style-cast -AM_LDFLAGS = $(MATLAB_LDFLAGS) -LIBS += $(MATLAB_LIBS) - -mexdir = $(libdir)/dynare/mex/matlab - -all-local: $(PROGRAMS) -## Create symlinks in mex/matlab/, but only if the build is not -## out-of-tree (because of the Windows installer) - if [ "$(abs_srcdir)" = "$(abs_builddir)" ]; then \ - $(MKDIR_P) $(top_srcdir)/../../matlab && \ - cd $(top_srcdir)/../../matlab && \ - for p in $(PROGRAMS); do \ - $(LN_S) -f $(abs_builddir)/$$p $$p; \ - done; \ - fi - -clean-local: - rm -f *.mod # Fortran modules - if test -d $(top_srcdir)/../../matlab; then \ - cd $(top_srcdir)/../../matlab && rm -f $(PROGRAMS); \ - fi - -# Rules for the Fortran 2008 interface to MEX, BLAS/LAPACK and pthread functions -matlab_mat.mod: matlab_mex.o -matlab_mex.mod: matlab_mex.o - -matlab_mex.F08: $(top_srcdir)/../../sources/matlab_mex.F08 - $(LN_S) -f $< $@ - -blas.mod: blas_lapack.o -lapack.mod: blas_lapack.o - -blas_lapack.F08: $(top_srcdir)/../../sources/blas_lapack.F08 - $(LN_S) -f $< $@ - -pthread.mod: pthread.o - -pthread.F08: $(top_srcdir)/../../sources/pthread.F08 - $(LN_S) -f $< $@ diff --git a/mex/build/matlab/mjdgges/Makefile.am b/mex/build/matlab/mjdgges/Makefile.am deleted file mode 100644 index 63da413b7..000000000 --- a/mex/build/matlab/mjdgges/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -include ../mex.am -include ../../mjdgges.am diff --git a/mex/build/matlab/ms_sbvar/Makefile.am b/mex/build/matlab/ms_sbvar/Makefile.am deleted file mode 100644 index 76ef9a096..000000000 --- a/mex/build/matlab/ms_sbvar/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -include ../mex.am -include ../../ms_sbvar.am - -ms_sbvar_create_init_file_LDADD = -lut -ms_sbvar_command_line_LDADD = -lut diff --git a/mex/build/matlab/num_procs/Makefile.am b/mex/build/matlab/num_procs/Makefile.am deleted file mode 100644 index bf2af814d..000000000 --- a/mex/build/matlab/num_procs/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -include ../mex.am -include ../../num_procs.am diff --git a/mex/build/matlab/perfect_foresight_problem/Makefile.am b/mex/build/matlab/perfect_foresight_problem/Makefile.am deleted file mode 100644 index d2ad7ff72..000000000 --- a/mex/build/matlab/perfect_foresight_problem/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -include ../mex.am -include ../../perfect_foresight_problem.am diff --git a/mex/build/matlab/riccati_update/Makefile.am b/mex/build/matlab/riccati_update/Makefile.am deleted file mode 100644 index 3169d832d..000000000 --- a/mex/build/matlab/riccati_update/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -include ../mex.am -include ../../riccati_update.am diff --git a/mex/build/matlab/sobol/Makefile.am b/mex/build/matlab/sobol/Makefile.am deleted file mode 100644 index c531c2003..000000000 --- a/mex/build/matlab/sobol/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -include ../mex.am -include ../../qmc_sequence.am diff --git a/mex/build/mjdgges.am b/mex/build/mjdgges.am deleted file mode 100644 index d9e05a2d2..000000000 --- a/mex/build/mjdgges.am +++ /dev/null @@ -1,11 +0,0 @@ -mex_PROGRAMS = mjdgges - -nodist_mjdgges_SOURCES = mjdgges.F08 matlab_mex.F08 blas_lapack.F08 - -BUILT_SOURCES = $(nodist_mjdgges_SOURCES) -CLEANFILES = $(nodist_mjdgges_SOURCES) - -mjdgges.o : matlab_mex.mod lapack.mod - -%.F08: $(top_srcdir)/../../sources/mjdgges/%.F08 - $(LN_S) -f $< $@ diff --git a/mex/build/ms_sbvar.am b/mex/build/ms_sbvar.am deleted file mode 100644 index 400802042..000000000 --- a/mex/build/ms_sbvar.am +++ /dev/null @@ -1,92 +0,0 @@ -mex_PROGRAMS = ms_sbvar_create_init_file ms_sbvar_command_line - -DWSWITCHDIR = $(top_srcdir)/../../../contrib/ms-sbvar/switch_dw -DWUTILITIESDIR = $(top_srcdir)/../../../contrib/ms-sbvar/utilities_dw - -DYNMEXSRCDIR = $(top_srcdir)/../../sources -MSMEXSRCDIR = $(DYNMEXSRCDIR)/ms-sbvar - -AM_CPPFLAGS += $(GSL_CPPFLAGS) -DSTRUCTURED_COLUMN_MAJOR -I$(MSMEXSRCDIR) -I$(DWUTILITIESDIR)/include -I$(DWSWITCHDIR)/switching -I$(DWSWITCHDIR)/state_space -I$(DWSWITCHDIR)/state_space/sbvar - -LIBS += $(GSL_LIBS) -AM_LDFLAGS += $(GSL_LDFLAGS) - -DWUTILS = \ - dw_array.c \ - dw_matrix_array.c \ - dw_ascii.c \ - dw_parse_cmd.c \ - dw_elliptical.c \ - dw_error.c \ - dw_histogram.c \ - dw_math.c \ - dw_matrix.c \ - bmatrix.c \ - dw_matrix_sort.c \ - dw_rand_gsl.c \ - dw_matrix_rand.c - -MSMEXSRC = \ - mex_top_level.cc \ - modify_for_mex.cc - -nodist_ms_sbvar_create_init_file_SOURCES = \ - dw_switch.c \ - dw_switchio.c \ - dw_dirichlet_restrictions.c \ - dw_metropolis_theta.c \ - create_init_file.c \ - VARbase.c \ - VARio.c \ - VARio_matlab.c \ - $(DWUTILS) \ - $(MSMEXSRC) - -nodist_ms_sbvar_command_line_SOURCES = \ - dw_switch.c \ - dw_switchio.c \ - dw_dirichlet_restrictions.c \ - dw_metropolis_theta.c \ - dw_switch_opt.c \ - dw_mdd_switch.c \ - VARbase.c \ - VARio.c \ - dw_sbvar_command_line.c \ - sbvar_estimate.c \ - sbvar_simulate.c \ - sbvar_probabilities.c \ - sbvar_mdd.c \ - sbvar_forecast.c \ - sbvar_variance_decomposition.c \ - sbvar_impulse_responses.c \ - dw_csminwel.c \ - $(DWUTILS) \ - $(MSMEXSRC) - -BUILT_SOURCES = $(nodist_ms_sbvar_create_init_file_SOURCES) $(nodist_ms_sbvar_command_line_SOURCES) -CLEANFILES = $(nodist_ms_sbvar_create_init_file_SOURCES) $(nodist_ms_sbvar_command_line_SOURCES) - -dw_array.c dw_matrix_array.c: %.c: $(DWUTILITIESDIR)/arrays/%.c - $(LN_S) -f $< $@ -dw_ascii.c dw_parse_cmd.c: %.c: $(DWUTILITIESDIR)/ascii/%.c - $(LN_S) -f $< $@ -dw_elliptical.c: %.c: $(DWUTILITIESDIR)/elliptical/%.c - $(LN_S) -f $< $@ -dw_error.c: %.c: $(DWUTILITIESDIR)/error/%.c - $(LN_S) -f $< $@ -dw_histogram.c: %.c: $(DWUTILITIESDIR)/histogram/%.c - $(LN_S) -f $< $@ -dw_math.c: %.c: $(DWUTILITIESDIR)/math/%.c - $(LN_S) -f $< $@ -dw_matrix.c bmatrix.c: %.c: $(DWUTILITIESDIR)/matrix/%.c - $(LN_S) -f $< $@ -dw_matrix_sort.c: %.c: $(DWUTILITIESDIR)/sort/%.c - $(LN_S) -f $< $@ -dw_rand_gsl.c dw_matrix_rand.c: %.c: $(DWUTILITIESDIR)/stat/%.c - $(LN_S) -f $< $@ -$(MSMEXSRC): %.cc: $(MSMEXSRCDIR)/%.cc - $(LN_S) -f $< $@ -dw_switch.c dw_switchio.c dw_dirichlet_restrictions.c dw_metropolis_theta.c dw_switch_opt.c dw_mdd_switch.c: %.c: $(DWSWITCHDIR)/switching/%.c - $(LN_S) -f $< $@ -create_init_file.c VARbase.c VARio.c VARio_matlab.c dw_sbvar_command_line.c sbvar_estimate.c sbvar_simulate.c sbvar_probabilities.c sbvar_mdd.c sbvar_forecast.c sbvar_variance_decomposition.c sbvar_impulse_responses.c dw_csminwel.c: %.c: $(DWSWITCHDIR)/state_space/sbvar/%.c - $(LN_S) -f $< $@ diff --git a/mex/build/num_procs.am b/mex/build/num_procs.am deleted file mode 100644 index 91869e3ae..000000000 --- a/mex/build/num_procs.am +++ /dev/null @@ -1,9 +0,0 @@ -mex_PROGRAMS = num_procs - -nodist_num_procs_SOURCES = num_procs.cc - -BUILT_SOURCES = $(nodist_num_procs_SOURCES) -CLEANFILES = $(nodist_num_procs_SOURCES) - -%.cc: $(top_srcdir)/../../sources/num_procs/%.cc - $(LN_S) -f $< $@ diff --git a/mex/build/octave/Makefile.am b/mex/build/octave/Makefile.am deleted file mode 100644 index 8e93bdd0a..000000000 --- a/mex/build/octave/Makefile.am +++ /dev/null @@ -1,14 +0,0 @@ -ACLOCAL_AMFLAGS = -I ../../../m4 - -SUBDIRS = mjdgges kronecker bytecode sobol perfect_foresight_problem num_procs block_trust_region disclyap_fast libkordersim local_state_space_iterations folded_to_unfolded_dr k_order_simul k_order_mean cycle_reduction logarithmic_reduction riccati_update libkorder gensylv k_order_perturbation k_order_welfare - -if ENABLE_MEX_MS_SBVAR -SUBDIRS += ms_sbvar -endif - -if ENABLE_MEX_KALMAN_STEADY_STATE -SUBDIRS += kalman_steady_state -endif - -install-exec-local: - $(MKDIR_P) $(DESTDIR)$(pkglibdir)/mex/octave diff --git a/mex/build/octave/block_trust_region/Makefile.am b/mex/build/octave/block_trust_region/Makefile.am deleted file mode 100644 index 40cbddc16..000000000 --- a/mex/build/octave/block_trust_region/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -EXEEXT = .mex -include ../mex.am -include ../../block_trust_region.am diff --git a/mex/build/octave/bytecode/Makefile.am b/mex/build/octave/bytecode/Makefile.am deleted file mode 100644 index f952bed76..000000000 --- a/mex/build/octave/bytecode/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -EXEEXT = .mex -include ../mex.am -include ../../bytecode.am - -bytecode_LDADD = $(LIBADD_UMFPACK) diff --git a/mex/build/octave/configure.ac b/mex/build/octave/configure.ac deleted file mode 100644 index 56cbbaf4d..000000000 --- a/mex/build/octave/configure.ac +++ /dev/null @@ -1,174 +0,0 @@ -dnl Process this file with autoconf to produce a configure script. - -dnl Copyright © 2009-2023 Dynare Team -dnl -dnl This file is part of Dynare. -dnl -dnl Dynare is free software: you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation, either version 3 of the License, or -dnl (at your option) any later version. -dnl -dnl Dynare is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with Dynare. If not, see . - -AC_PREREQ([2.62]) -AC_INIT([dynare], [6-unstable]) -AC_CONFIG_SRCDIR([configure.ac]) -AM_INIT_AUTOMAKE([-Wall -Wno-portability foreign]) - -AX_OCTAVE - -test "$ax_enable_octave" != yes && AC_MSG_ERROR([Octave cannot be found]) - -# Let mkoctfile set the default compilers and flags (except for FC and FCFLAGS which are not supported) -# NB: mkoctfile honors overrides via environment variables -CC=$($MKOCTFILE -p CC) -CXX=$($MKOCTFILE -p CXX) -AR=$($MKOCTFILE -p AR) -RANLIB=$($MKOCTFILE -p RANLIB) -CPPFLAGS="$($MKOCTFILE -p CPPFLAGS) $($MKOCTFILE -p INCFLAGS)" -CFLAGS=$($MKOCTFILE -p CFLAGS) -CXXFLAGS=$($MKOCTFILE -p CXXFLAGS) -# The --link-stand-alone is needed since Octave 7 to avoid inserting -shared, which -# is undesirable for generic LDFLAGS. -LDFLAGS=$($MKOCTFILE --link-stand-alone -p LDFLAGS) - -FORTRAN_LIBS_FOR_CXXLINK="-lgfortran -lquadmath" -AC_SUBST([FORTRAN_LIBS_FOR_CXXLINK]) - -AC_CANONICAL_HOST - -OCTAVE_VERSION=$($MKOCTFILE -v 2>&1 | sed 's/mkoctfile, version //') -AX_COMPARE_VERSION([$OCTAVE_VERSION], [lt], [6.2.0], [AC_MSG_ERROR([Your Octave is too old, please upgrade to version 6.2.0 at least (or disable Octave support with --disable-octave).])]) - -AC_PROG_FC -AC_PROG_CC -AC_PROG_CXX -AC_PROG_RANLIB -AX_PROG_LN_S -AC_PROG_MKDIR_P -AM_PROG_AR - -# Get the size of a pthread_t instance, needed by pthread.F08 -AC_CHECK_SIZEOF([pthread_t], [], [#include ]) - -# Check for dlopen(), needed by k_order_perturbation DLL -AC_CHECK_LIB([dl], [dlopen], [LIBADD_DLOPEN="-ldl"], []) -AC_SUBST([LIBADD_DLOPEN]) - -# Define optional components and their corresponding flags and Automake conditionals -AC_ARG_ENABLE([mex-ms-sbvar], AS_HELP_STRING([--disable-mex-ms-sbvar], [disable compilation of the MS-SBVAR MEX]), [], [enable_mex_ms_sbvar=yes]) -AM_CONDITIONAL([ENABLE_MEX_MS_SBVAR], [test "$enable_mex_ms_sbvar" = yes]) - -AC_ARG_ENABLE([mex-kalman-steady-state], AS_HELP_STRING([--disable-mex-kalman-steady-state], [disable compilation of the kalman_steady_state MEX]), [], [enable_mex_kalman_steady_state=yes]) -AM_CONDITIONAL([ENABLE_MEX_KALMAN_STEADY_STATE], [test "$enable_mex_kalman_steady_state" = yes]) - -# Check for GSL, needed by MS-SBVAR -if test "$enable_mex_ms_sbvar" = yes; then - AX_GSL - test "$has_gsl" != yes && AC_MSG_ERROR([GSL cannot be found. If you want to skip the compilation of the MS-SBVAR MEX, pass the --disable-mex-ms-sbvar flag.]) -fi - -# Check for libmatio, needed by ms-sbvar (the latter only under Octave, as an alternative to MATLAB's libmat) -if test "$enable_mex_ms_sbvar" = yes; then - AX_MATIO - test "$has_matio" != yes && AC_MSG_ERROR([libmatio cannot be found. If you want to skip the compilation of MS-SBVAR, pass the --disable-mex-ms-sbvar flags.]) -fi - -# Check for libslicot, needed by kalman_steady_state -if test "$enable_mex_kalman_steady_state" = yes; then - AX_SLICOT([octave]) - test "$has_slicot" != yes && AC_MSG_ERROR([slicot cannot be found. If you want to skip the compilation of the kalman_steady_state MEX, pass the --disable-mex-kalman-steady-state flag.]) -fi - -# Check for UMFPACK, needed by bytecode -AC_CHECK_HEADERS([suitesparse/umfpack.h umfpack.h], [have_umfpack_h=yes]) -if test "$have_umfpack_h" != yes; then - AC_MSG_ERROR([Can't find umfpack.h]) -fi -AC_CHECK_LIB([umfpack], [umfpack_dl_defaults], [LIBADD_UMFPACK="-lumfpack"], [AC_MSG_ERROR([Can't find UMFPACK])]) -AC_SUBST([LIBADD_UMFPACK]) - -# On Windows, we want static linking of the external libraries -case ${host_os} in - *mingw32*) - GSL_LIBS="-Wl,-Bstatic $GSL_LIBS -Wl,-Bdynamic" - LIBADD_MATIO="-Wl,-Bstatic $LIBADD_MATIO -Wl,-Bdynamic" - LIBADD_SLICOT="-Wl,-Bstatic $LIBADD_SLICOT -Wl,-Bdynamic" - ;; -esac - -# Determine whether to link MEX files against the Octave libraries. -# mkoctfile no longer does this by default but in practice it is needed -# for Windows and macOS. -case ${host_os} in - *mingw32*) - # This is hardcoded in src/mkoctfile.cc.in. - link_octave_libs=yes - ;; - *darwin*) - # Under macOS, the Homebrew formula passes --enable-link-all-dependencies - # to the configure script. - link_octave_libs=yes - ;; - *) - link_octave_libs=no - ;; -esac -AM_CONDITIONAL([LINK_OCTAVE_LIBS], [test ${link_octave_libs} = yes]) - -# Construct final output message -if test "$enable_mex_kalman_steady_state" = yes; then - BUILD_KALMAN_STEADY_STATE_OCTAVE="yes" -else - BUILD_KALMAN_STEADY_STATE_OCTAVE="no" -fi - -if test "$enable_mex_ms_sbvar" = yes; then - BUILD_MS_SBVAR_MEX_OCTAVE="yes" -else - BUILD_MS_SBVAR_MEX_OCTAVE="no" -fi - -AC_MSG_NOTICE([ - -Dynare is now configured for building the following components... - -Binaries (with "make"): - MEX files for Octave (except those listed below): yes - MS-SBVAR MEX files for Octave: $BUILD_MS_SBVAR_MEX_OCTAVE - Kalman Steady State MEX file for Octave: $BUILD_KALMAN_STEADY_STATE_OCTAVE - -]) - -AC_CONFIG_FILES([Makefile - mjdgges/Makefile - kronecker/Makefile - bytecode/Makefile - gensylv/Makefile - libkorder/Makefile - k_order_perturbation/Makefile - k_order_welfare/Makefile - kalman_steady_state/Makefile - ms_sbvar/Makefile - sobol/Makefile - local_state_space_iterations/Makefile - libkordersim/Makefile - folded_to_unfolded_dr/Makefile - k_order_simul/Makefile - k_order_mean/Makefile - perfect_foresight_problem/Makefile - num_procs/Makefile - block_trust_region/Makefile - disclyap_fast/Makefile - cycle_reduction/Makefile - logarithmic_reduction/Makefile - riccati_update/Makefile]) - -AC_OUTPUT diff --git a/mex/build/octave/cycle_reduction/Makefile.am b/mex/build/octave/cycle_reduction/Makefile.am deleted file mode 100644 index f8ae0acd3..000000000 --- a/mex/build/octave/cycle_reduction/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -EXEEXT = .mex -include ../mex.am -include ../../cycle_reduction.am diff --git a/mex/build/octave/disclyap_fast/Makefile.am b/mex/build/octave/disclyap_fast/Makefile.am deleted file mode 100644 index 929f34ace..000000000 --- a/mex/build/octave/disclyap_fast/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -EXEEXT = .mex -include ../mex.am -include ../../disclyap_fast.am diff --git a/mex/build/octave/folded_to_unfolded_dr/Makefile.am b/mex/build/octave/folded_to_unfolded_dr/Makefile.am deleted file mode 100644 index d0cad16e3..000000000 --- a/mex/build/octave/folded_to_unfolded_dr/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -EXEEXT = .mex -include ../mex.am -include ../../folded_to_unfolded_dr.am \ No newline at end of file diff --git a/mex/build/octave/gensylv/Makefile.am b/mex/build/octave/gensylv/Makefile.am deleted file mode 100644 index 68bec8f8e..000000000 --- a/mex/build/octave/gensylv/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -EXEEXT = .mex -include ../mex.am -include ../../gensylv.am diff --git a/mex/build/octave/k_order_mean/Makefile.am b/mex/build/octave/k_order_mean/Makefile.am deleted file mode 100644 index 5905c67ce..000000000 --- a/mex/build/octave/k_order_mean/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -EXEEXT = .mex -include ../mex.am -include ../../k_order_mean.am diff --git a/mex/build/octave/k_order_perturbation/Makefile.am b/mex/build/octave/k_order_perturbation/Makefile.am deleted file mode 100644 index f60f2c2a2..000000000 --- a/mex/build/octave/k_order_perturbation/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -EXEEXT = .mex -include ../mex.am -include ../../k_order_perturbation.am diff --git a/mex/build/octave/k_order_simul/Makefile.am b/mex/build/octave/k_order_simul/Makefile.am deleted file mode 100644 index c214b9bc9..000000000 --- a/mex/build/octave/k_order_simul/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -EXEEXT = .mex -include ../mex.am -include ../../k_order_simul.am \ No newline at end of file diff --git a/mex/build/octave/k_order_welfare/Makefile.am b/mex/build/octave/k_order_welfare/Makefile.am deleted file mode 100644 index 4e3f52f20..000000000 --- a/mex/build/octave/k_order_welfare/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -EXEEXT = .mex -include ../mex.am -include ../../k_order_welfare.am diff --git a/mex/build/octave/kalman_steady_state/Makefile.am b/mex/build/octave/kalman_steady_state/Makefile.am deleted file mode 100644 index 6fee5818b..000000000 --- a/mex/build/octave/kalman_steady_state/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -EXEEXT = .mex -include ../mex.am -include ../../kalman_steady_state.am diff --git a/mex/build/octave/kronecker/Makefile.am b/mex/build/octave/kronecker/Makefile.am deleted file mode 100644 index 26b50e81c..000000000 --- a/mex/build/octave/kronecker/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -EXEEXT = .mex -include ../mex.am -include ../../kronecker.am diff --git a/mex/build/octave/libkorder/Makefile.am b/mex/build/octave/libkorder/Makefile.am deleted file mode 100644 index 6f0aef621..000000000 --- a/mex/build/octave/libkorder/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -EXEEXT = .mex -include ../mex.am -include ../../libkorder.am diff --git a/mex/build/octave/libkordersim/Makefile.am b/mex/build/octave/libkordersim/Makefile.am deleted file mode 100644 index 2488da73b..000000000 --- a/mex/build/octave/libkordersim/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -EXEEXT = .mex -include ../mex.am -include ../../libkordersim.am diff --git a/mex/build/octave/local_state_space_iterations/Makefile.am b/mex/build/octave/local_state_space_iterations/Makefile.am deleted file mode 100644 index d70f78c4f..000000000 --- a/mex/build/octave/local_state_space_iterations/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -EXEEXT = .mex -include ../mex.am -include ../../local_state_space_iterations.am diff --git a/mex/build/octave/logarithmic_reduction/Makefile.am b/mex/build/octave/logarithmic_reduction/Makefile.am deleted file mode 100644 index c2e5519d5..000000000 --- a/mex/build/octave/logarithmic_reduction/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -EXEEXT = .mex -include ../mex.am -include ../../logarithmic_reduction.am diff --git a/mex/build/octave/mex.am b/mex/build/octave/mex.am deleted file mode 100644 index 0e77872e7..000000000 --- a/mex/build/octave/mex.am +++ /dev/null @@ -1,57 +0,0 @@ -AM_CPPFLAGS = -I$(top_srcdir)/../../sources - -DEFS += -DOCTAVE_MEX_FILE -DEFS += -DMEXEXT=\".mex\" - -AM_CFLAGS = $(shell $(MKOCTFILE) -p CPICFLAG) -Wall -Wno-parentheses # TODO: use same warnings as C++ -AM_FCFLAGS = $(shell $(MKOCTFILE) -p FPICFLAG) -Wall -Wimplicit-interface -AM_CXXFLAGS = -std=gnu++20 $(shell $(MKOCTFILE) -p CXXPICFLAG) -Wall -Wextra -Wold-style-cast -AM_LDFLAGS = $(shell $(MKOCTFILE) -p DL_LDFLAGS) - -# See the comments in configure.ac -if LINK_OCTAVE_LIBS -AM_LDFLAGS += -L"$(shell $(MKOCTFILE) -p OCTLIBDIR)" -LIBS += $(shell $(MKOCTFILE) -p OCTAVE_LIBS) -endif - -# Unconditionally link against BLAS/LAPACK, since we tend to use them in -# many MEX files -LIBS += $(shell $(MKOCTFILE) -p BLAS_LIBS) -LIBS += $(shell $(MKOCTFILE) -p LAPACK_LIBS) - -mexdir = $(libdir)/dynare/mex/octave - -all-local: $(PROGRAMS) -## Create symlinks in mex/octave/, but only if the build is not -## out-of-tree (because of the Windows installer) - if [ "$(abs_srcdir)" = "$(abs_builddir)" ]; then \ - $(MKDIR_P) $(top_srcdir)/../../octave && \ - cd $(top_srcdir)/../../octave && \ - for p in $(PROGRAMS); do \ - $(LN_S) -f $(abs_builddir)/$$p $$p; \ - done; \ - fi - -clean-local: - rm -f *.mod # Fortran modules - if test -d $(top_srcdir)/../../octave; then \ - cd $(top_srcdir)/../../octave && rm -f $(PROGRAMS); \ - fi - -# Rules for the Fortran 2008 interface to MEX, BLAS/LAPACK and pthread functions -matlab_mat.mod: matlab_mex.o -matlab_mex.mod: matlab_mex.o - -matlab_mex.F08: $(top_srcdir)/../../sources/matlab_mex.F08 - $(LN_S) -f $< $@ - -blas.mod: blas_lapack.o -lapack.mod: blas_lapack.o - -blas_lapack.F08: $(top_srcdir)/../../sources/blas_lapack.F08 - $(LN_S) -f $< $@ - -pthread.mod: pthread.o - -pthread.F08: $(top_srcdir)/../../sources/pthread.F08 - $(LN_S) -f $< $@ diff --git a/mex/build/octave/mjdgges/Makefile.am b/mex/build/octave/mjdgges/Makefile.am deleted file mode 100644 index e57291e65..000000000 --- a/mex/build/octave/mjdgges/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -EXEEXT = .mex -include ../mex.am -include ../../mjdgges.am diff --git a/mex/build/octave/ms_sbvar/Makefile.am b/mex/build/octave/ms_sbvar/Makefile.am deleted file mode 100644 index 52adaebfb..000000000 --- a/mex/build/octave/ms_sbvar/Makefile.am +++ /dev/null @@ -1,12 +0,0 @@ -EXEEXT = .mex -include ../mex.am -include ../../ms_sbvar.am - -ms_sbvar_command_line_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MATIO) -ms_sbvar_create_init_file_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MATIO) - -ms_sbvar_command_line_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MATIO) -ms_sbvar_create_init_file_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MATIO) - -ms_sbvar_command_line_LDADD = $(LIBADD_MATIO) -ms_sbvar_create_init_file_LDADD = $(LIBADD_MATIO) diff --git a/mex/build/octave/num_procs/Makefile.am b/mex/build/octave/num_procs/Makefile.am deleted file mode 100644 index 0a1d730bc..000000000 --- a/mex/build/octave/num_procs/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -EXEEXT = .mex -include ../mex.am -include ../../num_procs.am diff --git a/mex/build/octave/perfect_foresight_problem/Makefile.am b/mex/build/octave/perfect_foresight_problem/Makefile.am deleted file mode 100644 index 65ceb979f..000000000 --- a/mex/build/octave/perfect_foresight_problem/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -EXEEXT = .mex -include ../mex.am -include ../../perfect_foresight_problem.am diff --git a/mex/build/octave/riccati_update/Makefile.am b/mex/build/octave/riccati_update/Makefile.am deleted file mode 100644 index 19ddca12b..000000000 --- a/mex/build/octave/riccati_update/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -EXEEXT = .mex -include ../mex.am -include ../../riccati_update.am diff --git a/mex/build/octave/sobol/Makefile.am b/mex/build/octave/sobol/Makefile.am deleted file mode 100644 index 32c79355f..000000000 --- a/mex/build/octave/sobol/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -EXEEXT = .mex -include ../mex.am -include ../../qmc_sequence.am diff --git a/mex/build/perfect_foresight_problem.am b/mex/build/perfect_foresight_problem.am deleted file mode 100644 index 6046a09c2..000000000 --- a/mex/build/perfect_foresight_problem.am +++ /dev/null @@ -1,15 +0,0 @@ -mex_PROGRAMS = perfect_foresight_problem - -TOPDIR = $(top_srcdir)/../../sources/perfect_foresight_problem - -nodist_perfect_foresight_problem_SOURCES = perfect_foresight_problem.cc DynamicModelCaller.cc - -perfect_foresight_problem_CPPFLAGS = $(AM_CPPFLAGS) -I$(TOPDIR) -perfect_foresight_problem_CXXFLAGS = $(AM_CXXFLAGS) -fopenmp -perfect_foresight_problem_LDADD = $(LIBADD_DLOPEN) $(OPENMP_LIBS) - -BUILT_SOURCES = $(nodist_perfect_foresight_problem_SOURCES) -CLEANFILES = $(nodist_perfect_foresight_problem_SOURCES) - -%.cc: $(TOPDIR)/%.cc - $(LN_S) -f $< $@ diff --git a/mex/build/qmc_sequence.am b/mex/build/qmc_sequence.am deleted file mode 100644 index 2e9355b2e..000000000 --- a/mex/build/qmc_sequence.am +++ /dev/null @@ -1,18 +0,0 @@ -mex_PROGRAMS = qmc_sequence - -TOPDIR = $(top_srcdir)/../../sources/sobol - -qmc_sequence_CPPFLAGS = $(AM_CPPFLAGS) -I$(TOPDIR) -qmc_sequence_CXXFLAGS = $(AM_CXXFLAGS) -fopenmp -qmc_sequence_LDADD = $(OPENMP_LIBS) $(FORTRAN_LIBS_FOR_CXXLINK) - -nodist_qmc_sequence_SOURCES = qmc_sequence.cc sobol.f08 - -BUILT_SOURCES = $(nodist_qmc_sequence_SOURCES) -CLEANFILES = $(nodist_qmc_sequence_SOURCES) - -%.cc: $(TOPDIR)/%.cc - $(LN_S) -f $< $@ - -%.f08: $(TOPDIR)/%.f08 - $(LN_S) -f $< $@ diff --git a/mex/build/riccati_update.am b/mex/build/riccati_update.am deleted file mode 100644 index 6b317b68d..000000000 --- a/mex/build/riccati_update.am +++ /dev/null @@ -1,18 +0,0 @@ -mex_PROGRAMS = riccati_update - -nodist_riccati_update_SOURCES = \ - matlab_mex.F08 \ - blas_lapack.F08 \ - mexFunction.f08 - -BUILT_SOURCES = $(nodist_riccati_update_SOURCES) -CLEANFILES = $(nodist_riccati_update_SOURCES) - -mexFunction.o: matlab_mex.mod blas.mod lapack.mod - -mexFunction.mod: mexFunction.o - -%.f08: $(top_srcdir)/../../sources/riccati_update/%.f08 - $(LN_S) -f $< $@ -%.F08: $(top_srcdir)/../../sources/riccati_update/%.F08 - $(LN_S) -f $< $@ diff --git a/mex/sources/Makefile.am b/mex/sources/Makefile.am deleted file mode 100644 index dc9ec6abd..000000000 --- a/mex/sources/Makefile.am +++ /dev/null @@ -1,36 +0,0 @@ -EXTRA_DIST = \ - dynblas.h \ - dynlapack.h \ - dynumfpack.h \ - dynmex.h \ - blas_lapack.F08 \ - defines.F08 \ - matlab_mex.F08 \ - pthread.F08 \ - mjdgges \ - kronecker \ - bytecode \ - k_order_perturbation \ - k_order_welfare \ - kalman_steady_state \ - ms-sbvar \ - sobol \ - local_state_space_iterations \ - libkordersim \ - folded_to_unfolded_dr \ - k_order_simul \ - k_order_mean \ - gensylv \ - perfect_foresight_problem \ - num_procs \ - block_trust_region \ - disclyap_fast \ - cycle_reduction \ - logarithmic_reduction \ - riccati_update - -clean-local: - rm -rf `find mex/sources -name *.o` - -dist-hook: - rm -rf `find $(distdir)/mex/sources -name *.o -or -name *~` diff --git a/mex/sources/libkorder/kord/tests/Makefile.am b/mex/sources/libkorder/kord/tests/Makefile.am deleted file mode 100644 index 14d402228..000000000 --- a/mex/sources/libkorder/kord/tests/Makefile.am +++ /dev/null @@ -1,11 +0,0 @@ -check_PROGRAMS = tests - -tests_SOURCES = tests.cc -tests_CPPFLAGS = -I../sylv/cc -I../tl/cc -I../integ/cc -I../utils/cc -I$(top_srcdir)/mex/sources -tests_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MATIO) -tests_LDADD = libkord.a ../tl/cc/libtl.a ../sylv/cc/libsylv.a ../utils/cc/libutils.a $(LAPACK_LIBS) $(BLAS_LIBS) $(LIBS) $(FLIBS) $(LIBADD_MATIO) - -check-local: - ./tests - -CLEANFILES = out.txt diff --git a/mex/sources/libkorder/sylv/tests/Makefile.am b/mex/sources/libkorder/sylv/tests/Makefile.am deleted file mode 100644 index 2378ad29e..000000000 --- a/mex/sources/libkorder/sylv/tests/Makefile.am +++ /dev/null @@ -1,10 +0,0 @@ -check_PROGRAMS = tests - -tests_SOURCES = MMMatrix.cc MMMatrix.hh tests.cc -tests_LDADD = ../cc/libsylv.a ../../utils/cc/libutils.a $(LAPACK_LIBS) $(BLAS_LIBS) $(LIBS) $(FLIBS) -tests_CPPFLAGS = -I../cc -I../../utils/cc - -EXTRA_DIST = *.mm - -check-local: - ./tests diff --git a/mex/sources/libkorder/tl/tests/Makefile.am b/mex/sources/libkorder/tl/tests/Makefile.am deleted file mode 100644 index 7f5e4cdf9..000000000 --- a/mex/sources/libkorder/tl/tests/Makefile.am +++ /dev/null @@ -1,9 +0,0 @@ -check_PROGRAMS = tests - -tests_SOURCES = factory.cc factory.hh monoms.cc monoms.hh tests.cc -tests_CPPFLAGS = -I../cc -I../../sylv/cc -I../../utils/cc -tests_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MATIO) -tests_LDADD = ../cc/libtl.a ../../sylv/cc/libsylv.a ../../utils/cc/libutils.a $(LAPACK_LIBS) $(BLAS_LIBS) $(LIBS) $(FLIBS) $(LIBADD_MATIO) - -check-local: - ./tests diff --git a/preprocessor b/preprocessor index 7b8fed192..5104759bd 160000 --- a/preprocessor +++ b/preprocessor @@ -1 +1 @@ -Subproject commit 7b8fed192d1a0410647dc40b8109177e90e31395 +Subproject commit 5104759bd57b975cfe8a503318fa918b43cb3333 diff --git a/tests/.gitignore b/tests/.gitignore deleted file mode 100644 index da76813b8..000000000 --- a/tests/.gitignore +++ /dev/null @@ -1,180 +0,0 @@ -# For checking that no file has been unduly ignored, run: -# $ git ls-files -i -c --exclude-per-directory=.gitignore -# Any file that is displayed should be removed from the ignore list -# (possibly by an exclusion rule beginning with an exclamation mark) - -*.m -*.mat -*.eps -*.bin -*.cod -*.c -*.tex -*.TeX -*.jnl -*.swp -*.dat -*.prn -*_simul -*-macroexp.mod -*.json -*.dump - -wsOct -/run_test_octave_output.txt -/run_test_matlab_output.txt - -/block_bytecode/ls2003_tmp.mod -/histval_initval_file/data.csv -/histval_initval_file/data.xls -/histval_initval_file/data.xlsx -/partial_information/PItest3aHc0PCLsimModPiYrVarobsAll_PCL* -/partial_information/PItest3aHc0PCLsimModPiYrVarobsCNR_PCL* - -!/AIM/data_ca1.m -!/AIM/fsdat.m -!/analytic_derivatives/fsdat_simul.m -!/analytic_derivatives/nBrockMirmanSYM.mat -!/block_bytecode/lola_data.mat -!/block_bytecode/run_ls2003.m -!/bvar_a_la_sims/bvar_sample.m -!/conditional_forecasts/2/fsdat_simul.m -!/cyclereduction.m -!/dates/fsdat_simul.m -!/decision_rules/example1_results_dyn_432.mat -!/decision_rules/third_order/FV_2011_policyfunctions.mat -!/decision_rules/third_order/comparison_policy_functions_dynare_mathematica.m -!/ep/exact_solution.m -!/ep/mean_preserving_spread.m -!/ep/rbcii_steadystate.m -!/estimation/fsdat_simul.m -!/estimation/method_of_moments/AnScho/AnScho_MoM_data_2.mat -!/estimation/method_of_moments/RBC/RBC_MoM_steady_helper.m -!/estimation/method_of_moments/RBC/RBC_Andreasen_Data_2.mat -!/estimation/method_of_moments/AFVRR/AFVRR_data.mat -!/estimation/method_of_moments/AFVRR/AFVRR_steady_helper.m -!/estimation/no_init_estimation_check_first_obs/fsdat_mat.m -!/estimation/no_init_estimation_check_first_obs/fsdat_mat_XFAIL.m -!/estimation/no_init_estimation_check_first_obs/fsdat_simul.m -!/estimation/system_prior_restriction/Gali_2015_PC_slope.m -!/estimation/system_prior_restriction/Gali_2015_prior_restrictions.m -!/expectations/expectation_ss_old_steadystate.m -!/external_function/+matlab/+namespace/extFunNoDerivsNamespace.m -!/external_function/+matlab/+namespace/extFunWithFirstAndSecondDerivsNamespace.m -!/external_function/extFunDeriv.m -!/external_function/extFunNoDerivs.m -!/external_function/extFunWithFirstAndSecondDerivs.m -!/filter_step_ahead/trend_cycle_decomposition_data.m -!/first_order/+matlab/+namespace/y_k.m -!/fs2000/fsdat_simul.m -!/fs2000/fsdat_simul_dseries.m -!/fs2000/fsdat_simul_missing_obs.m -!/gsa/data_ca1.m -!/gsa/data_ca1.mat -!/gsa/morris/nk_est_data.m -!/histval_initval_file/ramst_initval_file_data.m -!/histval_initval_file/my_assert.m -!/histval_initval_file_unit_tests.m -!/identification/as2007/G_QT.mat -!/initval_file/ramst_initval_file_data.m -!/kalman/likelihood/compare_kalman_routines.m -!/kalman/likelihood/simul_state_space_model.m -!/kalman/likelihood/test1.m -!/kalman/likelihood/test2.m -!/kalman/likelihood/test3.m -!/kalman_filter_smoother/compare_results_simulation/fsdat_simul_logged.m -!/kalman_filter_smoother/fsdat_simul.m -!/kalman_filter_smoother/SOE_data_file.m -!/kalman_filter_smoother/test.mat -!/kalman_filter_smoother/testsmoother.m -!/kalman_steady_state/test1.m -!/kronecker/nash_matrices.mat -!/kronecker/test_kron.m -!/utils/load_octave_packages.m -!/ls2003/data_ca1.m -!/logarithmicreduction.m -!/measurement_errors/data_ca1.m -!/measurement_errors/fs2000_corr_me_ml_mcmc/fsdat_simul.m -!/missing/simulate_data_with_missing_observations.m -!/ms-sbvar/archive-files/MHM_input.dat -!/ms-sbvar/archive-files/ftd_2s_caseall_upperchol3v.m -!/ms-sbvar/archive-files/ftd_2s_caseall_upperchol4v.m -!/ms-sbvar/archive-files/ftd_2s_caseall_upperchol6v.m -!/ms-sbvar/archive-files/ftd_2s_caseall_upperchol7v.m -!/ms-sbvar/archive-files/ftd_RSvensson_4v.m -!/ms-sbvar/archive-files/ftd_cholesky.m -!/ms-sbvar/archive-files/ftd_non_rec_5v.m -!/ms-sbvar/archive-files/ftd_simszha5v.m -!/ms-sbvar/archive-files/ftd_upperchol3v.m -!/ms-sbvar/archive-files/ftd_upperchol4v.m -!/ms-sbvar/archive-files/ftd_upperchol5v.m -!/ms-sbvar/archive-files/ftd_upperchol6v.m -!/ms-sbvar/archive-files/ftd_upperchol7v.m -!/ms-sbvar/archive-files/specification_2v.dat -!/ms-sbvar/archive-files/specification_2v2c.dat -!/ms-sbvar/msdata.m -!/nonlinearsolvers.m -!/observation_trends_and_prefiltering/generate_trend_stationary_AR1.m -!/occbin/filter/dataobsfile.mat -!/occbin/filter/NKM_mh_mode_saved.mat -!/optimal_policy/Ramsey/find_c.m -!/optimizers/optimizer_function_wrapper.m -!/parallel/data_ca1.m -!/parallel/init.m -!/particle/benchmark.m -!/particle/data_risky_perturb2.m -!/particle/dsgebase2data.mat -!/particle/extreme.m -!/particle/risky.m -!/pi2004/idata.m -!/pi2004/ych.dat -!/pruning/Andreasen_et_al_2018_Dynare44Pruning_v2.mat -!/utils/printMakeCheckMatlabErrMsg.m -!/utils/printMakeCheckOctaveErrMsg.m -!/prior_posterior_function/posterior_function_demo.m -!/recursive/data_ca1.m -!/reporting/AnnualTable.m -!/reporting/CommResidTablePage.m -!/reporting/CountryGraphPage.m -!/reporting/CountryTablePage.m -!/reporting/ResidTablePage.m -!/reporting/runDynareReport.m -!/riccatiupdate.m -!/run_all_unit_tests.m -!/run_block_byte_tests_matlab.m -!/run_block_byte_tests_octave.m -!/run_kronecker_tests.m -!/run_m_script.m -!/run_o_script.m -!/run_reporting_test_matlab.m -!/run_reporting_test_octave.m -!/run_mod_file.m -!/run_test_matlab.m -!/run_test_octave.m -!/shock_decomposition/example1_calib_shock_decomp_data.mat -!/shock_decomposition/fsdat_simul.m -!/smoother2histval/fsdat_simul.m -!/solver-test-functions/brown.m -!/solver-test-functions/broydenbanded.m -!/solver-test-functions/broydentridiagonal.m -!/solver-test-functions/chebyquad.m -!/solver-test-functions/discreteboundaryvalue.m -!/solver-test-functions/discreteintegralequation.m -!/solver-test-functions/helicalvalley.m -!/solver-test-functions/powell1.m -!/solver-test-functions/powell2.m -!/solver-test-functions/rosenbrock.m -!/solver-test-functions/trigonometric.m -!/solver-test-functions/variablydimensioned.m -!/solver-test-functions/watson.m -!/solver-test-functions/wood.m -!/steady_state/walsh1_old_ss_steadystate.m -!/steady_state/fs2000_ssfile_aux.m -!/test_aggregate_routine_1_2.m -!/test_aggregate_routine_1_2_3.m -!/utils/fataltest.m - -/pac/var-6/example1/model/pac-expectations/* -/pac/var-5/example1/model/pac-expectations/* -/pac/trend-component-14/example1/model/pac-expectations/* -!/ecb/aggregate/test_aggregate_routine.m diff --git a/tests/Makefile.am b/tests/Makefile.am deleted file mode 100644 index d46c13017..000000000 --- a/tests/Makefile.am +++ /dev/null @@ -1,1683 +0,0 @@ -MODFILES = \ - first_order/walsh.mod \ - occbin/model_irrcap_twoconstraints/dynrbc.mod \ - occbin/model_irrcap_twoconstraints/dynrbc_0_std_shocks.mod \ - occbin/model_borrcon/borrcon.mod \ - occbin/model_borrcon/borrcon_0_std_shocks.mod \ - occbin/filter/NKM.mod \ - occbin/filter/NKM_calib_smoother.mod \ - occbin/filter/NKM_0_std_shocks.mod \ - optimizers/fs2000_6.mod \ - moments/example1_hp_test.mod \ - moments/fs2000_post_moments.mod \ - moments/example1_order2_pruning.mod \ - lmmcp/rbcii.mod \ - lmmcp/purely_backward.mod \ - lmmcp/purely_forward.mod \ - lmmcp/MCP_ramsey.mod \ - lmmcp/SMOPEC.mod \ - ep/rbc_mc.mod \ - estimation/TaRB/fs2000_tarb.mod \ - observation_trends_and_prefiltering/MCMC/Trend_loglin_no_prefilt_first_obs_MC.mod \ - observation_trends_and_prefiltering/MCMC/Trend_loglinear_no_prefilter_MC.mod \ - observation_trends_and_prefiltering/MCMC/Trend_no_prefilter_first_obs_MC.mod \ - observation_trends_and_prefiltering/MCMC/Trend_no_prefilter_MC.mod \ - observation_trends_and_prefiltering/MCMC/Trend_loglin_prefilt_first_obs_MC.mod \ - observation_trends_and_prefiltering/MCMC/Trend_prefilter_MC.mod \ - observation_trends_and_prefiltering/MCMC/Trend_prefilter_first_obs_MC.mod \ - dates/dseries_interact.mod \ - dates/fs2000.mod \ - estimation/slice/fs2000_slice.mod \ - optimizers/fs2000_9.mod \ - optimizers/fs2000_10.mod \ - analytic_derivatives/fs2000_analytic_derivation.mod \ - analytic_derivatives/BrockMirman_PertParamsDerivs.mod \ - analytic_derivatives/burnside_3_order_PertParamsDerivs.mod \ - pruning/AnSchorfheide_pruned_state_space.mod \ - pruning/AS_pruned_state_space_red_shock.mod \ - pruning/fs2000_pruning.mod \ - measurement_errors/fs2000_corr_me_ml_mcmc/fs2000_corr_ME.mod \ - TeX/fs2000_corr_ME.mod \ - estimation/MH_recover/fs2000_recover_tarb.mod \ - estimation/fs2000.mod \ - gsa/ls2003a.mod \ - optimizers/fs2000_8.mod \ - optimizers/fs2000_8_with_optim.mod \ - estimation/fs2000_MCMC_jumping_covariance.mod \ - ms-sbvar/test_ms_variances_repeated_runs.mod \ - fs2000/fs2000.mod \ - ls2003/ls2003_hessian_zero.mod \ - ep/rbc.mod \ - exogenous-observed-variables/preprocessor.mod \ - estimation/fs2000_with_weibull_prior.mod \ - estimation/fs2000_initialize_from_calib.mod \ - estimation/fs2000_estimated_params_init.mod \ - estimation/fs2000_estimated_params_remove.mod \ - estimation/fs2000_calibrated_covariance.mod \ - estimation/fs2000_model_comparison.mod \ - estimation/fs2000_fast.mod \ - estimation/fs2000_init_from_previous.mod \ - estimation/ls2003_endog_prior_restrict_estimation.mod \ - estimation/independent_mh/fs2000_independent_mh.mod \ - estimation/MH_recover/fs2000_recover.mod \ - estimation/MH_recover/fs2000_recover_2.mod \ - estimation/MH_recover/fs2000_recover_3.mod \ - estimation/heteroskedastic_shocks/fs2000_het.mod \ - estimation/heteroskedastic_shocks/fs2000_het_corr.mod \ - estimation/heteroskedastic_shocks/fs2000_het_sample_restriction.mod \ - estimation/t_proposal/fs2000_student.mod \ - estimation/tune_mh_jscale/fs2000.mod \ - estimation/method_of_moments/AnScho/AnScho_matched_moments.mod \ - estimation/method_of_moments/AnScho/AnScho_GMM_estimParams0.mod \ - estimation/method_of_moments/AnScho/AnScho_GMM_estimParams1.mod \ - estimation/method_of_moments/AnScho/AnScho_GMM_estimParams2.mod \ - estimation/method_of_moments/AnScho/AnScho_SMM_estimParams0.mod \ - estimation/method_of_moments/AnScho/AnScho_SMM_estimParams1.mod \ - estimation/method_of_moments/AnScho/AnScho_SMM_estimParams2.mod \ - estimation/method_of_moments/RBC/RBC_MoM_Andreasen.mod \ - estimation/method_of_moments/RBC/RBC_MoM_SMM_ME.mod \ - estimation/method_of_moments/RBC/RBC_MoM_prefilter.mod \ - estimation/method_of_moments/RBC/RBC_MoM_optimizer.mod \ - estimation/method_of_moments/RBC/RBC_MoM_GMM_gradient_optim.mod \ - estimation/method_of_moments/AFVRR/AFVRR_M0.mod \ - estimation/method_of_moments/AFVRR/AFVRR_MFB.mod \ - estimation/method_of_moments/AFVRR/AFVRR_MFB_RRA.mod \ - estimation/conditional-likelihood/1/fs2000_estimation_exact.mod \ - estimation/conditional-likelihood/1/fs2000_estimation_conditional.mod \ - estimation/system_prior_restriction/Gali_2015.mod \ - estimation/no_init_estimation_check_first_obs/fs2000_init_check.mod \ - estimation/univariate/nls/staticmodel.mod \ - estimation/univariate/nls/dynamicmodel1.mod \ - estimation/univariate/nls/dynamicmodel2.mod \ - model_info/NKM_3_back.mod \ - model_info/NKM_3_forward.mod \ - moments/example1_var_decomp.mod \ - moments/example1_bp_test.mod \ - moments/test_AR1_spectral_density.mod \ - moments/example1_one_sided_hp_test.mod \ - gsa/ls2003.mod \ - gsa/cod_ML_morris/cod_ML_morris.mod \ - gsa/morris/nk_est.mod \ - on-the-fly/ex1.mod \ - on-the-fly/ex2.mod \ - on-the-fly/ex3.mod \ - on-the-fly/ex4.mod \ - on-the-fly/ex5.mod \ - on-the-fly/ex6.mod \ - equation_tags/example1_with_tags.mod \ - equation_tags/ramst_static_tag.mod \ - equation_tags/ramst_static_tag_block.mod \ - stochastic_simulations/example1.mod \ - stochastic_simulations/example1_irf_shocks.mod \ - stochastic_simulations/example1long.mod \ - stochastic_simulations/example2long.mod \ - stochastic_simulations/example2long_use_dll.mod \ - stochastic_simulations/example2_simul_replic.mod \ - stochastic_simulations/histval_sto.mod \ - stochastic_simulations/histval_predetermined.mod \ - macro_processor/test_ifndef.mod \ - macro_processor/example1_macro.mod \ - irfs/example1_unit_std.mod \ - optimal_policy/OSR/osr_example.mod \ - optimal_policy/OSR/osr_example_objective_correctness.mod \ - optimal_policy/OSR/osr_objective_correctness_anal_deriv.mod \ - optimal_policy/OSR/osr_example_obj_corr_non_stat_vars.mod \ - optimal_policy/OSR/osr_example_param_bounds.mod \ - optimal_policy/OSR/osr_obj_corr_algo_1.mod \ - optimal_policy/OSR/osr_obj_corr_algo_3.mod \ - optimal_policy/OSR/osr_obj_corr_algo_4.mod \ - optimal_policy/OSR/osr_obj_corr_algo_7.mod \ - optimal_policy/OSR/osr_obj_corr_algo_8.mod \ - optimal_policy/OSR/osr_obj_corr_algo_9.mod \ - optimal_policy/ramsey_.mod \ - optimal_policy/nk_ramsey.mod \ - optimal_policy/nk_ramsey_model.mod \ - optimal_policy/nk_ramsey_det.mod \ - optimal_policy/nk_ramsey_expectation.mod \ - optimal_policy/nk_ramsey_expectation_a.mod \ - optimal_policy/mult_elimination_test.mod \ - optimal_policy/neo_growth.mod \ - optimal_policy/neo_growth_ramsey.mod \ - optimal_policy/neo_growth_k_order.mod \ - optimal_policy/neo_growth_ramsey_k_order.mod \ - optimal_policy/Ramsey/ramsey_ex_initval.mod \ - optimal_policy/Ramsey/ramsey_ex.mod \ - optimal_policy/Ramsey/ramsey_ex_initval_AR2.mod \ - optimal_policy/Ramsey/ramsey_ex_aux.mod \ - optimal_policy/Ramsey/ramsey_histval.mod \ - optimal_policy/Ramsey/Gali_commitment.mod \ - optimal_policy/RamseyConstraints/test1.mod \ - optimal_policy/Ramsey/Ramsey_Example_estimation.mod \ - discretionary_policy/dennis_1.mod \ - discretionary_policy/dennis_1_estim.mod \ - discretionary_policy/Gali_discretion.mod \ - discretionary_policy/Gali_2015_chapter_3.mod \ - discretionary_policy/Gali_2015_chapter_3_nonlinear.mod \ - histval_initval_file/ramst_initval_file.mod \ - histval_initval_file/ramst_initval_file_with_dseries.mod \ - histval_initval_file/ramst_data_generate.mod \ - histval_initval_file/ramst_datafile.mod \ - histval_initval_file/sim_exo_lead_lag.mod \ - histval_initval_file/sim_exo_lead_lag_initvalf.mod \ - stat_functions/ramst_normcdf_and_friends_mfile.mod \ - stat_functions/ramst_normcdf_and_friends_use_dll.mod \ - stat_functions/ramst_normcdf_and_friends_bytecode.mod \ - stat_functions/example1_abs_sign.mod \ - preprocessor_checks/comments.mod \ - preprocessor_checks/example1_mlv.mod \ - preprocessor_checks/ramst_model_edit.mod \ - auxiliary_variables/test1.mod \ - expectations/expectation.mod \ - expectations/expectation_ss.mod \ - expectations/expectation_ss_old.mod \ - expectations/expectation_nested.mod \ - steady_state/walsh1_initval.mod \ - steady_state/walsh1_old_ss.mod \ - steady_state/walsh1_ssm.mod \ - steady_state/walsh1_ssm_block.mod \ - steady_state/multi_leads.mod \ - steady_state/example1_trust_region.mod \ - steady_state/example1_block_trust_region.mod \ - steady_state/Gali_2015_chapter_6_4.mod \ - steady_state/ramst_solve_algo_0.mod \ - steady_state/fs2000_ssfile.mod \ - steady_state_operator/standard.mod \ - steady_state_operator/use_dll.mod \ - steady_state_operator/block.mod \ - steady_state_operator/bytecode_test.mod \ - block_bytecode/ireland.mod \ - block_bytecode/lola_solve_one_boundary.mod \ - block_bytecode/lola_solve_one_boundary_mfs1.mod \ - block_bytecode/lola_solve_one_boundary_mfs2.mod \ - block_bytecode/lola_solve_one_boundary_mfs3.mod \ - k_order_perturbation/fs2000k2a.mod \ - k_order_perturbation/fs2000k2_use_dll.mod \ - k_order_perturbation/fs2000k_1_use_dll.mod \ - k_order_perturbation/fs2000k3_use_dll.mod \ - k_order_perturbation/fs2000k2_m.mod \ - k_order_perturbation/fs2000k_1_m.mod \ - k_order_perturbation/fs2000k3_m.mod \ - k_order_perturbation/fs2000k3_p.mod \ - k_order_perturbation/burnside_k_order.mod \ - k_order_perturbation/fs2000_k_order_simul.mod \ - partial_information/PItest3aHc0PCLsimModPiYrVarobsAll.mod \ - partial_information/PItest3aHc0PCLsimModPiYrVarobsCNR.mod \ - arima/mod1.mod \ - arima/mod1a.mod \ - arima/mod1b.mod \ - arima/mod1c.mod \ - arima/mod2.mod \ - arima/mod2a.mod \ - arima/mod2b.mod \ - arima/mod2c.mod \ - data/mod1a.mod \ - fs2000/fs2000a.mod \ - fs2000/fs2000c.mod \ - fs2000/fs2000_calib.mod \ - fs2000/fs2000_calib_dseries.mod \ - fs2000/fs2000_missing_data.mod \ - fs2000/fs2000_sd.mod \ - fs2000/fs2000_dseries_a.mod \ - fs2000/fs2000_dseries_b.mod \ - steady_state/homotopy/homotopy1_test.mod \ - steady_state/homotopy/homotopy2_test.mod \ - steady_state/homotopy/homotopy3_test.mod \ - bvar_a_la_sims/bvar_standalone.mod \ - bvar_a_la_sims/bvar_and_dsge.mod \ - AIM/fs2000x10L9_L.mod \ - AIM/fs2000x10L9_L_AIM.mod \ - AIM/fs2000x10_L9_L.mod \ - AIM/fs2000x10_L9_L_AIM.mod \ - AIM/fs2000_b1L1L.mod \ - AIM/fs2000_b1L1L_AIM.mod \ - AIM/ls2003_2L0L.mod \ - AIM/ls2003_2L0L_AIM.mod \ - AIM/ls2003_2L2L.mod \ - AIM/ls2003_2L2L_AIM.mod \ - conditional_variance_decomposition/example1.mod \ - conditional_variance_decomposition/example3.mod \ - dsge-var/simul_hybrid.mod \ - dsge-var/dsgevar_forward_calibrated_lambda.mod \ - dsge-var/dsgevar_forward_estimated_lambda.mod \ - external_function/benchmark.mod \ - external_function/first_deriv_given.mod \ - external_function/first_deriv_given_dll.mod \ - external_function/first_and_2nd_deriv_given.mod \ - external_function/first_and_2nd_deriv_given_namespace.mod \ - external_function/first_and_2nd_deriv_given_dll.mod \ - external_function/first_and_2nd_deriv_given_dll_namespace.mod \ - external_function/no_deriv_given.mod \ - external_function/no_deriv_given_dll.mod \ - external_function/extfun_in_mlv.mod \ - minimal_state_space_system/as2007_minimal.mod \ - minimal_state_space_system/sw_minimal.mod \ - identification/kim/kim2.mod \ - identification/as2007/as2007.mod \ - identification/as2007/as2007_kronflags.mod \ - identification/as2007/as2007_QT.mod \ - identification/as2007/as2007_QT_equal_autocorr.mod \ - identification/as2007/as2007_order_1_2_3.mod \ - identification/as2007/as2007_order3_no_stoch_simul.mod \ - identification/BrockMirman/BrockMirman.mod \ - identification/cgg/cgg_criteria_differ.mod \ - identification/ident_unit_root/ident_unit_root.mod \ - identification/rbc_ident/rbc_ident_std_as_structural_par.mod \ - identification/rbc_ident/rbc_ident_varexo_only.mod \ - identification/correlated_errors/fs2000_corr.mod \ - identification/forward_looking/forward_looking_empty_ghx.mod \ - identification/forward_looking/forward_looking_varobs_x.mod \ - model_diagnostics/example2_block_model_diag.mod \ - perfect_foresight/initval_endval_blocks/initval_endval_test.mod \ - perfect_foresight/initval_endval_blocks/histval_initval_test.mod \ - conditional_forecasts/1/fs2000_cal.mod \ - conditional_forecasts/2/fs2000_est.mod \ - conditional_forecasts/3/fs2000_conditional_forecast_initval.mod \ - conditional_forecasts/4/fs2000_conditional_forecast_histval.mod \ - conditional_forecasts/5/fs2000_cal.mod \ - conditional_forecasts/6/fs2000_cal.mod \ - recursive/ls2003.mod \ - recursive/ls2003_bayesian.mod \ - recursive/ls2003_bayesian_xls.mod \ - recursive/ls2003_bayesian_csv.mod \ - ms-sbvar/test_exclusions.mod \ - ms-sbvar/test_exclusions_nc.mod \ - ms-sbvar/test_lower_cholesky.mod \ - ms-sbvar/test_lower_cholesky_a.mod \ - ms-sbvar/test_lower_cholesky_nc.mod \ - ms-sbvar/test_upper_cholesky.mod \ - ms-sbvar/test_upper_cholesky_nc.mod \ - ms-sbvar/test_ms_variances.mod \ - ms-dsge/test_ms_dsge.mod \ - kalman/lyapunov/fs2000_lyap.mod \ - kalman/lik_init/fs2000_ns_lik_init_2.mod \ - kalman/lik_init/fs2000_ns_lik_init_3.mod \ - kalman/lik_init/fs2000_ns_lik_init_5.mod \ - kalman/lik_init/fs2000_lik_init_1.mod \ - kalman/lik_init/fs2000_lik_init_2.mod \ - kalman/lik_init/fs2000_lik_init_3.mod \ - kalman/lik_init/fs2000_lik_init_4.mod \ - kalman/lik_init/fs2000_lik_init_5.mod \ - kalman/block/fs2000.mod \ - kalman/block/fs2000_missing_data.mod \ - kalman_initial_state/fs2000_smoother_only_initial_state.mod \ - kalman_initial_state/fs2000_ns_smoother_only_initial_state.mod \ - kalman_initial_state/fs2000_kalman_initial.mod \ - kalman_initial_state/fs2000_kalman_initial_2_lag.mod \ - kalman_filter_smoother/gen_data.mod \ - kalman_filter_smoother/algo1.mod \ - kalman_filter_smoother/algo2.mod \ - kalman_filter_smoother/algo3.mod \ - kalman_filter_smoother/algo4.mod \ - kalman_filter_smoother/algo4a.mod \ - kalman_filter_smoother/algo4b.mod \ - kalman_filter_smoother/algoH1.mod \ - kalman_filter_smoother/algoH2.mod \ - kalman_filter_smoother/algoH3.mod \ - kalman_filter_smoother/fs2000.mod \ - kalman_filter_smoother/fs2000_1.mod \ - kalman_filter_smoother/fs2000_2.mod \ - kalman_filter_smoother/fs2000a.mod \ - kalman_filter_smoother/fs2000_smoother_only.mod \ - kalman_filter_smoother/fs2000_smoother_only_ns.mod \ - kalman_filter_smoother/fs2000_smoother_redux.mod \ - kalman_filter_smoother/test_compute_Pinf_Pstar_data.mod \ - kalman_filter_smoother/test_compute_Pinf_Pstar.mod \ - kalman_filter_smoother/SOE.mod \ - kalman_filter_smoother/check_variable_dimensions/fs2000.mod \ - kalman_filter_smoother/check_variable_dimensions/fs2000_ML.mod \ - kalman/likelihood_from_dynare/fs2000_corr_ME.mod \ - kalman/likelihood_from_dynare/fs2000_corr_ME_missing.mod \ - kalman/likelihood_from_dynare/fs2000_uncorr_ME.mod \ - kalman/likelihood_from_dynare/fs2000_uncorr_ME_missing.mod \ - kalman/likelihood_from_dynare/fs2000ns_corr_ME.mod \ - kalman/likelihood_from_dynare/fs2000ns_corr_ME_missing.mod \ - kalman/likelihood_from_dynare/fs2000ns_uncorr_ME.mod \ - kalman/likelihood_from_dynare/fs2000ns_uncorr_ME_missing.mod \ - second_order/burnside_1.mod \ - kalman_filter_smoother/compare_results_simulation/fs2000_ML.mod \ - kalman_filter_smoother/compare_results_simulation/fs2000_ML_loglinear.mod \ - kalman_filter_smoother/compare_results_simulation/fs2000.mod \ - kalman_filter_smoother/compare_results_simulation/fs2000_loglinear.mod \ - second_order/burnside_1.mod \ - second_order/ds1.mod \ - second_order/ds2.mod \ - ep/rbc2.mod \ - ep/rbcii.mod \ - ep/linearmodel0.mod \ - ep/linearmodel1.mod \ - ep/rbc_bytecode.mod \ - ep/rbcii_MCP.mod \ - stochastic_simulations/example1_noprint.mod \ - stochastic_simulations/example_seeds.mod \ - stochastic-backward-models/solow_cd.mod \ - stochastic-backward-models/solow_ces.mod \ - stochastic-backward-models/solow_cd_with_steadystate.mod \ - deterministic_simulations/ramst.mod \ - deterministic_simulations/ramst_a.mod \ - deterministic_simulations/ramst_mshocks.mod \ - deterministic_simulations/ramst_mshocks_vec.mod \ - deterministic_simulations/predetermined_variables.mod \ - deterministic_simulations/histval_det.mod \ - deterministic_simulations/ramst_vec.mod \ - deterministic_simulations/Solow_no_varexo.mod \ - deterministic_simulations/simul_ZLB_purely_forward.mod \ - deterministic_simulations/simul_ZLB_purely_forward_no_solution.mod \ - deterministic_simulations/Irreversible_investment.mod \ - deterministic_simulations/linear_state_space_arma.mod \ - deterministic_simulations/purely_forward/ar1.mod \ - deterministic_simulations/purely_forward/nk.mod \ - deterministic_simulations/purely_backward/ar1.mod \ - deterministic_simulations/purely_static/toto.mod \ - deterministic_simulations/rbc_det1.mod \ - deterministic_simulations/rbc_det2.mod \ - deterministic_simulations/rbc_det3.mod \ - deterministic_simulations/rbc_det4.mod \ - deterministic_simulations/rbc_det5.mod \ - deterministic_simulations/rbc_det6.mod \ - deterministic_simulations/homotopy.mod \ - deterministic_simulations/homotopy_histval.mod \ - deterministic_simulations/homotopy_endval_steady_linearization.mod \ - deterministic_simulations/homotopy_marginal_linearization.mod \ - deterministic_simulations/rbc_det_exo_lag_2a.mod \ - deterministic_simulations/rbc_det_exo_lag_2b.mod \ - deterministic_simulations/rbc_det_exo_lag_2c.mod \ - deterministic_simulations/multiple_lead_lags/sim_base.mod \ - deterministic_simulations/multiple_lead_lags/sim_exo_lead_lag_aux_vars.mod \ - deterministic_simulations/multiple_lead_lags/sim_exo_lead_lag.mod \ - deterministic_simulations/multiple_lead_lags/sim_endo_lead_lag_aux_vars.mod \ - deterministic_simulations/multiple_lead_lags/sim_endo_lead_lag.mod \ - deterministic_simulations/multiple_lead_lags/sim_lead_lag_aux_vars.mod \ - deterministic_simulations/multiple_lead_lags/sim_lead_lag.mod \ - deterministic_simulations/ramst_block_mfs1.mod \ - deterministic_simulations/linear_approximation/sw.mod \ - deterministic_simulations/multiple_lead_lags/AR2.mod \ - deterministic_simulations/multiple_lead_lags/AR2_forward.mod \ - deterministic_simulations/multiple_lead_lags/ramst_augmented_histval.mod \ - deterministic_simulations/rbc_det.mod \ - deterministic_simulations/rbc_det_stack_solve_algo_7.mod \ - deterministic_simulations/rbc_det_stack_solve_algo_7_exo_lag.mod \ - deterministic_simulations/rbc_det_stack_solve_algo_7_exo_lead.mod \ - deterministic_simulations/pfwee.mod \ - deterministic_simulations/pfwee_constant_sim_length.mod \ - deterministic_simulations/pfwee_learnt_in.mod \ - deterministic_simulations/pfwee_multiple_shocks.mod \ - deterministic_simulations/pfwee_homotopy.mod \ - lmmcp/rbc.mod \ - lmmcp/sw_lmmcp.mod \ - lmmcp/sw_newton.mod \ - trend_var/fs2000_nonstationary.mod \ - trend_var/fs2000_log_nonstationary.mod \ - decision_rules/third_order/FV2011.mod \ - decision_rules/example1.mod \ - decision_rules/example1_use_dll.mod \ - decision_rules/ar_qz_test.mod \ - shock_decomposition/example1_calib_shock_decomp.mod \ - shock_decomposition/fs2000_est.mod \ - shock_decomposition/fs2000_est_varlist.mod \ - shock_decomposition/fs2000_cal_groups.mod \ - shock_decomposition/ls2003_plot.mod \ - shock_decomposition/shock_decomp_backward.mod \ - stochastic_purely_forward/stochastic_purely_forward.mod \ - stochastic_purely_forward/stochastic_purely_forward_with_static.mod \ - forecast/example1_varexo_det.mod \ - forecast/Hansen_exo_det_forecast.mod \ - forecast/linear_exo_det_forecast.mod \ - forecast/ls2003_rolling_window_forecast.mod \ - gradient/fs2000_numgrad_13.mod \ - gradient/fs2000_numgrad_15.mod \ - gradient/fs2000_numgrad_2.mod \ - gradient/fs2000_numgrad_3.mod \ - gradient/fs2000_numgrad_5.mod \ - filter_step_ahead/fs2000_filter_step_ahead_bayesian.mod \ - filter_step_ahead/fs2000_filter_step_ahead_ML.mod \ - filter_step_ahead/trend_cycle_decomposition.mod \ - loglinear/example4_exp.mod \ - loglinear/example4_loglinear.mod \ - loglinear/example4_loglinear_lagged_exogenous.mod \ - loglinear/example4_loglinear_lagged_exogenous_a.mod \ - loglinear/example4_exp_histval.mod \ - loglinear/example4_loglinear_histval.mod \ - smoother2histval/fs2000_simul.mod \ - smoother2histval/fs2000_smooth.mod \ - smoother2histval/fs2000_smooth_stoch_simul.mod \ - smoother2histval/fs2000_smooth_ML.mod \ - optimizers/fs2000_1.mod \ - optimizers/fs2000_2.mod \ - optimizers/fs2000_3.mod \ - optimizers/fs2000_4.mod \ - optimizers/fs2000_4_with_optim.mod \ - optimizers/fs2000_5.mod \ - optimizers/fs2000_7.mod \ - optimizers/fs2000_101.mod \ - optimizers/fs2000_102.mod \ - optimizers/fs2000_w.mod \ - epilogue/example1.mod \ - differentiate_forward_vars/RBC_differentiate_forward.mod \ - partitioning/partitions.mod \ - prior_posterior_function/fs2000_prior_posterior_function.mod \ - observation_trends_and_prefiltering/MCMC/Trend_loglinear_prefilter_MC.mod \ - observation_trends_and_prefiltering/ML/Trend_loglinear_no_prefilter.mod \ - observation_trends_and_prefiltering/ML/Trend_loglinear_no_prefilter_first_obs.mod \ - observation_trends_and_prefiltering/ML/Trend_loglinear_prefilter.mod \ - observation_trends_and_prefiltering/ML/Trend_loglinear_prefilter_first_obs.mod \ - observation_trends_and_prefiltering/ML/Trend_no_prefilter.mod \ - observation_trends_and_prefiltering/ML/Trend_no_prefilter_first_obs.mod \ - observation_trends_and_prefiltering/ML/Trend_prefilter.mod \ - observation_trends_and_prefiltering/ML/Trend_prefilter_first_obs.mod \ - observation_trends_and_prefiltering/calib_smoother/Tr_no_prefilter_calib_smoother.mod \ - observation_trends_and_prefiltering/calib_smoother/Tr_no_prefilt_first_obs_cal_smooth.mod \ - observation_trends_and_prefiltering/calib_smoother/Tr_prefilter_calib_smoother.mod \ - observation_trends_and_prefiltering/calib_smoother/Tr_prefilt_first_obs_cal_smooth.mod \ - observation_trends_and_prefiltering/calib_smoother/Tr_no_prefilter_loglin_calib_smoother.mod \ - observation_trends_and_prefiltering/calib_smoother/Tr_no_prefil_f_obs_loglin_cal_smoother.mod \ - observation_trends_and_prefiltering/calib_smoother/Tr_prefilter_loglin_calib_smoother.mod \ - observation_trends_and_prefiltering/calib_smoother/Tr_prefil_f_obs_loglin_cal_smoother.mod \ - observation_trends_and_prefiltering/ML/Trend_no_prefilter_selected_var.mod \ - bgp/solow-1/solow.mod \ - bgp/nk-1/nk.mod \ - bgp/ramsey-1/ramsey.mod \ - model-inversion/bk-1/solow_ces.mod \ - model-inversion/bk-2/solow_ces.mod \ - model-inversion/bk-3a/varmodel.mod \ - model-inversion/bk-3a-nlsolve/varmodel.mod \ - model-inversion/bk-3b/varmodel.mod \ - model-inversion/bk-3b-nlsolve/varmodel.mod \ - model-inversion/bk-4/varmodel.mod \ - model-inversion/bk-4-nlsolve/varmodel.mod \ - model-inversion/bk-5/varmodel.mod \ - model-inversion/bk-5-nlsolve/varmodel.mod \ - model-inversion/bk-6/varmodel.mod \ - model-inversion/bk-7/varmodel.mod \ - model-inversion/bk-8/varmodel.mod \ - model-inversion/bk-9/msm1.mod \ - model-inversion/bk-9/msm2.mod \ - model-inversion/bk-diff-1/varmodel.mod \ - model-inversion/bk-diff-2/varmodel.mod \ - model-inversion/bk-diff-3/varmodel.mod \ - model-inversion/bk-diff-4/varmodel.mod \ - model-inversion/bk-diff-5/varmodel.mod \ - model-inversion/nk-1/simulate.mod \ - model-inversion/nk-1/invert.mod \ - model-inversion/nk-2/simulate.mod \ - model-inversion/nk-2/invert.mod \ - model-inversion/nk-2/z_check_inversion.mod \ - dynare-command-options/ramst.mod \ - log_transform/example1.mod \ - log_transform/ramst.mod \ - log_transform/fs2000_nonstationary.mod \ - log_transform/nk_ramsey.mod \ - solve_algo_12_14/simul_backward_reference.mod \ - solve_algo_12_14/simul_backward_12.mod \ - solve_algo_12_14/simul_backward_14.mod \ - solve_algo_12_14/purely_backward_reference.mod \ - solve_algo_12_14/purely_backward_12.mod \ - solve_algo_12_14/purely_backward_14.mod \ - solve_algo_12_14/purely_static_reference.mod \ - solve_algo_12_14/purely_static_12.mod \ - solve_algo_12_14/purely_static_14.mod \ - solve_algo_12_14/purely_forward_reference.mod \ - solve_algo_12_14/purely_forward_12.mod \ - solve_algo_12_14/purely_forward_14.mod \ - deprecated/ramsey_ex.mod \ - deprecated/ramst.mod - -ECB_MODFILES = \ - var-expectations/1/example1.mod \ - var-expectations/1-with-time-shift-a/example1.mod \ - var-expectations/2/example1.mod \ - var-expectations/2-with-time-shift/example1.mod \ - var-expectations/3/example1.mod \ - var-expectations/3-with-time-shift/example1.mod \ - var-expectations/4/example1.mod \ - var-expectations/4-with-time-shift/example1.mod \ - var-expectations/5/example1.mod \ - var-expectations/5-with-time-shift/example1.mod \ - var-expectations/6/example1.mod \ - var-expectations/6/substitution.mod \ - var-expectations/6-with-time-shift/example1.mod \ - var-expectations/6-with-time-shift/substitution.mod \ - var-expectations/7/example1.mod \ - var-expectations/7/substitution.mod \ - var-expectations/8/example1.mod \ - var-expectations/8/substitution.mod \ - var-expectations/9/example1.mod \ - var-expectations/10/example1.mod \ - var-expectations/11/example1.mod \ - var-expectations/12/example1.mod \ - trend-component-and-var-models/vm1.mod \ - trend-component-and-var-models/vm2.mod \ - trend-component-and-var-models/vm3.mod \ - trend-component-and-var-models/vm4.mod \ - trend-component-and-var-models/vm5.mod \ - trend-component-and-var-models/tcm1.mod \ - trend-component-and-var-models/tcm2.mod \ - trend-component-and-var-models/tcm3.mod \ - trend-component-and-var-models/tcm4.mod \ - trend-component-and-var-models/tcm5.mod \ - trend-component-and-var-models/tcm6.mod \ - trend-component-and-var-models/tcm7.mod \ - trend-component-and-var-models/tcm8.mod \ - trend-component-and-var-models/tcm9.mod \ - trend-component-and-var-models/tcm10.mod \ - trend-component-and-var-models/tcm11.mod \ - trend-component-and-var-models/tcm12.mod \ - trend-component-and-var-models/legacy/vm1.mod \ - trend-component-and-var-models/legacy/vm2.mod \ - trend-component-and-var-models/legacy/vm3.mod \ - trend-component-and-var-models/legacy/tcm1.mod \ - trend-component-and-var-models/legacy/tcm2.mod \ - trend-component-and-var-models/legacy/tcm3.mod \ - trend-component-and-var-models/legacy/tcm4.mod \ - trend-component-and-var-models/legacy/tcm5.mod \ - pac/var-1/example1.mod \ - pac/var-2/example1.mod \ - pac/var-3/example1.mod \ - pac/var-4/example1.mod \ - pac/var-5/example1.mod \ - pac/var-5/substitution.mod \ - pac/var-6/example1.mod \ - pac/var-6/substitution.mod \ - pac/var-7/example1.mod \ - pac/var-7/substitution.mod \ - pac/var-8/example1.mod \ - pac/var-8/substitution.mod \ - pac/var-8e/example1.mod \ - pac/var-9/example1.mod \ - pac/var-9/substitution.mod \ - pac/var-9e/example1.mod \ - pac/var-10e/example1.mod \ - pac/var-10e/example2.mod \ - pac/var-11e/example1.mod \ - pac/var-12/example1.mod \ - pac/var-12/example2.mod \ - pac/var-12/example3.mod \ - pac/var-12/example4.mod \ - pac/var-12/example5.mod \ - pac/var-12/example11.mod \ - pac/var-12/example12.mod \ - pac/trend-component-1/example1.mod \ - pac/trend-component-2/example1.mod \ - pac/trend-component-3/example1.mod \ - pac/trend-component-4/example1.mod \ - pac/trend-component-5/example1.mod \ - pac/trend-component-6/example1.mod \ - pac/trend-component-7/example1.mod \ - pac/trend-component-9/example1.mod \ - pac/trend-component-10/example1.mod \ - pac/trend-component-11/example1.mod \ - pac/trend-component-12/example1.mod \ - pac/trend-component-13a/example1.mod \ - pac/trend-component-13b/example1.mod \ - pac/trend-component-14/example1.mod \ - pac/trend-component-14/substitution.mod \ - pac/trend-component-15/example1.mod \ - pac/trend-component-16/example1.mod \ - pac/trend-component-17/example1.mod \ - pac/trend-component-18/example1.mod \ - pac/trend-component-19/example1.mod \ - pac/trend-component-19/example2.mod \ - pac/trend-component-19/example3.mod \ - pac/trend-component-19-growth-lin-comb/example1.mod \ - pac/trend-component-1-mce/example_det.mod \ - pac/trend-component-1-mce/example_sto.mod \ - pac/trend-component-2-mce/example_det.mod \ - pac/trend-component-2-mce/example_sto.mod \ - pac/trend-component-20-1/example1.mod \ - pac/trend-component-20-2/example1.mod \ - pac/trend-component-20-3/example1.mod \ - pac/trend-component-20-4/example1.mod \ - pac/trend-component-21/example1.mod \ - pac/trend-component-22/example1.mod \ - pac/trend-component-23/example1.mod \ - pac/trend-component-24/example1.mod \ - pac/trend-component-25/example1.mod \ - pac/trend-component-26/example1.mod \ - pac/trend-component-27/example1.mod \ - pac/trend-component-28/example1.mod \ - pac/trend-component-28/example2.mod \ - pac/trend-component-28/example3.mod \ - pac/trend-component-28/example4.mod \ - pac/trend-component-28/example5.mod \ - pac/trend-component-28/example6.mod \ - pac/trend-component-29/example1.mod \ - pac/trend-component-29/example2.mod \ - pac/trend-component-30/example1.mod \ - write/example1.mod \ - ecb/backward-models/irf/solow_1.mod \ - ecb/backward-models/irf/solow_2.mod \ - ecb/cherrypick/test1.mod \ - ecb/cherrypick/test2.mod \ - ecb/contribution-plots/contrib1.mod \ - ecb/contribution-plots/contrib2.mod - -OLS_MODFILES = \ - estimation/univariate/bayesian.mod \ - estimation/univariate/bayesian_param_names.mod \ - ecb/SURGibbs/fulton_fish.mod \ - estimation/univariate/ols/ols_wc_1.mod \ - estimation/univariate/ols/ols_wc_2.mod \ - estimation/univariate/ols/ols_wc_3.mod \ - estimation/univariate/ols/ols_date_range.mod \ - estimation/univariate/ols/ols_param_names.mod \ - estimation/univariate/ols/ols_base.mod \ - ecb/SUR/sur_noniterative.mod \ - ecb/SUR/sur_params_noniterative.mod \ - ecb/SUR/panel_var_diff_NB_simulation_test.mod \ - ecb/SUR/panel_var_diff_NB_simulation_zero_eq.mod \ - ecb/pooled_ols/panel_var_diff_NB_simulation_test.mod \ - ecb/pooled_ols/test_param_names.mod \ - ecb/pooled_fgls/panel_var_diff_NB_simulation_test.mod \ - ecb/pooled_fgls/test_param_names.mod - -ECB_MODFILES += $(OLS_MODFILES) - -MODFILES += $(ECB_MODFILES) - -PARTICLEFILES = \ - particle/dsge_base2.mod \ - particle/first_spec.mod \ - particle/first_spec_MCMC.mod \ - particle/local_state_space_iteration_k_test.mod \ - particle/local_state_space_iteration_3_test.mod - - -XFAIL_MODFILES = preprocessor_checks/ramst_all_values_required_xfail.mod \ - preprocessor_checks/example1_undeclared_vars_xfail.mod \ - estimation/estim_param_in_shock_value_xfail.mod \ - optimal_policy/Ramsey/ramsey_ex_wrong_ss_file_xfail.mod \ - estimation/fs2000_mixed_ML_xfail.mod \ - estimation/fs2000_stochastic_singularity_xfail.mod \ - estimation/heteroskedastic_shocks/fs2000_het_XFAIL.mod \ - estimation/heteroskedastic_shocks/fs2000_het_XFAIL2.mod \ - identification/ident_unit_root/ident_unit_root_xfail.mod \ - identification/LindeTrabandt/LindeTrabandt2019_xfail.mod \ - steady_state/Linear_steady_state_xfail.mod \ - optimal_policy/Ramsey/ramsey_histval_xfail.mod \ - occbin/model_irrcap_twoconstraints/dynrbc_token_xfail.mod \ - particle/first_spec_xfail_0.mod \ - particle/first_spec_xfail_1.mod \ - kalman_initial_state/fs2000_kalman_initial_xfail.mod \ - preprocessor_checks/example1_extra_exo_xfail.mod \ - estimation/tune_mh_jscale/fs2000_1_xfail.mod \ - estimation/tune_mh_jscale/fs2000_2_xfail.mod \ - estimation/no_init_estimation_check_first_obs/fs2000_init_check_XFAIL.mod \ - estimation/no_init_estimation_check_first_obs/fs2000_init_check_XFAIL2.mod \ - var-expectations/1-with-time-shift-b/example1.mod \ - estimation/univariate/nls/staticmodelx.mod - -MFILES = histval_initval_file/ramst_initval_file_data.m - -# Dependencies - -optimal_policy/neo_growth_ramsey.m.trs: optimal_policy/neo_growth.m.trs -optimal_policy/neo_growth_ramsey.o.trs: optimal_policy/neo_growth.o.trs - -optimal_policy/neo_growth_ramsey_foresight.m.trs: optimal_policy/neo_growth_foresight.m.trs -optimal_policy/neo_growth_ramsey_foresight.o.trs: optimal_policy/neo_growth_foresight.o.trs - -optimal_policy/neo_growth_ramsey_k_order.m.trs: optimal_policy/neo_growth_k_order.m.trs -optimal_policy/neo_growth_ramsey_k_order.o.trs: optimal_policy/neo_growth_k_order.o.trs - -occbin/model_irrcap_twoconstraints/dynrbc_0_std_shocks.m.trs: occbin/model_irrcap_twoconstraints/dynrbc.m.trs -occbin/model_irrcap_twoconstraints/dynrbc_0_std_shocks.o.trs: occbin/model_irrcap_twoconstraints/dynrbc.o.trs - -occbin/model_borrcon/borrcon_0_std_shocks.m.trs: occbin/model_borrcon/borrcon.m.trs -occbin/model_borrcon/borrcon_0_std_shocks.o.trs: occbin/model_borrcon/borrcon.o.trs - -decision_rules/example1_use_dll.m.trs: decision_rules/example1.m.trs -decision_rules/example1_use_dll.o.trs: decision_rules/example1.o.trs - -stochastic_simulations/example2long_use_dll.m.trs: stochastic_simulations/example1long.m.trs -stochastic_simulations/example2long_use_dll.o.trs: stochastic_simulations/example1long.o.trs - -stochastic_simulations/example2long.m.trs: stochastic_simulations/example1long.m.trs -stochastic_simulations/example2long.o.trs: stochastic_simulations/example1long.o.trs - -estimation/MH_recover/fs2000_recover_tarb.m.trs: estimation/MH_recover/fs2000_recover.m.trs -estimation/MH_recover/fs2000_recover_tarb.o.trs: estimation/MH_recover/fs2000_recover.o.trs - -k_order_perturbation/fs2000k_1_m.m.trs: k_order_perturbation/fs2000k2_m.m.trs -k_order_perturbation/fs2000k2_m.m.trs k_order_perturbation/fs2000k3_m.m.trs k_order_perturbation/fs2000k2_use_dll.m.trs k_order_perturbation/fs2000k3_use_dll.m.trs: k_order_perturbation/fs2000k2a.m.trs -k_order_perturbation/fs2000k_1_use_dll.m.trs: k_order_perturbation/fs2000k2_use_dll.m.trs - -k_order_perturbation/fs2000k_1_m.o.trs: k_order_perturbation/fs2000k2_m.o.trs -k_order_perturbation/fs2000k2_m.o.trs k_order_perturbation/fs2000k3_m.o.trs k_order_perturbation/fs2000k2_use_dll.o.trs k_order_perturbation/fs2000k3_use_dll.o.trs: k_order_perturbation/fs2000k2a.o.trs -k_order_perturbation/fs2000k_1_use_dll.o.trs: k_order_perturbation/fs2000k2_use_dll.o.trs - -kalman_filter_smoother/algo1.m.trs kalman_filter_smoother/algo3.m.trs kalman_filter_smoother/algo4a.m.trs kalman_filter_smoother/algo4b.m.trs kalman_filter_smoother/algoH1.m.trs kalman_filter_smoother/algoH3.m.trs kalman_filter_smoother/fs2000.m.trs kalman_filter_smoother/fs2000_1.m.trs kalman_filter_smoother/fs2000_2.m.trs kalman_filter_smoother/fs2000a.m.trs: kalman_filter_smoother/gen_data.m.trs -kalman_filter_smoother/algo1.o.trs kalman_filter_smoother/algo3.o.trs kalman_filter_smoother/algo4a.o.trs kalman_filter_smoother/algo4b.o.trs kalman_filter_smoother/algoH1.o.trs kalman_filter_smoother/algoH3.o.trs kalman_filter_smoother/fs2000.o.trs kalman_filter_smoother/fs2000_1.o.trs kalman_filter_smoother/fs2000_2.o.trs kalman_filter_smoother/fs2000a.o.trs: kalman_filter_smoother/gen_data.o.trs - -kalman_filter_smoother/algo2.m.trs: kalman_filter_smoother/algo1.m.trs -kalman_filter_smoother/algo2.o.trs: kalman_filter_smoother/algo1.o.trs - -kalman_filter_smoother/algoH2.m.trs: kalman_filter_smoother/algoH1.m.trs -kalman_filter_smoother/algoH2.o.trs: kalman_filter_smoother/algoH1.o.trs - -kalman_filter_smoother/algo4.m.trs: kalman_filter_smoother/algo3.m.trs -kalman_filter_smoother/algo4.o.trs: kalman_filter_smoother/algo3.o.trs - -kalman_filter_smoother/test_compute_Pinf_Pstar.m.trs: kalman_filter_smoother/test_compute_Pinf_Pstar_data.m.trs -kalman_filter_smoother/test_compute_Pinf_Pstar.o.trs: kalman_filter_smoother/test_compute_Pinf_Pstar_data.o.trs - -optimal_policy/Ramsey/ramsey_ex.m.trs: optimal_policy/Ramsey/ramsey_ex_initval.m.trs -optimal_policy/Ramsey/ramsey_ex.o.trs: optimal_policy/Ramsey/ramsey_ex_initval.o.trs - -optimal_policy/nk_ramsey_expectation_a.m.trs: optimal_policy/nk_ramsey_expectation.m.trs -optimal_policy/nk_ramsey_expectation_a.o.trs: optimal_policy/nk_ramsey_expectation.o.trs - -deprecated/ramsey_ex.m.trs: optimal_policy/Ramsey/ramsey_ex_initval.m.trs -deprecated/ramsey_ex.o.trs: optimal_policy/Ramsey/ramsey_ex_initval.o.trs - -second_order/ds2.m.trs: second_order/ds1.m.trs -second_order/ds2.o.trs: second_order/ds1.o.trs - -AIM/fs2000_b1L1L_AIM.m.trs: AIM/fs2000_b1L1L.m.trs -AIM/fs2000x10L9_L_AIM.m.trs: AIM/fs2000x10L9_L.m.trs -AIM/fs2000x10_L9_L_AIM.m.trs: AIM/fs2000x10_L9_L.m.trs -AIM/ls2003_2L0L_AIM.m.trs: AIM/ls2003_2L0L.m.trs -AIM/ls2003_2L2L_AIM.m.trs: AIM/ls2003_2L2L.m.trs -AIM/fs2000_b1L1L_AIM.o.trs: AIM/fs2000_b1L1L.o.trs -AIM/fs2000x10L9_L_AIM.o.trs: AIM/fs2000x10L9_L.o.trs -AIM/fs2000x10_L9_L_AIM.o.trs: AIM/fs2000x10_L9_L.o.trs -AIM/ls2003_2L0L_AIM.o.trs: AIM/ls2003_2L0L.o.trs -AIM/ls2003_2L2L_AIM.o.trs: AIM/ls2003_2L2L.o.trs - -estimation/fs2000_model_comparison.m.trs: estimation/fs2000.m.trs estimation/fs2000_initialize_from_calib.m.trs estimation/fs2000_calibrated_covariance.m.trs -estimation/fs2000_model_comparison.o.trs: estimation/fs2000.o.trs estimation/fs2000_initialize_from_calib.o.trs estimation/fs2000_calibrated_covariance.o.trs -estimation/fs2000_init_from_previous.m.trs: estimation/fs2000.m.trs -estimation/fs2000_init_from_previous.o.trs: estimation/fs2000.o.trs - -optimizers/fs2000_102.m.trs: estimation/fs2000.m.trs -optimizers/fs2000_102.o.trs: estimation/fs2000.o.trs - -arima/mod1a.m.trs: arima/mod1.m.trs -arima/mod1b.m.trs: arima/mod1.m.trs -arima/mod1c.m.trs: arima/mod1.m.trs -arima/mod1a.o.trs: arima/mod1.o.trs -arima/mod1b.o.trs: arima/mod1.o.trs -arima/mod1c.o.trs: arima/mod1.o.trs -arima/mod2a.m.trs: arima/mod2.m.trs -arima/mod2b.m.trs: arima/mod2.m.trs -arima/mod2c.m.trs: arima/mod2.m.trs -arima/mod2a.o.trs: arima/mod2.o.trs -arima/mod2b.o.trs: arima/mod2.o.trs -arima/mod2c.o.trs: arima/mod2.o.trs - -dsge-var/dsgevar_forward_calibrated_lambda.m.trs: dsge-var/simul_hybrid.m.trs -dsge-var/dsgevar_forward_estimated_lambda.m.trs: dsge-var/simul_hybrid.m.trs -dsge-var/dsgevar_forward_calibrated_lambda.o.trs: dsge-var/simul_hybrid.o.trs -dsge-var/dsgevar_forward_estimated_lambda.o.trs: dsge-var/simul_hybrid.o.trs - -external_function/first_deriv_given.m.trs: external_function/benchmark.m.trs -external_function/first_deriv_given.o.trs: external_function/benchmark.o.trs -external_function/first_deriv_given_dll.m.trs: external_function/benchmark.m.trs -external_function/first_deriv_given_dll.o.trs: external_function/benchmark.o.trs -external_function/first_and_2nd_deriv_given.m.trs: external_function/benchmark.m.trs -external_function/first_and_2nd_deriv_given.o.trs: external_function/benchmark.o.trs -external_function/first_and_2nd_deriv_given_dll.m.trs: external_function/benchmark.m.trs -external_function/first_and_2nd_deriv_given_dll.o.trs: external_function/benchmark.o.trs -external_function/first_and_2nd_deriv_given_namespace.m.trs: external_function/benchmark.m.trs -external_function/first_and_2nd_deriv_given_namespace.o.trs: external_function/benchmark.o.trs -external_function/first_and_2nd_deriv_given_dll_namespace.m.trs: external_function/benchmark.m.trs -external_function/first_and_2nd_deriv_given_dll_namespace.o.trs: external_function/benchmark.o.trs -external_function/no_deriv_given.m.trs: external_function/benchmark.m.trs -external_function/no_deriv_given.o.trs: external_function/benchmark.o.trs -external_function/no_deriv_given_dll.m.trs: external_function/benchmark.m.trs -external_function/no_deriv_given_dll.o.trs: external_function/benchmark.o.trs -external_function/extfun_in_mlv.m.trs: external_function/benchmark.m.trs -external_function/extfun_in_mlv.o.trs: external_function/benchmark.o.trs - -smoother2histval/fs2000_simul.m.trs: smoother2histval/fs2000_smooth.m.trs -smoother2histval/fs2000_simul.o.trs: smoother2histval/fs2000_smooth.o.trs - -deterministic_simulations/rbc_det_exo_lag_2b.m.trs: deterministic_simulations/rbc_det_exo_lag_2a.m.trs -deterministic_simulations/rbc_det_exo_lag_2c.m.trs: deterministic_simulations/rbc_det_exo_lag_2a.m.trs -deterministic_simulations/rbc_det_exo_lag_2b.o.trs: deterministic_simulations/rbc_det_exo_lag_2a.o.trs -deterministic_simulations/rbc_det_exo_lag_2c.o.trs: deterministic_simulations/rbc_det_exo_lag_2a.o.trs -deterministic_simulations/rbc_det_stack_solve_algo_7.m.trs: deterministic_simulations/rbc_det.m.trs -deterministic_simulations/rbc_det_stack_solve_algo_7.o.trs: deterministic_simulations/rbc_det.o.trs -deterministic_simulations/rbc_det_stack_solve_algo_7_exo_lead.m.trs: deterministic_simulations/rbc_det.m.trs -deterministic_simulations/rbc_det_stack_solve_algo_7_exo_lead.o.trs: deterministic_simulations/rbc_det.o.trs -deterministic_simulations/rbc_det_stack_solve_algo_7_exo_lag.m.trs: deterministic_simulations/rbc_det.m.trs -deterministic_simulations/rbc_det_stack_solve_algo_7_exo_lag.o.trs: deterministic_simulations/rbc_det.o.trs - -block_bytecode/lola_solve_one_boundary_mfs1.m.trs: block_bytecode/lola_solve_one_boundary.m.trs -block_bytecode/lola_solve_one_boundary_mfs1.o.trs: block_bytecode/lola_solve_one_boundary.o.trs -block_bytecode/lola_solve_one_boundary_mfs2.m.trs: block_bytecode/lola_solve_one_boundary.m.trs -block_bytecode/lola_solve_one_boundary_mfs2.o.trs: block_bytecode/lola_solve_one_boundary.o.trs -block_bytecode/lola_solve_one_boundary_mfs3.m.trs: block_bytecode/lola_solve_one_boundary.m.trs -block_bytecode/lola_solve_one_boundary_mfs3.o.trs: block_bytecode/lola_solve_one_boundary.o.trs - -histval_initval_file/ramst_initval_file.m.trs: histval_initval_file/ramst_initval_file_data.m.tls histval_initval_file/ramst_data_generate.m.trs -histval_initval_file/ramst_initval_file.o.trs: histval_initval_file/ramst_initval_file_data.o.tls histval_initval_file/ramst_data_generate.o.trs -histval_initval_file/ramst_datafile.m.trs: histval_initval_file/ramst_initval_file_data.m.tls -histval_initval_file/ramst_datafile.o.trs: histval_initval_file/ramst_initval_file_data.o.tls -histval_initval_file/sim_exo_lead_lag_initvalf.m.trs: histval_initval_file/sim_exo_lead_lag.m.trs -histval_initval_file/sim_exo_lead_lag_initvalf.o.trs: histval_initval_file/sim_exo_lead_lag.o.trs -histval_initval_file_unit_tests.m.trs: histval_initval_file/ramst_data_generate.m.trs -histval_initval_file_unit_tests.o.trs: histval_initval_file/ramst_data_generate.o.trs - - -identification/rbc_ident/rbc_ident_varexo_only.m.trs: identification/rbc_ident/rbc_ident_std_as_structural_par.m.trs -identification/rbc_ident/rbc_ident_varexo_only.o.trs: identification/rbc_ident/rbc_ident_std_as_structural_par.o.trs - -deterministic_simulations/multiple_lead_lags/sim_exo_lead_lag_aux_vars.m.trs: deterministic_simulations/multiple_lead_lags/sim_base.m.trs -deterministic_simulations/multiple_lead_lags/sim_exo_lead_lag_aux_vars.o.trs: deterministic_simulations/multiple_lead_lags/sim_base.o.trs - -deterministic_simulations/multiple_lead_lags/sim_exo_lead_lag.m.trs: deterministic_simulations/multiple_lead_lags/sim_base.m.trs deterministic_simulations/multiple_lead_lags/sim_exo_lead_lag_aux_vars.m.trs -deterministic_simulations/multiple_lead_lags/sim_exo_lead_lag.o.trs: deterministic_simulations/multiple_lead_lags/sim_base.o.trs deterministic_simulations/multiple_lead_lags/sim_exo_lead_lag_aux_vars.o.trs - -deterministic_simulations/multiple_lead_lags/sim_endo_lead_lag_aux_vars.m.trs: deterministic_simulations/multiple_lead_lags/sim_base.m.trs -deterministic_simulations/multiple_lead_lags/sim_endo_lead_lag_aux_vars.o.trs: deterministic_simulations/multiple_lead_lags/sim_base.o.trs - -deterministic_simulations/multiple_lead_lags/sim_endo_lead_lag.m.trs: deterministic_simulations/multiple_lead_lags/sim_base.m.trs deterministic_simulations/multiple_lead_lags/sim_endo_lead_lag_aux_vars.m.trs -deterministic_simulations/multiple_lead_lags/sim_endo_lead_lag.o.trs: deterministic_simulations/multiple_lead_lags/sim_base.o.trs deterministic_simulations/multiple_lead_lags/sim_endo_lead_lag_aux_vars.o.trs - -deterministic_simulations/multiple_lead_lags/sim_lead_lag_aux_vars.m.trs: deterministic_simulations/multiple_lead_lags/sim_base.m.trs -deterministic_simulations/multiple_lead_lags/sim_lead_lag_aux_vars.o.trs: deterministic_simulations/multiple_lead_lags/sim_base.o.trs - -deterministic_simulations/multiple_lead_lags/sim_lead_lag.m.trs: deterministic_simulations/multiple_lead_lags/sim_base.m.trs deterministic_simulations/multiple_lead_lags/sim_lead_lag_aux_vars.m.trs -deterministic_simulations/multiple_lead_lags/sim_lead_lag.o.trs: deterministic_simulations/multiple_lead_lags/sim_base.o.trs deterministic_simulations/multiple_lead_lags/sim_lead_lag_aux_vars.o.trs - -deterministic_simulations/multiple_lead_lags/ramst_augmented_histval.m.trs: deterministic_simulations/ramst.m.trs -deterministic_simulations/multiple_lead_lags/ramst_augmented_histval.o.trs: deterministic_simulations/ramst.o.trs - -loglinear/example4_loglinear.m.trs: loglinear/example4_exp.m.trs -loglinear/example4_loglinear.o.trs: loglinear/example4_exp.o.trs -loglinear/example4_loglinear_lagged_exogenous_a.m.trs: loglinear/example4_loglinear_lagged_exogenous.m.trs -loglinear/example4_loglinear_lagged_exogenous_a.o.trs: loglinear/example4_loglinear_lagged_exogenous.o.trs - -loglinear/example4_loglinear_histval.m.trs: loglinear/example4_exp_histval.m.trs -loglinear/example4_loglinear_histval.o.trs: loglinear/example4_exp_histval.o.trs - -observation_trends_and_prefiltering/ML/Trend_loglinear_no_prefilter_first_obs.m.trs: observation_trends_and_prefiltering/ML/Trend_loglinear_no_prefilter.m.trs -observation_trends_and_prefiltering/ML/Trend_loglinear_no_prefilter_first_obs.o.trs: observation_trends_and_prefiltering/ML/Trend_loglinear_no_prefilter.o.trs -observation_trends_and_prefiltering/ML/Trend_loglinear_no_prefilter.m.trs: observation_trends_and_prefiltering/ML/Trend_no_prefilter.m.trs -observation_trends_and_prefiltering/ML/Trend_loglinear_no_prefilter.o.trs: observation_trends_and_prefiltering/ML/Trend_no_prefilter.o.trs - -observation_trends_and_prefiltering/MCMC/Trend_no_prefilter_first_obs_MC.m.trs: observation_trends_and_prefiltering/MCMC/Trend_loglinear_no_prefilter_MC.m.trs -observation_trends_and_prefiltering/MCMC/Trend_no_prefilter_first_obs_MC.o.trs: observation_trends_and_prefiltering/MCMC/Trend_loglinear_no_prefilter_MC.o.trs -observation_trends_and_prefiltering/MCMC/Trend_no_prefilter_MC.m.trs: observation_trends_and_prefiltering/MCMC/Trend_no_prefilter_first_obs_MC.m.trs -observation_trends_and_prefiltering/MCMC/Trend_no_prefilter_MC.o.trs: observation_trends_and_prefiltering/MCMC/Trend_no_prefilter_first_obs_MC.o.trs -observation_trends_and_prefiltering/MCMC/Trend_loglinear_prefilter_MC.m.trs: observation_trends_and_prefiltering/MCMC/Trend_no_prefilter_MC.m.trs -observation_trends_and_prefiltering/MCMC/Trend_loglinear_prefilter_MC.o.trs: observation_trends_and_prefiltering/MCMC/Trend_no_prefilter_MC.o.trs -observation_trends_and_prefiltering/MCMC/Trend_loglin_prefilt_first_obs_MC.m.trs: observation_trends_and_prefiltering/MCMC/Trend_loglinear_prefilter_MC.m.trs -observation_trends_and_prefiltering/MCMC/Trend_loglin_prefilt_first_obs_MC.o.trs: observation_trends_and_prefiltering/MCMC/Trend_loglinear_prefilter_MC.o.trs -observation_trends_and_prefiltering/MCMC/Trend_prefilter_first_obs_MC.m.trs: observation_trends_and_prefiltering/MCMC/Trend_loglin_prefilt_first_obs_MC.m.trs -observation_trends_and_prefiltering/MCMC/Trend_prefilter_first_obs_MC.o.trs: observation_trends_and_prefiltering/MCMC/Trend_loglin_prefilt_first_obs_MC.o.trs -observation_trends_and_prefiltering/MCMC/Trend_prefilter_MC.m.trs: observation_trends_and_prefiltering/MCMC/Trend_prefilter_first_obs_MC.m.trs -observation_trends_and_prefiltering/MCMC/Trend_prefilter_MC.o.trs: observation_trends_and_prefiltering/MCMC/Trend_prefilter_first_obs_MC.o.trs -observation_trends_and_prefiltering/MCMC/Trend_loglin_no_prefilt_first_obs_MC.m.trs: observation_trends_and_prefiltering/MCMC/Trend_prefilter_MC.m.trs -observation_trends_and_prefiltering/MCMC/Trend_loglin_no_prefilt_first_obs_MC.o.trs: observation_trends_and_prefiltering/MCMC/Trend_prefilter_MC.o.trs - -observation_trends_and_prefiltering/calib_smoother/Tr_no_prefil_f_obs_loglin_cal_smoother.m.trs: observation_trends_and_prefiltering/calib_smoother/Tr_no_prefilter_calib_smoother.m.trs -observation_trends_and_prefiltering/calib_smoother/Tr_no_prefil_f_obs_loglin_cal_smoother.o.trs: observation_trends_and_prefiltering/calib_smoother/Tr_no_prefilter_calib_smoother.o.trs -observation_trends_and_prefiltering/calib_smoother/Tr_no_prefilter_loglin_calib_smoother.m.trs: observation_trends_and_prefiltering/calib_smoother/Tr_no_prefil_f_obs_loglin_cal_smoother.m.trs -observation_trends_and_prefiltering/calib_smoother/Tr_no_prefilter_loglin_calib_smoother.o.trs: observation_trends_and_prefiltering/calib_smoother/Tr_no_prefil_f_obs_loglin_cal_smoother.o.trs -observation_trends_and_prefiltering/calib_smoother/Tr_no_prefilt_first_obs_cal_smooth.m.trs: observation_trends_and_prefiltering/calib_smoother/Tr_no_prefilter_loglin_calib_smoother.m.trs -observation_trends_and_prefiltering/calib_smoother/Tr_no_prefilt_first_obs_cal_smooth.o.trs: observation_trends_and_prefiltering/calib_smoother/Tr_no_prefilter_loglin_calib_smoother.o.trs -observation_trends_and_prefiltering/calib_smoother/Tr_prefil_f_obs_loglin_cal_smoother.m.trs: observation_trends_and_prefiltering/calib_smoother/Tr_no_prefilt_first_obs_cal_smooth.m.trs -observation_trends_and_prefiltering/calib_smoother/Tr_prefil_f_obs_loglin_cal_smoother.o.trs: observation_trends_and_prefiltering/calib_smoother/Tr_no_prefilt_first_obs_cal_smooth.o.trs -observation_trends_and_prefiltering/calib_smoother/Tr_prefilter_calib_smoother.m.trs: observation_trends_and_prefiltering/calib_smoother/Tr_prefil_f_obs_loglin_cal_smoother.m.trs -observation_trends_and_prefiltering/calib_smoother/Tr_prefilter_calib_smoother.o.trs: observation_trends_and_prefiltering/calib_smoother/Tr_prefil_f_obs_loglin_cal_smoother.o.trs -observation_trends_and_prefiltering/calib_smoother/Tr_prefilter_loglin_calib_smoother.m.trs: observation_trends_and_prefiltering/calib_smoother/Tr_prefilter_calib_smoother.m.trs -observation_trends_and_prefiltering/calib_smoother/Tr_prefilter_loglin_calib_smoother.o.trs: observation_trends_and_prefiltering/calib_smoother/Tr_prefilter_calib_smoother.o.trs -observation_trends_and_prefiltering/calib_smoother/Tr_prefilt_first_obs_cal_smooth.m.trs: observation_trends_and_prefiltering/calib_smoother/Tr_prefilter_loglin_calib_smoother.m.trs -observation_trends_and_prefiltering/calib_smoother/Tr_prefilt_first_obs_cal_smooth.o.trs: observation_trends_and_prefiltering/calib_smoother/Tr_prefilter_loglin_calib_smoother.o.trs - -kalman/likelihood_from_dynare/fs2000_corr_ME.m.trs: kalman/likelihood_from_dynare/fs2000_uncorr_ME.m.trs -kalman/likelihood_from_dynare/fs2000_corr_ME.o.trs: kalman/likelihood_from_dynare/fs2000_uncorr_ME.o.trs -kalman/likelihood_from_dynare/fs2000_uncorr_ME_missing.m.trs: kalman/likelihood_from_dynare/fs2000_uncorr_ME.m.trs -kalman/likelihood_from_dynare/fs2000_uncorr_ME_missing.o.trs: kalman/likelihood_from_dynare/fs2000_uncorr_ME.o.trs -kalman/likelihood_from_dynare/fs2000_corr_ME_missing.m.trs: kalman/likelihood_from_dynare/fs2000_uncorr_ME.m.trs -kalman/likelihood_from_dynare/fs2000_corr_ME_missing.o.trs: kalman/likelihood_from_dynare/fs2000_uncorr_ME.o.trs - -kalman/likelihood_from_dynare/fs2000ns_corr_ME.m.trs: kalman/likelihood_from_dynare/fs2000ns_uncorr_ME.m.trs -kalman/likelihood_from_dynare/fs2000ns_corr_ME.o.trs: kalman/likelihood_from_dynare/fs2000ns_uncorr_ME.o.trs -kalman/likelihood_from_dynare/fs2000ns_uncorr_ME_missing.m.trs: kalman/likelihood_from_dynare/fs2000ns_uncorr_ME.m.trs -kalman/likelihood_from_dynare/fs2000ns_uncorr_ME_missing.o.trs: kalman/likelihood_from_dynare/fs2000ns_uncorr_ME.o.trs -kalman/likelihood_from_dynare/fs2000ns_corr_ME_missing.m.trs: kalman/likelihood_from_dynare/fs2000ns_uncorr_ME.m.trs -kalman/likelihood_from_dynare/fs2000ns_corr_ME_missing.o.trs: kalman/likelihood_from_dynare/fs2000ns_uncorr_ME.o.trs - -var-expectations/6/substitution.m.trs: var-expectations/6/example1.m.trs -var-expectations/6/substitution.o.trs: var-expectations/6/example1.o.trs -var-expectations/6-with-time-shift/substitution.m.trs: var-expectations/6-with-time-shift/example1.m.trs -var-expectations/6-with-time-shift/substitution.o.trs: var-expectations/6-with-time-shift/example1.o.trs -var-expectations/7/substitution.m.trs: var-expectations/7/example1.m.trs -var-expectations/7/substitution.o.trs: var-expectations/7/example1.o.trs -var-expectations/8/substitution.m.trs: var-expectations/8/example1.m.trs -var-expectations/8/substitution.o.trs: var-expectations/8/example1.o.trs - -pac/var-5/substitution.m.trs: pac/var-5/example1.m.trs -pac/var-5/substitution.o.trs: pac/var-5/example1.o.trs -pac/var-6/substitution.m.trs: pac/var-6/example1.m.trs -pac/var-6/substitution.o.trs: pac/var-6/example1.o.trs -pac/var-7/substitution.m.trs: pac/var-7/example1.m.trs -pac/var-7/substitution.o.trs: pac/var-7/example1.o.trs -pac/var-8/substitution.m.trs: pac/var-8/example1.m.trs -pac/var-8/substitution.o.trs: pac/var-8/example1.o.trs -pac/var-9/substitution.m.trs: pac/var-9/example1.m.trs -pac/var-9/substitution.o.trs: pac/var-9/example1.o.trs -pac/var-10e/example2.m.trs: pac/var-10e/example1.m.trs -pac/var-10e/example2.o.trs: pac/var-10e/example1.o.trs -pac/trend-component-14/substitution.m.trs: pac/trend-component-14/example1.m.trs -pac/trend-component-14/substitution.o.trs: pac/trend-component-14/example1.o.trs - -lmmcp/sw_newton.m.trs: lmmcp/sw_lmmcp.m.trs -lmmcp/sw_newton.o.trs: lmmcp/sw_lmmcp.o.trs - -var-expectations/4/example1.m.trs: var-expectations/3/example1.m.trs -var-expectations/4/example1.o.trs: var-expectations/3/example1.o.trs - -var-expectations/4-with-time-shift/example1.m.trs: var-expectations/3-with-time-shift/example1.m.trs -var-expectations/4-with-time-shift/example1.o.trs: var-expectations/3-with-time-shift/example1.o.trs - -trend-component-and-var-models/tcm7.m.trs: trend-component-and-var-models/tcm6.m.trs -trend-component-and-var-models/tcm7.o.trs: trend-component-and-var-models/tcm6.o.trs -trend-component-and-var-models/tcm8.m.trs: trend-component-and-var-models/tcm6.m.trs -trend-component-and-var-models/tcm8.o.trs: trend-component-and-var-models/tcm6.o.trs - -discretionary_policy/dennis_1_estim.m.trs: discretionary_policy/dennis_1.m.trs -discretionary_policy/dennis_1_estim.o.trs: discretionary_policy/dennis_1.o.trs -discretionary_policy/Gali_2015_chapter_3_nonlinear.m.trs: discretionary_policy/Gali_2015_chapter_3.m.trs -discretionary_policy/Gali_2015_chapter_3_nonlinear.o.trs: discretionary_policy/Gali_2015_chapter_3.o.trs - -particle/local_state_space_iteration_3_test.m.trs: particle/first_spec.m.trs -particle/local_state_space_iteration_3_test.o.trs: particle/first_spec.o.trs - -particle/local_state_space_iteration_k_test.m.trs: particle/first_spec.m.trs -particle/local_state_space_iteration_k_test.o.trs: particle/first_spec.o.trs - -particle/local_it_k_test_parallel.m.trs: particle/first_spec.m.trs -particle/local_it_k_test_parallel.o.trs: particle/first_spec.o.trs - -pruning/AS_pruned_state_space_red_shock.m.trs: pruning/AnSchorfheide_pruned_state_space.m.trs -pruning/AS_pruned_state_space_red_shock.o.trs: pruning/AnSchorfheide_pruned_state_space.o.trs - -preprocessor_checks/ramst_model_edit.m.trs: deterministic_simulations/ramst.m.trs -preprocessor_checks/ramst_model_edit.o.trs: deterministic_simulations/ramst.o.trs - -log_transform/ramst.m.trs: deterministic_simulations/ramst.m.trs -log_transform/ramst.o.trs: deterministic_simulations/ramst.o.trs - -model-inversion/nk-1/invert.m.trs: model-inversion/nk-1/simulate.m.trs -model-inversion/nk-1/invert.o.trs: model-inversion/nk-1/simulate.o.trs - -model-inversion/nk-2/invert.m.trs: model-inversion/nk-2/simulate.m.trs -model-inversion/nk-2/invert.o.trs: model-inversion/nk-2/simulate.o.trs - -model-inversion/nk-2/z_check_inversion.m.trs: model-inversion/nk-2/invert.m.trs -model-inversion/nk-2/z_check_inversion.o.trs: model-inversion/nk-2/invert.o.trs - -ep/rbcii_MCP.m.trs: ep/rbcii.m.trs -ep/rbcii_MCP.o.trs: ep/rbcii.o.trs - -solve_algo_12_14/simul_backward_12.m.trs: solve_algo_12_14/simul_backward_reference.m.trs -solve_algo_12_14/simul_backward_12.o.trs: solve_algo_12_14/simul_backward_reference.o.trs -solve_algo_12_14/simul_backward_14.m.trs: solve_algo_12_14/simul_backward_reference.m.trs -solve_algo_12_14/simul_backward_14.o.trs: solve_algo_12_14/simul_backward_reference.o.trs - -solve_algo_12_14/purely_backward_12.m.trs: solve_algo_12_14/purely_backward_reference.m.trs -solve_algo_12_14/purely_backward_12.o.trs: solve_algo_12_14/purely_backward_reference.o.trs -solve_algo_12_14/purely_backward_14.m.trs: solve_algo_12_14/purely_backward_reference.m.trs -solve_algo_12_14/purely_backward_14.o.trs: solve_algo_12_14/purely_backward_reference.o.trs - -solve_algo_12_14/purely_static_12.m.trs: solve_algo_12_14/purely_static_reference.m.trs -solve_algo_12_14/purely_static_12.o.trs: solve_algo_12_14/purely_static_reference.o.trs -solve_algo_12_14/purely_static_14.m.trs: solve_algo_12_14/purely_static_reference.m.trs -solve_algo_12_14/purely_static_14.o.trs: solve_algo_12_14/purely_static_reference.o.trs - -solve_algo_12_14/purely_forward_12.m.trs: solve_algo_12_14/purely_forward_reference.m.trs -solve_algo_12_14/purely_forward_12.o.trs: solve_algo_12_14/purely_forward_reference.o.trs -solve_algo_12_14/purely_forward_14.m.trs: solve_algo_12_14/purely_forward_reference.m.trs -solve_algo_12_14/purely_forward_14.o.trs: solve_algo_12_14/purely_forward_reference.o.trs - -estimation/conditional-likelihood/1/fs2000_estimation_conditional.m.trs: estimation/conditional-likelihood/1/fs2000_estimation_exact.m.trs -estimation/conditional-likelihood/1/fs2000_estimation_conditional.o.trs: estimation/conditional-likelihood/1/fs2000_estimation_exact.o.trs - -deprecated/ramst.m.trs: deterministic_simulations/ramst.m.trs -deprecated/ramst.o.trs: deterministic_simulations/ramst.o.trs - - -observation_trends_and_prefiltering/MCMC: m/observation_trends_and_prefiltering/MCMC o/observation_trends_and_prefiltering/MCMC -m/observation_trends_and_prefiltering/MCMC: $(patsubst %.mod, %.m.trs, $(filter observation_trends_and_prefiltering/MCMC/%.mod, $(MODFILES))) -o/observation_trends_and_prefiltering/MCMC: $(patsubst %.mod, %.o.trs, $(filter observation_trends_and_prefiltering/MCMC/%.mod, $(MODFILES))) - -observation_trends_and_prefiltering/ML: m/observation_trends_and_prefiltering/ML o/observation_trends_and_prefiltering/ML -m/observation_trends_and_prefiltering/ML: $(patsubst %.mod, %.m.trs, $(filter observation_trends_and_prefiltering/ML/%.mod, $(MODFILES))) -o/observation_trends_and_prefiltering/ML: $(patsubst %.mod, %.o.trs, $(filter observation_trends_and_prefiltering/ML/%.mod, $(MODFILES))) - -observation_trends_and_prefiltering/calib_smoother: m/observation_trends_and_prefiltering/calib_smoother o/observation_trends_and_prefiltering/calib_smoother -m/observation_trends_and_prefiltering/calib_smoother: $(patsubst %.mod, %.m.trs, $(filter observation_trends_and_prefiltering/calib_smoother/%.mod, $(MODFILES))) -o/observation_trends_and_prefiltering/calib_smoother: $(patsubst %.mod, %.o.trs, $(filter observation_trends_and_prefiltering/calib_smoother/%.mod, $(MODFILES))) - -observation_trends_and_prefiltering: m/observation_trends_and_prefiltering o/observation_trends_and_prefiltering -m/observation_trends_and_prefiltering: $(patsubst %.mod, %.m.trs, $(filter observation_trends_and_prefiltering/%.mod, $(MODFILES))) -o/observation_trends_and_prefiltering: $(patsubst %.mod, %.o.trs, $(filter observation_trends_and_prefiltering/%.mod, $(MODFILES))) - -stochastic-backward-models: m/stochastic-backward-models o/stochastic-backward-models -m/stochastic-backward-models: $(patsubst %.mod, %.m.trs, $(filter stochastic-backward-models/%.mod, $(MODFILES))) -o/stochastic-backward-models: $(patsubst %.mod, %.o.trs, $(filter stochastic-backward-models/%.mod, $(MODFILES))) - -arima: m/arima o/arima -m/arima: $(patsubst %.mod, %.m.trs, $(filter arima/%.mod, $(MODFILES))) -o/arima: $(patsubst %.mod, %.o.trs, $(filter arima/%.mod, $(MODFILES))) - -expectations: m/expectations o/expectations -m/expectations: $(patsubst %.mod, %.m.trs, $(filter expectations/%.mod, $(MODFILES))) -o/expectations: $(patsubst %.mod, %.o.trs, $(filter expectations/%.mod, $(MODFILES))) - -external_function: m/external_function o/external_function -m/external_function: $(patsubst %.mod, %.m.trs, $(filter external_function/%.mod, $(MODFILES))) -o/external_function: $(patsubst %.mod, %.o.trs, $(filter external_function/%.mod, $(MODFILES))) - -on-the-fly: m/on-the-fly o/on-the-fly -m/on-the-fly: $(patsubst %.mod, %.m.trs, $(filter on-the-fly/%.mod, $(MODFILES))) -o/on-the-fly: $(patsubst %.mod, %.o.trs, $(filter on-the-fly/%.mod, $(MODFILES))) - -trend_var: m/trend_var o/trend_var -m/trend_var: $(patsubst %.mod, %.m.trs, $(filter trend_var/%.mod, $(MODFILES))) -o/trend_var: $(patsubst %.mod, %.o.trs, $(filter trend_var/%.mod, $(MODFILES))) - -moments: m/moments o/moments -m/moments: $(patsubst %.mod, %.m.trs, $(filter moments/%.mod, $(MODFILES))) -o/moments: $(patsubst %.mod, %.o.trs, $(filter moments/%.mod, $(MODFILES))) - -AIM: m/AIM o/AIM -m/AIM: $(patsubst %.mod, %.m.trs, $(filter AIM/%.mod, $(MODFILES))) -o/AIM: $(patsubst %.mod, %.o.trs, $(filter AIM/%.mod, $(MODFILES))) - -second_order: m/second_order o/second_order -m/second_order: $(patsubst %.mod, %.m.trs, $(filter second_order/%.mod, $(MODFILES))) -o/second_order: $(patsubst %.mod, %.o.trs, $(filter second_order/%.mod, $(MODFILES))) - -decision_rules: m/decision_rules o/decision_rules -m/decision_rules: $(patsubst %.mod, %.m.trs, $(filter decision_rules/%.mod, $(MODFILES))) -o/decision_rules: $(patsubst %.mod, %.o.trs, $(filter decision_rules/%.mod, $(MODFILES))) - -k_order_perturbation: m/k_order_perturbation o/k_order_perturbation -m/k_order_perturbation: $(patsubst %.mod, %.m.trs, $(filter k_order_perturbation/%.mod, $(MODFILES))) -o/k_order_perturbation: $(patsubst %.mod, %.o.trs, $(filter k_order_perturbation/%.mod, $(MODFILES))) - -optimal_policy/OSR: m/optimal_policy/OSR o/optimal_policy/OSR -m/optimal_policy/OSR: $(patsubst %.mod, %.m.trs, $(filter optimal_policy/OSR/%.mod, $(MODFILES))) -o/optimal_policy/OSR: $(patsubst %.mod, %.o.trs, $(filter optimal_policy/OSR/%.mod, $(MODFILES))) - -optimal_policy/Ramsey: m/optimal_policy/Ramsey o/optimal_policy/Ramsey -m/optimal_policy/Ramsey: $(patsubst %.mod, %.m.trs, $(filter optimal_policy/Ramsey/%.mod, $(MODFILES))) -o/optimal_policy/Ramsey: $(patsubst %.mod, %.o.trs, $(filter optimal_policy/Ramsey/%.mod, $(MODFILES))) - -optimal_policy: m/optimal_policy o/optimal_policy -m/optimal_policy: $(patsubst %.mod, %.m.trs, $(filter optimal_policy/%.mod, $(MODFILES))) -o/optimal_policy: $(patsubst %.mod, %.o.trs, $(filter optimal_policy/%.mod, $(MODFILES))) - -discretionary_policy: m/discretionary_policy o/discretionary_policy -m/discretionary_policy: $(patsubst %.mod, %.m.trs, $(filter discretionary_policy/%.mod, $(MODFILES))) -o/discretionary_policy: $(patsubst %.mod, %.o.trs, $(filter discretionary_policy/%.mod, $(MODFILES))) - -steady_state: m/steady_state o/steady_state -m/steady_state: $(patsubst %.mod, %.m.trs, $(filter steady_state/%.mod, $(MODFILES))) -o/steady_state: $(patsubst %.mod, %.o.trs, $(filter steady_state/%.mod, $(MODFILES))) - -steady_state_operator: m/steady_state_operator o/steady_state_operator -m/steady_state_operator: $(patsubst %.mod, %.m.trs, $(filter steady_state_operator/%.mod, $(MODFILES))) -o/steady_state_operator: $(patsubst %.mod, %.o.trs, $(filter steady_state_operator/%.mod, $(MODFILES))) - -deterministic_simulations/multiple_lead_lags: m/deterministic_simulations/multiple_lead_lags o/deterministic_simulations/multiple_lead_lags -m/deterministic_simulations/multiple_lead_lags: $(patsubst %.mod, %.m.trs, $(filter deterministic_simulations/multiple_lead_lags/%.mod, $(MODFILES))) -o/deterministic_simulations/multiple_lead_lags: $(patsubst %.mod, %.o.trs, $(filter deterministic_simulations/multiple_lead_lags/%.mod, $(MODFILES))) - -deterministic_simulations: m/deterministic_simulations o/deterministic_simulations -m/deterministic_simulations: $(patsubst %.mod, %.m.trs, $(filter deterministic_simulations/%.mod, $(MODFILES))) -o/deterministic_simulations: $(patsubst %.mod, %.o.trs, $(filter deterministic_simulations/%.mod, $(MODFILES))) - -ep: m/ep o/ep -m/ep: $(patsubst %.mod, %.m.trs, $(filter ep/%.mod, $(MODFILES))) -o/ep: $(patsubst %.mod, %.o.trs, $(filter ep/%.mod, $(MODFILES))) - -ms-sbvar: m/ms-sbvar o/ms-sbvar -m/ms-sbvar: $(patsubst %.mod, %.m.trs, $(filter ms-sbvar/%.mod, $(MODFILES))) -o/ms-sbvar: $(patsubst %.mod, %.o.trs, $(filter ms-sbvar/%.mod, $(MODFILES))) - -lmmcp: m/lmmcp o/lmmcp -m/lmmcp: $(patsubst %.mod, %.m.trs, $(filter lmmcp/%.mod, $(MODFILES))) -o/lmmcp: $(patsubst %.mod, %.o.trs, $(filter lmmcp/%.mod, $(MODFILES))) - -loglinear: m/loglinear o/loglinear -m/loglinear: $(patsubst %.mod, %.m.trs, $(filter loglinear/%.mod, $(MODFILES))) -o/loglinear: $(patsubst %.mod, %.o.trs, $(filter loglinear/%.mod, $(MODFILES))) - -gsa: m/gsa o/gsa -m/gsa: $(patsubst %.mod, %.m.trs, $(filter gsa/%.mod, $(MODFILES))) -o/gsa: $(patsubst %.mod, %.o.trs, $(filter gsa/%.mod, $(MODFILES))) - -identification: m/identification o/identification -m/identification: $(patsubst %.mod, %.m.trs, $(filter identification/%.mod, $(MODFILES))) -o/identification: $(patsubst %.mod, %.o.trs, $(filter identification/%.mod, $(MODFILES))) - -analytic_derivatives: m/analytic_derivatives o/analytic_derivatives -m/analytic_derivatives: $(patsubst %.mod, %.m.trs, $(filter analytic_derivatives/%.mod, $(MODFILES))) -o/analytic_derivatives: $(patsubst %.mod, %.o.trs, $(filter analytic_derivatives/%.mod, $(MODFILES))) - -pruning: m/pruning o/pruning -m/pruning: $(patsubst %.mod, %.m.trs, $(filter pruning/%.mod, $(MODFILES))) -o/pruning: $(patsubst %.mod, %.o.trs, $(filter pruning/%.mod, $(MODFILES))) - -fs2000: m/fs2000 o/fs2000 -m/fs2000: $(patsubst %.mod, %.m.trs, $(filter fs2000/%.mod, $(MODFILES))) -o/fs2000: $(patsubst %.mod, %.o.trs, $(filter fs2000/%.mod, $(MODFILES))) - -estimation/MH_recover: m/estimation/MH_recover o/estimation/MH_recover -m/estimation/MH_recover: $(patsubst %.mod, %.m.trs, $(filter estimation/MH_recover/%.mod, $(MODFILES))) -o/estimation/MH_recover: $(patsubst %.mod, %.o.trs, $(filter estimation/MH_recover/%.mod, $(MODFILES))) - -estimation: m/estimation o/estimation -m/estimation: $(patsubst %.mod, %.m.trs, $(filter estimation/%.mod, $(MODFILES))) -o/estimation: $(patsubst %.mod, %.o.trs, $(filter estimation/%.mod, $(MODFILES))) - -kalman/likelihood_from_dynare: m/kalman/likelihood_from_dynare o/kalman/likelihood_from_dynare -m/kalman/likelihood_from_dynare: $(patsubst %.mod, %.m.trs, $(filter kalman/likelihood_from_dynare/%.mod, $(MODFILES))) -o/kalman/likelihood_from_dynare: $(patsubst %.mod, %.o.trs, $(filter kalman/likelihood_from_dynare/%.mod, $(MODFILES))) - -kalman/lik_init: m/kalman/lik_init o/kalman/lik_init -m/kalman/lik_init: $(patsubst %.mod, %.m.trs, $(filter kalman/lik_init/%.mod, $(MODFILES))) -o/kalman/lik_init: $(patsubst %.mod, %.o.trs, $(filter kalman/lik_init/%.mod, $(MODFILES))) - -kalman: m/kalman o/kalman -m/kalman: $(patsubst %.mod, %.m.trs, $(filter kalman/%.mod, $(MODFILES))) -o/kalman: $(patsubst %.mod, %.o.trs, $(filter kalman/%.mod, $(MODFILES))) - -dsge-var: m/dsge-var o/dsge-var -m/dsge-var: $(patsubst %.mod, %.m.trs, $(filter dsge-var/%.mod, $(MODFILES))) -o/dsge-var: $(patsubst %.mod, %.o.trs, $(filter dsge-var/%.mod, $(MODFILES))) - -kalman_filter_smoother: m/kalman_filter_smoother o/kalman_filter_smoother -m/kalman_filter_smoother: $(patsubst %.mod, %.m.trs, $(filter kalman_filter_smoother/%.mod, $(MODFILES))) -o/kalman_filter_smoother: $(patsubst %.mod, %.o.trs, $(filter kalman_filter_smoother/%.mod, $(MODFILES))) - -shock_decomposition: m/shock_decomposition o/shock_decomposition -m/shock_decomposition: $(patsubst %.mod, %.m.trs, $(filter shock_decomposition/%.mod, $(MODFILES))) -o/shock_decomposition: $(patsubst %.mod, %.o.trs, $(filter shock_decomposition/%.mod, $(MODFILES))) - -conditional_forecasts: m/conditional_forecasts o/conditional_forecasts -m/conditional_forecasts: $(patsubst %.mod, %.m.trs, $(filter conditional_forecasts/%.mod, $(MODFILES))) -o/conditional_forecasts: $(patsubst %.mod, %.o.trs, $(filter conditional_forecasts/%.mod, $(MODFILES))) - -optimizers: m/optimizers o/optimizers -m/optimizers: $(patsubst %.mod, %.m.trs, $(filter optimizers/%.mod, $(MODFILES))) -o/optimizers: $(patsubst %.mod, %.o.trs, $(filter optimizers/%.mod, $(MODFILES))) - -gradient: m/gradient o/gradient -m/gradient: $(patsubst %.mod, %.m.trs, $(filter gradient/%.mod, $(MODFILES))) -o/gradient: $(patsubst %.mod, %.o.trs, $(filter gradient/%.mod, $(MODFILES))) - -var-expectations: m/var-expectations o/var-expectations -m/var-expectations: $(patsubst %.mod, %.m.trs, $(filter var-expectations/%.mod, $(MODFILES))) -o/var-expectations: $(patsubst %.mod, %.o.trs, $(filter var-expectations/%.mod, $(MODFILES))) - -estimation/univariate/ols: m/estimation/univariate/ols o/estimation/univariate/ols -m/estimation/univariate/ols: $(patsubst %.mod, %.m.trs, $(filter estimation/univariate/ols/%.mod, $(MODFILES))) -o/estimation/univariate/ols: $(patsubst %.mod, %.o.trs, $(filter estimation/univariate/ols/%.mod, $(MODFILES))) - -trend-component-and-var-models: m/trend-component-and-var-models o/trend-component-and-var-models -m/trend-component-and-var-models: $(patsubst %.mod, %.m.trs, $(filter trend-component-and-var-models/%.mod, $(MODFILES))) -o/trend-component-and-var-models: $(patsubst %.mod, %.o.trs, $(filter trend-component-and-var-models/%.mod, $(MODFILES))) - -pac: m/pac o/pac -m/pac: $(patsubst %.mod, %.m.trs, $(filter pac/%.mod, $(MODFILES))) -o/pac: $(patsubst %.mod, %.o.trs, $(filter pac/%.mod, $(MODFILES))) - -particle: m/particle o/particle -m/particle: $(patsubst %.mod, %.m.trs, $(PARTICLEFILES)) -o/particle: $(patsubst %.mod, %.o.trs, $(PARTICLEFILES)) - -method_of_moments: m/method_of_moments o/method_of_moments -m/method_of_moments: $(patsubst %.mod, %.m.trs, $(filter estimation/method_of_moments/%.mod, $(MODFILES))) -o/method_of_moments: $(patsubst %.mod, %.o.trs, $(filter estimation/method_of_moments/%.mod, $(MODFILES))) - -ecb: m/ecb o/ecb -m/ecb: $(patsubst %.mod, %.m.trs, $(filter ecb/%.mod, $(MODFILES))) -o/ecb: $(patsubst %.mod, %.o.trs, $(filter ecb/%.mod, $(MODFILES))) - -estimation/univariate: m/estimation/univariate o/estimation/univariate -m/estimation/univariate: $(patsubst %.mod, %.m.trs, $(filter estimation/univariate/%.mod, $(MODFILES))) -o/estimation/univariate: $(patsubst %.mod, %.o.trs, $(filter estimation/univariate/%.mod, $(MODFILES))) - -model-inversion: m/model-inversion o/model-inversion -m/model-inversion: $(patsubst %.mod, %.m.trs, $(filter model-inversion/%.mod, $(MODFILES))) -o/model-inversion: $(patsubst %.mod, %.o.trs, $(filter model-inversion/%.mod, $(MODFILES))) - -solve_algo_12_14: m/solve_algo_12_14 o/solve_algo_12_14 -m/solve_algo_12_14: $(patsubst %.mod, %.m.trs, $(filter solve_algo_12_14/%.mod, $(MODFILES))) -o/solve_algo_12_14: $(patsubst %.mod, %.o.trs, $(filter solve_algo_12_14/%.mod, $(MODFILES))) - - -# ECB files -M_ECB_TRS_FILES = $(patsubst %.mod, %.m.trs, $(ECB_MODFILES)) - -# Just OLS files -M_OLS_TRS_FILES = $(patsubst %.mod, %.m.trs, $(OLS_MODFILES)) - -# Matlab TRS Files -M_TRS_FILES = $(patsubst %.mod, %.m.trs, $(MODFILES)) -M_TRS_FILES += $(patsubst %.mod, %.m.trs, $(PARTICLEFILES)) -M_TRS_FILES += run_block_byte_tests_matlab.m.trs \ - run_reporting_test_matlab.m.trs \ - run_all_unit_tests.m.trs \ - histval_initval_file_unit_tests.m.trs \ - test_aggregate_routine_1_2.m.trs \ - test_aggregate_routine_1_2_3.m.trs \ - run_kronecker_tests.m.trs \ - nonlinearsolvers.m.trs \ - cyclereduction.m.trs \ - logarithmicreduction.m.trs \ - riccatiupdate.m.trs \ - contribs.m.trs - -M_XFAIL_TRS_FILES = $(patsubst %.mod, %.m.trs, $(XFAIL_MODFILES)) - -# Octave TRS Files -O_TRS_FILES = $(patsubst %.mod, %.o.trs, $(MODFILES)) -O_TRS_FILES += $(patsubst %.mod, %.o.trs, $(PARTICLEFILES)) -O_TRS_FILES += run_block_byte_tests_octave.o.trs \ - run_reporting_test_octave.o.trs \ - run_all_unit_tests.o.trs \ - histval_initval_file_unit_tests.o.trs \ - run_kronecker_tests.o.trs \ - nonlinearsolvers.o.trs \ - cyclereduction.o.trs \ - logarithmicreduction.o.trs \ - riccatiupdate.o.trs \ - contribs.o.trs - -O_XFAIL_TRS_FILES = $(patsubst %.mod, %.o.trs, $(XFAIL_MODFILES)) - -# Matlab TLS Files -M_TLS_FILES = $(patsubst %.m, %.m.tls, $(MFILES)) - -# Octave TLS Files -O_TLS_FILES = $(patsubst %.m, %.o.tls, $(MFILES)) - -EXTRA_DIST = \ - read_trs_files.sh \ - run_test_matlab.m \ - run_test_octave.m \ - run_m_script.m \ - utils/load_octave_packages.m \ - $(MODFILES) \ - $(PARTICLEFILES) \ - $(XFAIL_MODFILES) \ - $(MFILES) \ - run_block_byte_tests_matlab.m \ - run_block_byte_tests_octave.m \ - run_reporting_test_matlab.m \ - run_reporting_test_octave.m \ - run_all_unit_tests.m \ - first_order/+matlab/+namespace/y_k.m \ - reporting/AnnualTable.m \ - reporting/CommResidTablePage.m \ - reporting/CountryGraphPage.m \ - reporting/CountryTablePage.m \ - reporting/ResidTablePage.m \ - reporting/db_a.csv \ - reporting/db_q.csv \ - reporting/dc_a.csv \ - reporting/dc_q.csv \ - reporting/runDynareReport.m \ - steady_state/homotopy/common.mod \ - block_bytecode/ls2003.mod \ - steady_state/fs2000_ssfile_aux.m \ - utils/printMakeCheckMatlabErrMsg.m \ - utils/printMakeCheckOctaveErrMsg.m \ - utils/fataltest.m \ - AIM/data_ca1.m \ - AIM/fsdat.m \ - block_bytecode/run_ls2003.m \ - block_bytecode/lola_data.mat \ - block_bytecode/lola_common.inc \ - bvar_a_la_sims/bvar_sample.m \ - dates/fsdat_simul.m \ - dates/data_uav.xlsx \ - external_function/extFunDeriv.m \ - external_function/extFunNoDerivs.m \ - external_function/extFunWithFirstAndSecondDerivs.m \ - external_function/+matlab/+namespace/extFunNoDerivsNamespace.m \ - external_function/+matlab/+namespace/extFunWithFirstAndSecondDerivsNamespace.m \ - expectations/expectation_ss_old_steadystate.m \ - filter_step_ahead/trend_cycle_decomposition_data.m \ - steady_state/walsh1_old_ss_steadystate.m \ - data/test.xlsx \ - gsa/morris/nk_est_data.m \ - gsa/data_ca1.m \ - gsa/data_ca1.mat \ - analytic_derivatives/fsdat_simul.m \ - analytic_derivatives/nBrockMirmanSYM.mat \ - pruning/Andreasen_et_al_2018_Dynare44Pruning_v2.mat \ - fs2000/fsdat_simul.m \ - fs2000/fsdat_simul_dseries.m \ - fs2000/fsdat_simul_missing_obs.m \ - ls2003/data_ca1.m \ - measurement_errors/data_ca1.m \ - measurement_errors/fs2000_corr_me_ml_mcmc/fsdat_simul.m \ - missing/simulate_data_with_missing_observations.m \ - conditional_forecasts/2/fsdat_simul.m \ - conditional_variance_decomposition/example3_steady_state_helper.m \ - ms-sbvar/msdata.m \ - ms-sbvar/archive-files/ftd_2s_caseall_upperchol3v.m \ - ms-sbvar/archive-files/ftd_2s_caseall_upperchol4v.m \ - ms-sbvar/archive-files/ftd_2s_caseall_upperchol6v.m \ - ms-sbvar/archive-files/ftd_2s_caseall_upperchol7v.m \ - ms-sbvar/archive-files/ftd_RSvensson_4v.m \ - ms-sbvar/archive-files/ftd_cholesky.m \ - ms-sbvar/archive-files/ftd_non_rec_5v.m \ - ms-sbvar/archive-files/ftd_simszha5v.m \ - ms-sbvar/archive-files/ftd_upperchol3v.m \ - ms-sbvar/archive-files/ftd_upperchol4v.m \ - ms-sbvar/archive-files/ftd_upperchol5v.m \ - ms-sbvar/archive-files/ftd_upperchol6v.m \ - ms-sbvar/archive-files/ftd_upperchol7v.m \ - ms-sbvar/archive-files/specification_2v.dat \ - ms-sbvar/archive-files/specification_2v2c.dat \ - recursive/data_ca1.m \ - recursive/data_ca1_csv.csv \ - recursive/data_ca1_xls.xlsx \ - kalman_filter_smoother/fsdat_simul.m \ - kalman/lik_init/fs2000_common.inc \ - kalman/lik_init/fs2000_ns_common.inc \ - kalman_initial_state/fs2000_common.inc \ - kalman_filter_smoother/compare_results_simulation/fsdat_simul_logged.m \ - kalman_filter_smoother/SOE_data_file.m \ - kalman/likelihood_from_dynare/fs2000_model.inc \ - kalman/likelihood_from_dynare/fs2000_estimation_check.inc \ - kalman/likelihood_from_dynare/fs2000ns_model.inc \ - kalman/likelihood_from_dynare/fs2000ns_estimation_check.inc \ - identification/as2007/G_QT.mat \ - identification/forward_looking/forward_looking_common.inc \ - estimation/fsdat_simul.m \ - estimation/heteroskedastic_shocks/fs2000_het_model.inc \ - estimation/heteroskedastic_shocks/fs2000_het_check.inc \ - estimation/system_prior_restriction/Gali_2015_PC_slope.m \ - estimation/system_prior_restriction/Gali_2015_prior_restrictions.m \ - ep/mean_preserving_spread.m \ - ep/rbcii_steadystate.m \ - decision_rules/example1_results_dyn_432.mat \ - decision_rules/third_order/comparison_policy_functions_dynare_mathematica.m \ - decision_rules/third_order/FV_2011_policyfunctions.mat \ - shock_decomposition/example1_calib_shock_decomp_data.mat \ - shock_decomposition/fsdat_simul.m \ - smoother2histval/fsdat_simul.m \ - particle/first_spec_common.inc \ - particle/risky.m \ - particle/dsgebase2data.mat \ - optimal_policy/Ramsey/find_c.m \ - observation_trends_and_prefiltering/generate_trend_stationary_AR1.m \ - observation_trends_and_prefiltering/Trend_diagnostics_MCMC_common.inc \ - observation_trends_and_prefiltering/Trend_diagnostics_calib_common.inc \ - observation_trends_and_prefiltering/Trend_diagnostics_ML_common.inc \ - observation_trends_and_prefiltering/Trend_exp_model_prefilter_common.inc \ - observation_trends_and_prefiltering/Trend_exp_model_no_prefilter_common.inc \ - observation_trends_and_prefiltering/Trend_model_prefilter_common.inc \ - observation_trends_and_prefiltering/Trend_model_no_prefilter_common.inc \ - observation_trends_and_prefiltering/Trend_exp_model_calib_prefilter_common.inc \ - observation_trends_and_prefiltering/Trend_exp_model_calib_no_prefilter_common.inc \ - observation_trends_and_prefiltering/Trend_model_calib_prefilter_common.inc \ - observation_trends_and_prefiltering/Trend_model_calib_no_prefilter_common.inc \ - observation_trends_and_prefiltering/Trend_load_data_common.inc \ - observation_trends_and_prefiltering/Trend_no_prefilter_conditional_forecast.inc \ - occbin/model_borrcon/borrcon_common.inc \ - occbin/model_irrcap_twoconstraints/dynrbc_common.inc \ - occbin/filter/dataobsfile.mat \ - occbin/filter/NKM_mh_mode_saved.mat \ - optimal_policy/neo_growth_common.inc \ - optimal_policy/neo_growth_ramsey_common.inc \ - optimizers/optimizer_function_wrapper.m \ - optimizers/fs2000.common.inc \ - estimation/MH_recover/fs2000.common.inc \ - prior_posterior_function/posterior_function_demo.m \ - lmmcp/sw-common-header.inc \ - lmmcp/sw-common-footer.inc \ - estimation/tune_mh_jscale/fs2000.inc \ - estimation/method_of_moments/AnScho/AnScho_MoM_common.inc \ - estimation/method_of_moments/AnScho/AnScho_MoM_data_2.mat \ - estimation/method_of_moments/RBC/RBC_MoM_common.inc \ - estimation/method_of_moments/RBC/RBC_MoM_steady_helper.m \ - estimation/method_of_moments/RBC/RBC_Andreasen_Data_2.mat \ - estimation/method_of_moments/AFVRR/AFVRR_common.inc \ - estimation/method_of_moments/AFVRR/AFVRR_steady_helper.m \ - estimation/method_of_moments/AFVRR/AFVRR_data.mat \ - estimation/univariate/data.csv \ - estimation/univariate/ols/mc-ols.inc \ - estimation/no_init_estimation_check_first_obs/fsdat_simul.m \ - estimation/no_init_estimation_check_first_obs/fsdat_mat.m \ - estimation/no_init_estimation_check_first_obs/fsdat_mat_XFAIL.m \ - ecb/SURGibbs/fishdata.csv \ - test_aggregate_routine_1_2.m \ - test_aggregate_routine_1_2_3.m \ - ecb/aggregate/1/endogenous.inc \ - ecb/aggregate/1/exogenous.inc \ - ecb/aggregate/1/parameters.inc \ - ecb/aggregate/1/parameter-values.inc \ - ecb/aggregate/1/model.inc \ - ecb/aggregate/2/endogenous.inc \ - ecb/aggregate/2/exogenous.inc \ - ecb/aggregate/2/parameters.inc \ - ecb/aggregate/2/parameter-values.inc \ - ecb/aggregate/2/model.inc \ - ecb/aggregate/3/endogenous.inc \ - ecb/aggregate/3/exogenous.inc \ - ecb/aggregate/3/parameters.inc \ - ecb/aggregate/3/parameter-values.inc \ - ecb/aggregate/3/model.inc \ - histval_initval_file_unit_tests.m \ - histval_initval_file/my_assert.m \ - histval_initval_file/ramst_data.xls \ - histval_initval_file/ramst_data.xlsx \ - histval_initval_file/ramst_initval_file_data.m \ - run_kronecker_tests.m \ - kronecker/test_kron.m \ - kronecker/nash_matrices.mat \ - deterministic_simulations/pfwee.csv \ - solver-test-functions/brown.m \ - solver-test-functions/broydenbanded.m \ - solver-test-functions/broydentridiagonal.m \ - solver-test-functions/chebyquad.m \ - solver-test-functions/discreteboundaryvalue.m \ - solver-test-functions/discreteintegralequation.m \ - solver-test-functions/helicalvalley.m \ - solver-test-functions/powell1.m \ - solver-test-functions/powell2.m \ - solver-test-functions/rosenbrock.m \ - solver-test-functions/trigonometric.m \ - solver-test-functions/variablydimensioned.m \ - solver-test-functions/watson.m \ - solver-test-functions/wood.m \ - stat_functions/ramst_normcdf_and_friends.inc \ - solve_algo_12_14/backward_model.inc \ - solve_algo_12_14/simul_backward_common.inc \ - solve_algo_12_14/purely_backward_common.inc \ - solve_algo_12_14/purely_static_common.inc \ - solve_algo_12_14/purely_forward_common.inc \ - sandbox.mod \ - simulateddata.m - - -if ENABLE_MATLAB -check-local: check-matlab -endif - -if ENABLE_OCTAVE -check-local: check-octave -endif - -check-matlab: $(M_XFAIL_TRS_FILES) $(M_TRS_FILES) - @./read_trs_files.sh "$(M_TRS_FILES)" "$(M_XFAIL_TRS_FILES)" - -check-octave: $(O_XFAIL_TRS_FILES) $(O_TRS_FILES) - @./read_trs_files.sh "$(O_TRS_FILES)" "$(O_XFAIL_TRS_FILES)" - -check-matlab-ecb: $(M_ECB_TRS_FILES) - @./read_trs_files.sh "$(M_ECB_TRS_FILES)" - -check-matlab-ols: $(M_OLS_TRS_FILES) - @./read_trs_files.sh "$(M_OLS_TRS_FILES)" - -%.m.trs %.m.log: %.mod - @echo "`tput bold``tput setaf 8`MATLAB: $(CURDIR)/$*... `tput sgr0`" - @DYNARE_VERSION="$(PACKAGE_VERSION)" TOP_TEST_DIR="$(CURDIR)" FILESTEM="$*" \ - $(MATLAB)/bin/matlab $(MATLAB_BATCH_OPTIONS) run_test_matlab > $*.m.log 2>&1 || \ - printf ":test-result: FAIL\n:number-tests: 1\n:number-failed-tests: 1\n:list-of-failed-tests: $*.mod\n:elapsed-time: 0.0\n" > $*.m.trs - @if test -z "$(filter $*.m.trs,$(M_XFAIL_TRS_FILES))"; then pass_color=2; fail_color=1; else pass_color=1; fail_color=2; fi; \ - if grep -q ":test-result: PASS" $*.m.trs; then \ - echo "`tput bold``tput setaf $${pass_color}`MATLAB: $(CURDIR)/$* PASSED!`tput sgr0`" ; \ - else \ - echo "`tput bold``tput setaf $${fail_color}`MATLAB: $(CURDIR)/$* FAILED!`tput sgr0`" ; \ - fi - -%.m.drs %.m.log: %.m.trs - @cat $*.m.log - -%.m.trs %.m.log : %.m - @echo "`tput bold``tput setaf 8`MATLAB: $(CURDIR)/$*... `tput sgr0`" - @DYNARE_VERSION="$(PACKAGE_VERSION)" TOP_TEST_DIR="$(CURDIR)" \ - $(MATLAB)/bin/matlab $(MATLAB_BATCH_OPTIONS) $* > $*.m.log 2>&1 || \ - printf ":test-result: FAIL\n:number-tests: 1\n:number-failed-tests: 1\n:list-of-failed-tests: $*.mod\n:elapsed-time: 0.0\n" > $*.m.trs - @echo "`tput bold``tput setaf 8`MATLAB: $(CURDIR)/$* Done!`tput sgr0`" - -%.o.trs %.o.log: %.mod - @echo "`tput bold``tput setaf 8`OCTAVE: $(CURDIR)/$*... `tput sgr0`" - @DYNARE_VERSION="$(PACKAGE_VERSION)" TOP_TEST_DIR="$(CURDIR)" FILESTEM="$*" \ - xvfb-run -a $(OCTAVE) --no-init-file --silent --no-history --path "$*.mod" run_test_octave.m > $*.o.log 2>&1 || \ - printf ":test-result: FAIL\n:number-tests: 1\n:number-failed-tests: 1\n:list-of-failed-tests: $*.mod\n:elapsed-time: 0.0\n" > $*.o.trs - @if test -z "$(filter $*.o.trs,$(O_XFAIL_TRS_FILES))"; then pass_color=2; fail_color=1; else pass_color=1; fail_color=2; fi; \ - if grep -q ":test-result: PASS" $*.o.trs; then \ - echo "`tput bold``tput setaf $${pass_color}`OCTAVE: $(CURDIR)/$* PASSED!`tput sgr0`" ; \ - else \ - echo "`tput bold``tput setaf $${fail_color}`OCTAVE: $(CURDIR)/$* FAILED!`tput sgr0`" ; \ - fi - -%.o.drs %.o.log: %.mod %.o.trs - @cat $*.o.log - -%.o.trs %.o.log : %.m - @echo "`tput bold``tput setaf 8`OCTAVE: $(CURDIR)/$*... `tput sgr0`" - @DYNARE_VERSION="$(PACKAGE_VERSION)" TOP_TEST_DIR="$(CURDIR)" \ - xvfb-run -a $(OCTAVE) --no-init-file --silent --no-history $< > $*.o.log 2>&1 || \ - printf ":test-result: FAIL\n:number-tests: 1\n:number-failed-tests: 1\n:list-of-failed-tests: $*.m\n:elapsed-time: 0.0\n" > $*.o.trs - @echo "`tput bold``tput setaf 8`OCTAVE: $(CURDIR)/$* Done!`tput sgr0`" - -%.m.tls : %.m - @echo "`tput bold``tput setaf 8`MATLAB: $(CURDIR)/$*... `tput sgr0`" - @TOP_TEST_DIR="$(CURDIR)" FILESTEM="$*" \ - $(MATLAB)/bin/matlab $(MATLAB_BATCH_OPTIONS) run_m_script >/dev/null 2>&1 - @touch $*.m.tls - @echo "`tput bold`MATLAB`tput setaf 8`: $(CURDIR)/$* Done!`tput sgr0`" - -%.o.tls : %.m - @echo "`tput bold``tput setaf 8`OCTAVE: $(CURDIR)/$*... `tput sgr0`" - @TOP_TEST_DIR="$(CURDIR)" FILESTEM="$*" \ - xvfb-run -a $(OCTAVE) --no-init-file --silent --no-history run_o_script.m 2>&1 - @touch $*.o.tls - @echo "`tput bold``tput setaf 8`OCTAVE: $(CURDIR)/$* Done!`tput sgr0`" - -clean-local: - rm -f $(M_TRS_FILES) - rm -f $(M_OLS_TRS_FILES) - rm -f $(M_TLS_FILES) - rm -f $(M_XFAIL_TRS_FILES) - rm -f $(O_TRS_FILES) - rm -f $(O_TLS_FILES) - rm -f $(O_XFAIL_TRS_FILES) - rm -f $(patsubst %.trs, %.log, $(M_TRS_FILES)) - rm -f $(patsubst %.trs, %.log, $(M_OLS_TRS_FILES)) - rm -f $(patsubst %.trs, %.log, $(M_XFAIL_TRS_FILES)) - rm -f $(patsubst %.trs, %.log, $(O_TRS_FILES)) - rm -f $(patsubst %.trs, %.log, $(O_XFAIL_TRS_FILES)) - rm -f $(patsubst %.trs, %.json, $(M_TRS_FILES)) - rm -f $(patsubst %.trs, %.json, $(M_OLS_TRS_FILES)) - rm -f $(patsubst %.trs, %.json, $(M_XFAIL_TRS_FILES)) - rm -f $(patsubst %.trs, %.json, $(O_TRS_FILES)) - rm -f $(patsubst %.trs, %.json, $(O_XFAIL_TRS_FILES)) - - rm -f $(patsubst %.mod, %.log, $(MODFILES)) - - rm -rf $(patsubst %.mod, %, $(MODFILES)) - - rm -rf $(foreach mod, $(MODFILES), $(dir $(mod))+$(basename $(notdir $(mod)))) - - rm -f $(patsubst %.mod, %*.pdf, $(MODFILES)) - rm -f $(patsubst %.mod, %*.eps, $(MODFILES)) - rm -f $(patsubst %.mod, %*.fig, $(MODFILES)) - - rm -f $(shell find -name g1.mat) - rm -f $(shell find -name g2.mat) - rm -f $(shell find -name g3.mat) - rm -f $(shell find -name H.dat) - - rm -f arima/data1.m arima/data2.m \ - k_order_perturbation/*.mat \ - kalman_filter_smoother/data_algo.mat \ - kalman_filter_smoother/data_Pinf_Pstar.mat - - rm -f data_ca1_csv.csv - - rm -f estimation/MH_recover/*.mat \ - estimation/MH_recover/*.dat - - rm -rf ramsey_objective - - rm -f ep/*.c - - rm -f fs2000_ssfile_steadystate.m - - rm -f $(shell find -name '*~') - - rm -f dsge-var/datarabanal_hybrid.m - - rm -rf partial_information/PItest3aHc0PCLsimModPiYrVarobsAll_PCL* partial_information/PItest3aHc0PCLsimModPiYrVarobsCNR_PCL* - - rm -rf block_bytecode/ls2003_tmp* - - rm -f reporting/report.* - - rm -f $(shell find -name wsOct) \ - $(shell find -name wsMat.mat) - - rm -f run_test_matlab_output.txt run_test_octave_output.txt - - rm -rf ms-sbvar/init_* \ - ms-sbvar/*.out \ - ms-sbvar/*.mat \ - ms-sbvar/*.prn \ - ms-sbvar/*.dat \ - ms-sbvar/tmv_rr_sr \ - ms-sbvar/tmv_rr_tr - - rm -f estimation/test_matrix.mat - - rm -f histval_initval_file/ramst_initval_file_data_col_vec_mat.mat histval_initval_file/ramst_initval_file_data_row_vec_mat.mat histval_initval_file/ramst_initval_file_excel.xls histval_initval_file/ramst_data.csv - - rm -f loglinear/results_exp_histval.mat loglinear/results_exp.mat - - rm -rf ecb/cherrypick/simulation-files1 ecb/cherrypick/simulation-files2 toto.mod - - rm -f discretionary_policy/dennis_simul.m - - rm -f kalman/likelihood_from_dynare/fsdat_simul_corr_ME.m \ - kalman/likelihood_from_dynare/fsdat_simul_corr_ME_missing.m \ - kalman/likelihood_from_dynare/fsdat_simul_uncorr_ME.m \ - kalman/likelihood_from_dynare/fsdat_simul_uncorr_ME_missing.m \ - kalman/likelihood_from_dynare/fs_ns_dat_simul_corr_ME.m \ - kalman/likelihood_from_dynare/fs_ns_dat_simul_corr_ME_missing.m \ - kalman/likelihood_from_dynare/fs_ns_dat_simul_uncorr_ME.m \ - kalman/likelihood_from_dynare/fs_ns_dat_simul_uncorr_ME_missing.m - - rm -f occbin/filter/dataobsfile2.mat - - rm -rf tests/pac/var-12/toto - - rm -f solve_algo_12_14/simul_backward_ref.mat - - find . -name "*.tex" -type f -delete - find . -name "*.aux" -type f -delete - find . -name "*.log" -type f -delete - find . -name "*.eps" -type f -delete diff --git a/tests/pac/.gitignore b/tests/pac/.gitignore deleted file mode 100644 index 77e9e6fc6..000000000 --- a/tests/pac/.gitignore +++ /dev/null @@ -1,16 +0,0 @@ -*~ -*.mat -*.eps -*.fig -*.pdf -*.log -*.tex -*_dynamic.m -*_static.m - -*.m -*.json - -checksum - -!/run_all_tests.m diff --git a/tests/pac/trend-component-27/.gitignore b/tests/pac/trend-component-27/.gitignore deleted file mode 100644 index 734fae6c5..000000000 --- a/tests/pac/trend-component-27/.gitignore +++ /dev/null @@ -1 +0,0 @@ -simulation-files/* diff --git a/tests/pac/trend-component-29/.gitignore b/tests/pac/trend-component-29/.gitignore deleted file mode 100644 index a313cff7e..000000000 --- a/tests/pac/trend-component-29/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -simulation-files1/* -simulation-files2/* diff --git a/tests/read_trs_files.sh b/tests/read_trs_files.sh deleted file mode 100755 index 2392eb310..000000000 --- a/tests/read_trs_files.sh +++ /dev/null @@ -1,94 +0,0 @@ -#!/bin/bash - -declare -i total=0 -declare -i total_xfail=0 -declare -i failed=0 -declare -i xpassed=0 -declare -a failed_tests=() -declare -a xpassed_tests=() - -# Parse TRS Files -tosort="" -for file in $1 ; do - # Find number of tests run in trs file - ((total += $(grep ^:number-tests: "$file" | cut -d: -f3))) - - # Find number of tests failed in trs file - numfailed=$(grep ^:number-failed-tests: "$file" | cut -d: -f3) - if ((numfailed != 0)) ; then - ((failed += numfailed)) - failed_tests+=($(grep ^:list-of-failed-tests: "$file" | cut -d: -f3)) - fi - - time=$(grep ^:elapsed-time: "$file" | cut -d: -f3) - tosort="$tosort| $file - $time:" -done -((passed = total - failed)) - -# Parse XFAIL TRS Files -for file in $2 ; do - # Find number of tests run in xfail trs file - xfail=$(grep ^:number-tests: "$file" | cut -d: -f3) - ((total_xfail += xfail)) - - # Find number of tests failed in trs file - numfailed=$(grep ^:number-failed-tests: "$file" | cut -d: -f3) - if ((numfailed != xfail)) ; then - ((xpassed += xfail - numfailed)) - xpassed_tests+=($(grep ^:list-of-passed-tests: "$file" | cut -d: -f3)) - fi - - time=$(grep ^:elapsed-time: "$file" | cut -d: -f3) - tosort="$tosort| $file - $time:" -done -((xfailed = total_xfail - xpassed)) -((total += total_xfail)) - -timing=$(echo "$tosort" | tr ":" "\n" | sort -rn -k4 | sed -e 's/$/:/' | head -n10) - -# Determine if we are parsing Matlab or Octave trs files -if (($(grep -c '.m.trs' <<< "$1") == 0)); then - prg=OCTAVE - outfile=run_test_octave_output.txt -else - prg=MATLAB - outfile=run_test_matlab_output.txt -fi - -# Print Output (to stdout and to a file) -{ - echo '================================' - echo "DYNARE MAKE CHECK $prg RESULTS" - echo '================================' - echo "| TOTAL: $total" - echo "| PASS: $passed" - echo "| FAIL: $failed" - echo "| XFAIL: $xfailed" - echo "| XPASS: $xpassed" - if ((failed > 0)) ; then - echo '|' - echo '| LIST OF FAILED TESTS:' - for file in "${failed_tests[@]}" ; do - echo "| * $file" - done - fi - if ((xpassed > 0)) ; then - echo '|' - echo '| LIST OF XPASSED TESTS:' - for file in "${xpassed_tests[@]}" ; do - echo "| * $file" - done - fi - echo '|' - echo '| LIST OF 10 SLOWEST TESTS:' - if [[ $prg == MATLAB ]]; then - timing=$(sed 's/\.m\.trs/\.mod/g' <<< "$timing") - else - timing=$(sed 's/\.o\.trs/\.mod/g' <<< "$timing") - fi - echo "$timing" | tr ':' '\n' | sed -e 's/^[ \t]*//;/^$/d;s/^|[ ]/| * /' - echo -} | tee $outfile - -# Exit with error code if some tests failed -((failed + xpassed == 0)) diff --git a/tests/run_m_script.m b/tests/run_m_script.m deleted file mode 100644 index cf26c2716..000000000 --- a/tests/run_m_script.m +++ /dev/null @@ -1,54 +0,0 @@ -% Copyright © 2015-2019 Dynare Team -% -% This file is part of Dynare. -% -% Dynare is free software: you can redistribute it and/or modify -% it under the terms of the GNU General Public License as published by -% the Free Software Foundation, either version 3 of the License, or -% (at your option) any later version. -% -% Dynare is distributed in the hope that it will be useful, -% but WITHOUT ANY WARRANTY; without even the implied warranty of -% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -% GNU General Public License for more details. -% -% You should have received a copy of the GNU General Public License -% along with Dynare. If not, see . - -top_test_dir = getenv('TOP_TEST_DIR'); -addpath([top_test_dir filesep 'utils']); - -[mfile, name] = strtok(getenv('FILESTEM')); - -[directory, mscript, ext] = fileparts([top_test_dir '/' mfile]); -cd(directory); - -try - eval(mscript); - testFailed = false; -catch exception - printMakeCheckMatlabErrMsg(strtok(getenv('FILESTEM')), exception); - testFailed = true; -end - -cd(top_test_dir); -name = strtok(getenv('FILESTEM')); -fid = fopen([name '.m.tls'], 'w'); -if fid < 0 - wd = pwd - filestep = getenv('FILESTEM') - error(['ERROR: problem opening file ' name '.m.tls for writing....']); -end -if testFailed - fprintf(fid,':test-result: FAIL\n'); - fprintf(fid,':number-tests: 1\n'); - fprintf(fid,':number-failed-tests: 1\n'); - fprintf(fid,':list-of-failed-tests: %s\n', [name '.m']); -else - fprintf(fid,':test-result: PASS\n'); - fprintf(fid,':number-tests: 1\n'); - fprintf(fid,':number-failed-tests: 0\n'); - fprintf(fid,':list-of-passed-tests: %s\n', [name '.m']); -end -fclose(fid); -exit; diff --git a/tests/run_o_script.m b/tests/run_o_script.m deleted file mode 100644 index 0a881d8c4..000000000 --- a/tests/run_o_script.m +++ /dev/null @@ -1,54 +0,0 @@ -## Copyright © 2015-2023 Dynare Team -## -## This file is part of Dynare. -## -## Dynare is free software: you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation, either version 3 of the License, or -## (at your option) any later version. -## -## Dynare is distributed in the hope that it will be useful, -## but WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -## GNU General Public License for more details. -## -## You should have received a copy of the GNU General Public License -## along with Dynare. If not, see . - -top_test_dir = getenv('TOP_TEST_DIR'); -addpath([top_test_dir filesep 'utils']); - -load_octave_packages - -[mfile, name] = strtok(getenv('FILESTEM')); - -[directory, mscript, ext] = fileparts([top_test_dir '/' mfile]); -cd(directory); - -try - eval(mscript); - testFailed = false; -catch - printMakeCheckOctaveErrMsg(getenv('FILESTEM'), lasterror); - testFailed = true; -end_try_catch - -cd(top_test_dir); -name = strtok(getenv('FILESTEM')); -fid = fopen([name '.o.tls'], 'w+'); -if testFailed - fprintf(fid,':test-result: FAIL\n'); - fprintf(fid,':number-tests: 1\n'); - fprintf(fid,':number-failed-tests: 1\n'); - fprintf(fid,':list-of-failed-tests: %s\n', [name '.m']); -else - fprintf(fid,':test-result: PASS\n'); - fprintf(fid,':number-tests: 1\n'); - fprintf(fid,':number-failed-tests: 0\n'); - fprintf(fid,':list-of-passed-tests: %s\n', [name '.m']); -end -fclose(fid); - -## Local variables: -## mode: Octave -## End: diff --git a/tests/run_test_matlab.m b/tests/run_test_matlab.m deleted file mode 100644 index d829a6a1a..000000000 --- a/tests/run_test_matlab.m +++ /dev/null @@ -1,73 +0,0 @@ -% Copyright © 2011-2017 Dynare Team -% -% This file is part of Dynare. -% -% Dynare is free software: you can redistribute it and/or modify -% it under the terms of the GNU General Public License as published by -% the Free Software Foundation, either version 3 of the License, or -% (at your option) any later version. -% -% Dynare is distributed in the hope that it will be useful, -% but WITHOUT ANY WARRANTY; without even the implied warranty of -% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -% GNU General Public License for more details. -% -% You should have received a copy of the GNU General Public License -% along with Dynare. If not, see . - -top_test_dir = getenv('TOP_TEST_DIR'); -addpath([top_test_dir filesep 'utils']); -addpath([top_test_dir filesep '..' filesep 'matlab']); - -% Test Dynare Version -if ~strcmp(dynare_version(), getenv('DYNARE_VERSION')) - error('Incorrect version of Dynare is being tested') -end - -% Test MOD files listed in Makefile.am -[modfile, name] = strtok(getenv('FILESTEM')); -[directory, testfile, ext] = fileparts([top_test_dir '/' modfile]); -cd(directory); - -disp(''); -disp(['*** TESTING: ' modfile ' ***']); - -tic; -save(['wsMat' testfile '.mat']); -try - dynare([testfile ext], 'console') - testFailed = false; -catch exception - printMakeCheckMatlabErrMsg(strtok(getenv('FILESTEM')), exception); - testFailed = true; -end -top_test_dir = getenv('TOP_TEST_DIR'); -[modfile, name] = strtok(getenv('FILESTEM')); -[directory, testfile, ext] = fileparts([top_test_dir '/' modfile]); -load(['wsMat' testfile '.mat']); -ecput = toc; -delete(['wsMat' testfile '.mat']); - -cd(top_test_dir); -name = strtok(getenv('FILESTEM')); -fid = fopen([name '.m.trs'], 'w'); -if fid < 0 - wd = pwd - filestep = getenv('FILESTEM') - error(['ERROR: problem opening file ' name '.m.trs for writing....']); -end -if testFailed - fprintf(fid,':test-result: FAIL\n'); - fprintf(fid,':number-tests: 1\n'); - fprintf(fid,':number-failed-tests: 1\n'); - fprintf(fid,':list-of-failed-tests: %s\n', [name '.mod']); -else - fprintf(fid,':test-result: PASS\n'); - fprintf(fid,':number-tests: 1\n'); - fprintf(fid,':number-failed-tests: 0\n'); - fprintf(fid,':list-of-passed-tests: %s\n', [name '.mod']); -end -fprintf(fid,':elapsed-time: %f\n', ecput); -fclose(fid); -warning off -exit diff --git a/tests/run_test_octave.m b/tests/run_test_octave.m deleted file mode 100644 index 29495cae2..000000000 --- a/tests/run_test_octave.m +++ /dev/null @@ -1,76 +0,0 @@ -## Copyright © 2009-2023 Dynare Team -## -## This file is part of Dynare. -## -## Dynare is free software: you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation, either version 3 of the License, or -## (at your option) any later version. -## -## Dynare is distributed in the hope that it will be useful, -## but WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -## GNU General Public License for more details. -## -## You should have received a copy of the GNU General Public License -## along with Dynare. If not, see . - -## Implementation notes: -## -## Before every call to Dynare, the contents of the workspace is saved in -## 'wsOct', and reloaded after Dynare has finished (this is necessary since -## Dynare does a 'clear -all'). - -top_test_dir = getenv('TOP_TEST_DIR'); -addpath([top_test_dir filesep 'utils']); -addpath([top_test_dir filesep '..' filesep 'matlab']); - -load_octave_packages - -## Test Dynare Version -if !strcmp(dynare_version(), getenv("DYNARE_VERSION")) - error("Incorrect version of Dynare is being tested") -endif - -## Test MOD files listed in Makefile.am -name = getenv("FILESTEM"); -[directory, testfile, ext] = fileparts([top_test_dir '/' name]); -cd(directory); - -printf("\n*** TESTING: %s ***\n", name); - -tic; -save(['wsOct' testfile '.mat']); -try - dynare([testfile ext]) - testFailed = false; -catch - printMakeCheckOctaveErrMsg(getenv("FILESTEM"), lasterror); - testFailed = true; -end_try_catch -top_test_dir = getenv('TOP_TEST_DIR'); -name = getenv("FILESTEM"); -[directory, testfile, ext] = fileparts([top_test_dir '/' name]); -load(['wsOct' testfile '.mat']); -ecput = toc; -delete(['wsOct' testfile '.mat']); - -cd(top_test_dir); -fid = fopen([name '.o.trs'], 'w+'); -if testFailed - fprintf(fid,':test-result: FAIL\n'); - fprintf(fid,':number-tests: 1\n'); - fprintf(fid,':number-failed-tests: 1\n'); - fprintf(fid,':list-of-failed-tests: %s\n', [name '.mod']); -else - fprintf(fid,':test-result: PASS\n'); - fprintf(fid,':number-tests: 1\n'); - fprintf(fid,':number-failed-tests: 0\n'); - fprintf(fid,':list-of-passed-tests: %s\n', [name '.mod']); -end -fprintf(fid,':elapsed-time: %f\n', ecput); -fclose(fid); - -## Local variables: -## mode: Octave -## End: diff --git a/mex/build/matlab/mex.def b/windows/mex.def similarity index 100% rename from mex/build/matlab/mex.def rename to windows/mex.def