source: branches/dev-5819/Makefile.in @ 13799

Last change on this file since 13799 was 13799, checked in by randersson, 7 weeks ago

#5819 Removed old echo "..."

File size: 70.0 KB
Line 
1# Makefile.in generated by automake 1.11.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008, 2009  Free Software Foundation,
6# Inc.
7# This Makefile.in is free software; the Free Software Foundation
8# gives unlimited permission to copy and/or distribute it,
9# with or without modifications, as long as this notice is preserved.
10
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14# PARTICULAR PURPOSE.
15
16@SET_MAKE@
17
18#
19#    Copyright (C) 2009 Modelon AB
20#
21#    This program is free software: you can redistribute it and/or modify
22#    it under the terms of the Common Public License as published by
23#    IBM, version 1.0 of the License.
24#
25#    This program is distributed in the hope that it will be useful,
26#    but WITHOUT ANY WARRANTY. See the Common Public License for more details.
27#
28#    You should have received a copy of the Common Public License
29#    along with this program.  If not, see
30#     <http://www.ibm.com/developerworks/library/os-cpl.html/>.
31VPATH = @srcdir@
32pkgdatadir = $(datadir)/@PACKAGE@
33pkgincludedir = $(includedir)/@PACKAGE@
34pkglibdir = $(libdir)/@PACKAGE@
35pkglibexecdir = $(libexecdir)/@PACKAGE@
36am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
37install_sh_DATA = $(install_sh) -c -m 644
38install_sh_PROGRAM = $(install_sh) -c
39install_sh_SCRIPT = $(install_sh) -c
40INSTALL_HEADER = $(INSTALL_DATA)
41transform = $(program_transform_name)
42NORMAL_INSTALL = :
43PRE_INSTALL = :
44POST_INSTALL = :
45NORMAL_UNINSTALL = :
46PRE_UNINSTALL = :
47POST_UNINSTALL = :
48build_triplet = @build@
49host_triplet = @host@
50@PYTHON_ENABLED_TRUE@am__append_1 = Python
51subdir = .
52DIST_COMMON = $(am__configure_deps) $(srcdir)/Makefile.am \
53        $(srcdir)/Makefile.in $(srcdir)/config.h.in \
54        $(srcdir)/jm_tests.in \
55        $(top_srcdir)/Python/src/required_defaults.py.in \
56        $(top_srcdir)/configure INSTALL config.guess config.sub \
57        depcomp install-sh ltmain.sh missing
58ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
59am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
60        $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
61        $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
62        $(top_srcdir)/configure.ac
63am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
64        $(ACLOCAL_M4)
65am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
66 configure.lineno config.status.lineno
67mkinstalldirs = $(install_sh) -d
68CONFIG_HEADER = config.h
69CONFIG_CLEAN_FILES = jm_tests Python/src/required_defaults.py
70CONFIG_CLEAN_VPATH_FILES =
71SOURCES =
72DIST_SOURCES =
73RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
74        html-recursive info-recursive install-data-recursive \
75        install-dvi-recursive install-exec-recursive \
76        install-html-recursive install-info-recursive \
77        install-pdf-recursive install-ps-recursive install-recursive \
78        installcheck-recursive installdirs-recursive pdf-recursive \
79        ps-recursive uninstall-recursive
80RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
81  distclean-recursive maintainer-clean-recursive
82AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
83        $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
84        distdir dist dist-all distcheck
85ETAGS = etags
86CTAGS = ctags
87DIST_SUBDIRS = ThirdParty/winpthreads ThirdParty/SuperLU \
88        ThirdParty/Sundials ThirdParty/Minpack ThirdParty/Blas \
89        ThirdParty/Lapack ThirdParty/MSL external/FMILibrary \
90        RuntimeLibrary Python
91DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
92distdir = $(PACKAGE)-$(VERSION)
93top_distdir = $(distdir)
94am__remove_distdir = \
95  { test ! -d "$(distdir)" \
96    || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
97         && rm -fr "$(distdir)"; }; }
98am__relativize = \
99  dir0=`pwd`; \
100  sed_first='s,^\([^/]*\)/.*$$,\1,'; \
101  sed_rest='s,^[^/]*/*,,'; \
102  sed_last='s,^.*/\([^/]*\)$$,\1,'; \
103  sed_butlast='s,/*[^/]*$$,,'; \
104  while test -n "$$dir1"; do \
105    first=`echo "$$dir1" | sed -e "$$sed_first"`; \
106    if test "$$first" != "."; then \
107      if test "$$first" = ".."; then \
108        dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
109        dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
110      else \
111        first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
112        if test "$$first2" = "$$first"; then \
113          dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
114        else \
115          dir2="../$$dir2"; \
116        fi; \
117        dir0="$$dir0"/"$$first"; \
118      fi; \
119    fi; \
120    dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
121  done; \
122  reldir="$$dir2"
123DIST_ARCHIVES = $(distdir).tar.gz
124GZIP_ENV = --best
125distuninstallcheck_listfiles = find . -type f -print
126distcleancheck_listfiles = find . -type f -print
127ACLOCAL = @ACLOCAL@
128AMTAR = @AMTAR@
129ANT = @ANT@
130ANT_OPTS = @ANT_OPTS@
131AR = @AR@
132AS = @AS@
133AUTOCONF = @AUTOCONF@
134AUTOHEADER = @AUTOHEADER@
135AUTOMAKE = @AUTOMAKE@
136AWK = @AWK@
137CASADI_HOME = $(abs_top_srcdir)/ThirdParty/CasADi/CasADi
138CC = @CC@
139CCDEPMODE = @CCDEPMODE@
140CFLAGS = @CFLAGS@
141CMAKE_PYTHON64_INCLUDE = @CMAKE_PYTHON64_INCLUDE@
142CMAKE_PYTHON64_LIB = @CMAKE_PYTHON64_LIB@
143CMAKE_PYTHON_INCLUDE = @CMAKE_PYTHON_INCLUDE@
144CMAKE_PYTHON_LIB = @CMAKE_PYTHON_LIB@
145CP = @CP@
146CPP = @CPP@
147CPPFLAGS = @CPPFLAGS@
148CURR_DIR = @CURR_DIR@
149CXX = @CXX@
150CXXCPP = @CXXCPP@
151CXXDEPMODE = @CXXDEPMODE@
152CXXFLAGS = @CXXFLAGS@
153CYGPATH_W = @CYGPATH_W@
154DEFS = @DEFS@
155DEPDIR = @DEPDIR@
156DLLTOOL = @DLLTOOL@
157DSYMUTIL = @DSYMUTIL@
158DUMPBIN = @DUMPBIN@
159ECHO_C = @ECHO_C@
160ECHO_N = @ECHO_N@
161ECHO_T = @ECHO_T@
162EGREP = @EGREP@
163EXEEXT = @EXEEXT@
164F77 = @F77@
165FFLAGS = @FFLAGS@
166FGREP = @FGREP@
167GREP = @GREP@
168INSTALL = @INSTALL@
169INSTALL_DATA = @INSTALL_DATA@
170INSTALL_PROGRAM = @INSTALL_PROGRAM@
171INSTALL_SCRIPT = @INSTALL_SCRIPT@
172INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
173IPOPT64_HOME = @IPOPT64_HOME@
174IPOPT64_INC = @IPOPT64_INC@
175IPOPT64_LIB = @IPOPT64_LIB@
176IPOPT_HOME = @IPOPT_HOME@
177IPOPT_INC = @IPOPT_INC@
178IPOPT_LIB = @IPOPT_LIB@
179JVMDLL64_HOME = @JVMDLL64_HOME@
180JVMDLL_HOME = @JVMDLL_HOME@
181LD = @LD@
182LDFLAGS = @LDFLAGS@
183LIBOBJS = @LIBOBJS@
184LIBS = @LIBS@
185LIBTOOL = @LIBTOOL@
186LIPO = @LIPO@
187LN_S = @LN_S@
188LTLIBOBJS = @LTLIBOBJS@
189MAKEINFO = @MAKEINFO@
190MANIFEST_TOOL = @MANIFEST_TOOL@
191MINGW_HOME = @MINGW_HOME@
192MINPACK_HOME = @MINPACK_HOME@
193MKDIR_P = @MKDIR_P@
194NM = @NM@
195NMEDIT = @NMEDIT@
196OBJDUMP = @OBJDUMP@
197OBJEXT = @OBJEXT@
198OPENMP_CFLAGS = @OPENMP_CFLAGS@
199ORIG_PATH = @ORIG_PATH@
200ORIG_PYTHON_HOME = @ORIG_PYTHON_HOME@
201OTOOL = @OTOOL@
202OTOOL64 = @OTOOL64@
203PACKAGE = @PACKAGE@
204PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
205PACKAGE_NAME = @PACKAGE_NAME@
206PACKAGE_STRING = @PACKAGE_STRING@
207PACKAGE_TARNAME = @PACKAGE_TARNAME@
208PACKAGE_URL = @PACKAGE_URL@
209PACKAGE_VERSION = @PACKAGE_VERSION@
210PATH_SEPARATOR = @PATH_SEPARATOR@
211PYTHON64_HOME = @PYTHON64_HOME@
212PYTHON_HOME = @PYTHON_HOME@
213RANLIB = @RANLIB@
214REQUIRE_BEAVER_PATH = @REQUIRE_BEAVER_PATH@
215REQUIRE_COMPILER_JARS = @REQUIRE_COMPILER_JARS@
216REQUIRE_IPOPT_HOME = @REQUIRE_IPOPT_HOME@
217REQUIRE_JPYPE_JVM = @REQUIRE_JPYPE_JVM@
218REQUIRE_JVM_ARGS = @REQUIRE_JVM_ARGS@
219REQUIRE_MINGW_HOME = @REQUIRE_MINGW_HOME@
220REQUIRE_MODELICAPATH = @REQUIRE_MODELICAPATH@
221REQUIRE_OPTIMICA_COMPILER = @REQUIRE_OPTIMICA_COMPILER@
222REQUIRE_SUNDIALS_HOME = @REQUIRE_SUNDIALS_HOME@
223SED = @SED@
224SEP = @SEP@
225SET_MAKE = @SET_MAKE@
226SHAREDEXT = @SHAREDEXT@
227SHARED_LDFLAGS = @SHARED_LDFLAGS@
228SHELL = @SHELL@
229STRIP = @STRIP@
230SUNDIALS_HOME = @SUNDIALS_HOME@
231VERSION = @VERSION@
232WITH_CASADI = @WITH_CASADI@
233_JAVA_HOME_ = @_JAVA_HOME_@
234abs_builddir = @abs_builddir@
235abs_srcdir = @abs_srcdir@
236abs_top_builddir = @abs_top_builddir@
237abs_top_srcdir = @abs_top_srcdir@
238ac_ct_AR = @ac_ct_AR@
239ac_ct_CC = @ac_ct_CC@
240ac_ct_CXX = @ac_ct_CXX@
241ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
242ac_ct_F77 = @ac_ct_F77@
243am__include = @am__include@
244am__leading_dot = @am__leading_dot@
245am__quote = @am__quote@
246am__tar = @am__tar@
247am__untar = @am__untar@
248bindir = @bindir@
249build = @build@
250build_alias = @build_alias@
251build_cpu = @build_cpu@
252build_os = @build_os@
253build_vendor = @build_vendor@
254builddir = @builddir@
255datadir = @datadir@
256datarootdir = @datarootdir@
257docdir = @docdir@
258dvidir = @dvidir@
259exec_prefix = @exec_prefix@
260host = @host@
261host_alias = @host_alias@
262host_cpu = @host_cpu@
263host_os = @host_os@
264host_vendor = @host_vendor@
265htmldir = @htmldir@
266includedir = @includedir@
267infodir = @infodir@
268install_sh = @install_sh@
269libdir = @libdir@
270libexecdir = @libexecdir@
271localedir = @localedir@
272localstatedir = @localstatedir@
273mandir = @mandir@
274mkdir_p = @mkdir_p@
275oldincludedir = @oldincludedir@
276pdfdir = @pdfdir@
277prefix = @prefix@
278program_transform_name = @program_transform_name@
279psdir = @psdir@
280sbindir = @sbindir@
281sharedstatedir = @sharedstatedir@
282srcdir = @srcdir@
283sysconfdir = @sysconfdir@
284target_alias = @target_alias@
285top_build_prefix = @top_build_prefix@
286top_builddir = @top_builddir@
287top_srcdir = @top_srcdir@
288AUTOMAKE_OPTIONS = foreign
289ACLOCAL_AMFLAGS = -I m4
290SUBDIRS = ThirdParty/winpthreads ThirdParty/SuperLU \
291        ThirdParty/Sundials ThirdParty/Minpack ThirdParty/Blas \
292        ThirdParty/Lapack ThirdParty/MSL external/FMILibrary \
293        RuntimeLibrary $(am__append_1)
294assimulo_install_dir = $(abs_builddir)/Assimulo_install
295pymodelica_install_dir = $(abs_builddir)/pymodelica_install
296pyfmi_install_dir = $(abs_builddir)/PyFMI_install
297pyjmi_install_dir = $(abs_builddir)/PyJMI_install
298assimulo_install_dir64 = $(abs_builddir)/Assimulo_install64
299pymodelica_install_dir64 = $(abs_builddir)/pymodelica_install64
300pyfmi_install_dir64 = $(abs_builddir)/PyFMI_install64
301pyjmi_install_dir64 = $(abs_builddir)/PyJMI_install64
302assimulo_build_dir = $(abs_builddir)/Assimulo_build
303pymodelica_build_dir = $(abs_builddir)/pymodelica_build
304pyfmi_build_dir = $(abs_builddir)/PyFMI_build
305pyjmi_build_dir = $(abs_builddir)/PyJMI_build
306assimulo_build_dir64 = $(abs_builddir)/Assimulo_build64
307pymodelica_build_dir64 = $(abs_builddir)/pymodelica_build64
308pyfmi_build_dir64 = $(abs_builddir)/PyFMI_build64
309pyjmi_build_dir64 = $(abs_builddir)/PyJMI_build64
310assimulo_src_dir = $(abs_top_srcdir)/external/Assimulo
311bindistdir = JModelica.org-$(VERSION)-bin
312MC_INTERFACE = $(abs_top_srcdir)/ModelicaCasADiInterface
313MC_SRC = $(JAVA_CASADI_BASE_DIR)/ModelicaCompilerCasADi
314OC_SRC = $(JAVA_CASADI_BASE_DIR)/OptimicaCompilerCasADi
315MC_SRC_SWIG = $(abs_top_srcdir)/Compiler/ModelicaCompilerCasADi/src/swig
316MC_CASADI_BUILD = $(abs_builddir)/ModelicaCompilerCasADi
317OC_CASADI_BUILD = $(abs_builddir)/OptimicaCompilerCasADi
318
319# The modelica casadi interface is built into a build folder
320MC_BUILD = $(abs_builddir)/ModelicaCasADiInterfaceBuild
321MC_BUILD64 = $(abs_builddir)/ModelicaCasADiInterfaceBuild64
322# Jars from the modified modelica and optimica compilers are put into the JModelica folder
323MC_COMPILERS_DIR = $(MC_BUILD)/JModelica.org
324MC_LIB = $(DESTDIR)$(prefix)/lib/casadi_interface
325MC_LIB64 = $(DESTDIR)$(prefix)/lib/casadi_interface64
326CASADI_BUILD_DIR = $(abs_builddir)/casadi_build
327CASADI_BUILD_DIR64 = $(abs_builddir)/casadi_build64
328SWIGCHECK_BUILD_DIR = $(abs_builddir)/swig_check
329SWIGCHECK_BUILD_DIR64 = $(abs_builddir)/swig_check64
330CASADI_PYTHON_INST_DIR = $(abs_builddir)/casadi_install
331CASADI_INST_DIR = $(prefix)/ThirdParty/CasADi
332CASADI_PLUGIN_INST_DIR = $(CASADI_INST_DIR)/lib
333CASADI_PYTHON_INST_DIR64 = $(abs_builddir)/casadi_install64
334CASADI_INST_DIR64 = $(prefix)/ThirdParty/CasADi64
335CASADI_PLUGIN_INST_DIR64 = $(CASADI_INST_DIR64)/lib
336CMAKE_CASADI_CXX_FLAG = -m32
337CMAKE_CASADI_COMPILER_ARGS = -m32 -mincoming-stack-boundary=2
338CMAKE_CASADI_CXX_FLAG64 = -m64
339CMAKE_CASADI_COMPILER_ARGS64 = -m64 -fpermissive
340@BUILD_WITH_PYTHON32_FALSE@BUILD_WITH_PYTHON32_ARG =
341@BUILD_WITH_PYTHON32_TRUE@BUILD_WITH_PYTHON32_ARG = --force-32bit="true" --extra-c-flags="-mincoming-stack-boundary=2"
342@BUILD_WITH_PYTHON32_FALSE@DEP_SUFFIX = 64
343@BUILD_WITH_PYTHON32_TRUE@DEP_SUFFIX =
344@BUILD_WITH_PYTHON32_FALSE@TMP_CASADI_BUILD_DIR = $(CASADI_BUILD_DIR64)
345@BUILD_WITH_PYTHON32_TRUE@TMP_CASADI_BUILD_DIR = $(CASADI_BUILD_DIR)
346@BUILD_WITH_PYTHON32_FALSE@TMP_SWIGCHECK_BUILD_DIR = $(SWIGCHECK_BUILD_DIR64)
347@BUILD_WITH_PYTHON32_TRUE@TMP_SWIGCHECK_BUILD_DIR = $(SWIGCHECK_BUILD_DIR)
348@BUILD_WITH_PYTHON32_FALSE@TMP_CMAKE_CASADI_CXX_FLAG = $(CMAKE_CASADI_CXX_FLAG64)
349@BUILD_WITH_PYTHON32_TRUE@TMP_CMAKE_CASADI_CXX_FLAG = $(CMAKE_CASADI_CXX_FLAG)
350@BUILD_WITH_PYTHON32_FALSE@TMP_CMAKE_CASADI_COMPILER_ARGS = $(CMAKE_CASADI_COMPILER_ARGS64)
351@BUILD_WITH_PYTHON32_TRUE@TMP_CMAKE_CASADI_COMPILER_ARGS = $(CMAKE_CASADI_COMPILER_ARGS)
352
353# note we set directories to those without 64bit suffix
354@BUILD_WITH_PYTHON32_FALSE@TMP_CASADI_INST_DIR = $(CASADI_INST_DIR)
355@BUILD_WITH_PYTHON32_TRUE@TMP_CASADI_INST_DIR = $(CASADI_INST_DIR)
356@BUILD_WITH_PYTHON32_FALSE@TMP_CASADI_PLUGIN_INST_DIR = $(CASADI_PLUGIN_INST_DIR)
357@BUILD_WITH_PYTHON32_TRUE@TMP_CASADI_PLUGIN_INST_DIR = $(CASADI_PLUGIN_INST_DIR)
358@BUILD_WITH_PYTHON32_FALSE@TMP_CASADI_PYTHON_INST_DIR = $(CASADI_PYTHON_INST_DIR)
359@BUILD_WITH_PYTHON32_TRUE@TMP_CASADI_PYTHON_INST_DIR = $(CASADI_PYTHON_INST_DIR)
360@BUILD_WITH_PYTHON32_FALSE@TMP_MC_LIB = $(MC_LIB64)
361@BUILD_WITH_PYTHON32_TRUE@TMP_MC_LIB = $(MC_LIB)
362@BUILD_WITH_PYTHON32_FALSE@TMP_MC_BUILD = $(MC_BUILD64)
363@BUILD_WITH_PYTHON32_TRUE@TMP_MC_BUILD = $(MC_BUILD)
364
365#CMAKE_PYTHON_INCLUDE=$(CMAKE_PYTHON64_INCLUDE)
366#CMAKE_PYTHON_LIB=$(CMAKE_PYTHON_LIB64)
367@BUILD_WITH_PYTHON32_FALSE@TMP_CMAKE_CASADI_ARGS = $(CMAKE_CASADI_ARGS64)
368@BUILD_WITH_PYTHON32_TRUE@TMP_CMAKE_CASADI_ARGS = $(CMAKE_CASADI_ARGS)
369@NUMPY_NO_MSVCR_FALSE@NUMPY_NO_MSVCR_ARG =
370@NUMPY_NO_MSVCR_TRUE@NUMPY_NO_MSVCR_ARG = --no-msvcr="true"
371
372# Hooks for extra build or install actions. Must be empty or the path of a shell script to execute.
373# Both scripts will get the source directory as the first argument and the install directory as the second.
374BUILD_EXTRA =
375INSTALL_EXTRA =
376INSTALL_EXTRA_CASADI =
377
378# Paths for Java build
379JAVA_BUILD_DIR = $(abs_builddir)/java
380COMPILER_DIR = $(abs_top_srcdir)/Compiler
381JAVA_MC_ANT_FILE = $(COMPILER_DIR)/ModelicaCompiler/build.xml
382JAVA_OC_ANT_FILE = $(COMPILER_DIR)/OptimicaCompiler/build.xml
383JAVA_CASADI_BASE_DIR = $(COMPILER_DIR)
384JAVA_CASADI_BUILD_DIR = $(abs_builddir)
385JAVA_MC_CASADI_ANT_FILE = $(COMPILER_DIR)/ModelicaCompilerCasADi/build.xml
386JAVA_OC_CASADI_ANT_FILE = $(COMPILER_DIR)/OptimicaCompilerCasADi/build.xml
387ant_output_jars = \
388        $(JAVA_BUILD_DIR)/bin/ModelicaCompiler.jar \
389        $(JAVA_BUILD_DIR)/bin/util.jar \
390        $(JAVA_BUILD_DIR)/bin/OptimicaCompiler.jar \
391        $(JAVA_BUILD_DIR)/bin/separateProcess.jar
392
393ant_output_options = $(JAVA_BUILD_DIR)/src/build/DefaultOptions.xml
394BEAVER_INSTALL_DIR = $(DESTDIR)$(prefix)/ThirdParty/Beaver
395BEAVER_SOURCE = $(abs_top_srcdir)/Compiler/ModelicaFrontEnd/ThirdParty/Beaver
396all: config.h
397        $(MAKE) $(AM_MAKEFLAGS) all-recursive
398
399.SUFFIXES:
400am--refresh:
401        @:
402$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
403        @for dep in $?; do \
404          case '$(am__configure_deps)' in \
405            *$$dep*) \
406              echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
407              $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
408                && exit 0; \
409              exit 1;; \
410          esac; \
411        done; \
412        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
413        $(am__cd) $(top_srcdir) && \
414          $(AUTOMAKE) --foreign Makefile
415.PRECIOUS: Makefile
416Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
417        @case '$?' in \
418          *config.status*) \
419            echo ' $(SHELL) ./config.status'; \
420            $(SHELL) ./config.status;; \
421          *) \
422            echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
423            cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
424        esac;
425
426$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
427        $(SHELL) ./config.status --recheck
428
429$(top_srcdir)/configure:  $(am__configure_deps)
430        $(am__cd) $(srcdir) && $(AUTOCONF)
431$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
432        $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
433$(am__aclocal_m4_deps):
434
435config.h: stamp-h1
436        @if test ! -f $@; then \
437          rm -f stamp-h1; \
438          $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
439        else :; fi
440
441stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
442        @rm -f stamp-h1
443        cd $(top_builddir) && $(SHELL) ./config.status config.h
444$(srcdir)/config.h.in:  $(am__configure_deps)
445        ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
446        rm -f stamp-h1
447        touch $@
448
449distclean-hdr:
450        -rm -f config.h stamp-h1
451jm_tests: $(top_builddir)/config.status $(srcdir)/jm_tests.in
452        cd $(top_builddir) && $(SHELL) ./config.status $@
453Python/src/required_defaults.py: $(top_builddir)/config.status $(top_srcdir)/Python/src/required_defaults.py.in
454        cd $(top_builddir) && $(SHELL) ./config.status $@
455
456mostlyclean-libtool:
457        -rm -f *.lo
458
459clean-libtool:
460        -rm -rf .libs _libs
461
462distclean-libtool:
463        -rm -f libtool config.lt
464
465# This directory's subdirectories are mostly independent; you can cd
466# into them and run `make' without going through this Makefile.
467# To change the values of `make' variables: instead of editing Makefiles,
468# (1) if the variable is set in `config.status', edit `config.status'
469#     (which will cause the Makefiles to be regenerated when you run `make');
470# (2) otherwise, pass the desired values on the `make' command line.
471$(RECURSIVE_TARGETS):
472        @fail= failcom='exit 1'; \
473        for f in x $$MAKEFLAGS; do \
474          case $$f in \
475            *=* | --[!k]*);; \
476            *k*) failcom='fail=yes';; \
477          esac; \
478        done; \
479        dot_seen=no; \
480        target=`echo $@ | sed s/-recursive//`; \
481        list='$(SUBDIRS)'; for subdir in $$list; do \
482          echo "Making $$target in $$subdir"; \
483          if test "$$subdir" = "."; then \
484            dot_seen=yes; \
485            local_target="$$target-am"; \
486          else \
487            local_target="$$target"; \
488          fi; \
489          ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
490          || eval $$failcom; \
491        done; \
492        if test "$$dot_seen" = "no"; then \
493          $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
494        fi; test -z "$$fail"
495
496$(RECURSIVE_CLEAN_TARGETS):
497        @fail= failcom='exit 1'; \
498        for f in x $$MAKEFLAGS; do \
499          case $$f in \
500            *=* | --[!k]*);; \
501            *k*) failcom='fail=yes';; \
502          esac; \
503        done; \
504        dot_seen=no; \
505        case "$@" in \
506          distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
507          *) list='$(SUBDIRS)' ;; \
508        esac; \
509        rev=''; for subdir in $$list; do \
510          if test "$$subdir" = "."; then :; else \
511            rev="$$subdir $$rev"; \
512          fi; \
513        done; \
514        rev="$$rev ."; \
515        target=`echo $@ | sed s/-recursive//`; \
516        for subdir in $$rev; do \
517          echo "Making $$target in $$subdir"; \
518          if test "$$subdir" = "."; then \
519            local_target="$$target-am"; \
520          else \
521            local_target="$$target"; \
522          fi; \
523          ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
524          || eval $$failcom; \
525        done && test -z "$$fail"
526tags-recursive:
527        list='$(SUBDIRS)'; for subdir in $$list; do \
528          test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
529        done
530ctags-recursive:
531        list='$(SUBDIRS)'; for subdir in $$list; do \
532          test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
533        done
534
535ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
536        list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
537        unique=`for i in $$list; do \
538            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
539          done | \
540          $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
541              END { if (nonempty) { for (i in files) print i; }; }'`; \
542        mkid -fID $$unique
543tags: TAGS
544
545TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
546                $(TAGS_FILES) $(LISP)
547        set x; \
548        here=`pwd`; \
549        if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
550          include_option=--etags-include; \
551          empty_fix=.; \
552        else \
553          include_option=--include; \
554          empty_fix=; \
555        fi; \
556        list='$(SUBDIRS)'; for subdir in $$list; do \
557          if test "$$subdir" = .; then :; else \
558            test ! -f $$subdir/TAGS || \
559              set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
560          fi; \
561        done; \
562        list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
563        unique=`for i in $$list; do \
564            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
565          done | \
566          $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
567              END { if (nonempty) { for (i in files) print i; }; }'`; \
568        shift; \
569        if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
570          test -n "$$unique" || unique=$$empty_fix; \
571          if test $$# -gt 0; then \
572            $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
573              "$$@" $$unique; \
574          else \
575            $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
576              $$unique; \
577          fi; \
578        fi
579ctags: CTAGS
580CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
581                $(TAGS_FILES) $(LISP)
582        list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
583        unique=`for i in $$list; do \
584            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
585          done | \
586          $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
587              END { if (nonempty) { for (i in files) print i; }; }'`; \
588        test -z "$(CTAGS_ARGS)$$unique" \
589          || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
590             $$unique
591
592GTAGS:
593        here=`$(am__cd) $(top_builddir) && pwd` \
594          && $(am__cd) $(top_srcdir) \
595          && gtags -i $(GTAGS_ARGS) "$$here"
596
597distclean-tags:
598        -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
599
600distdir: $(DISTFILES)
601        $(am__remove_distdir)
602        test -d "$(distdir)" || mkdir "$(distdir)"
603        @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
604        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
605        list='$(DISTFILES)'; \
606          dist_files=`for file in $$list; do echo $$file; done | \
607          sed -e "s|^$$srcdirstrip/||;t" \
608              -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
609        case $$dist_files in \
610          */*) $(MKDIR_P) `echo "$$dist_files" | \
611                           sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
612                           sort -u` ;; \
613        esac; \
614        for file in $$dist_files; do \
615          if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
616          if test -d $$d/$$file; then \
617            dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
618            if test -d "$(distdir)/$$file"; then \
619              find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
620            fi; \
621            if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
622              cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
623              find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
624            fi; \
625            cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
626          else \
627            test -f "$(distdir)/$$file" \
628            || cp -p $$d/$$file "$(distdir)/$$file" \
629            || exit 1; \
630          fi; \
631        done
632        @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
633          if test "$$subdir" = .; then :; else \
634            test -d "$(distdir)/$$subdir" \
635            || $(MKDIR_P) "$(distdir)/$$subdir" \
636            || exit 1; \
637          fi; \
638        done
639        @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
640          if test "$$subdir" = .; then :; else \
641            dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
642            $(am__relativize); \
643            new_distdir=$$reldir; \
644            dir1=$$subdir; dir2="$(top_distdir)"; \
645            $(am__relativize); \
646            new_top_distdir=$$reldir; \
647            echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
648            echo "     am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
649            ($(am__cd) $$subdir && \
650              $(MAKE) $(AM_MAKEFLAGS) \
651                top_distdir="$$new_top_distdir" \
652                distdir="$$new_distdir" \
653                am__remove_distdir=: \
654                am__skip_length_check=: \
655                am__skip_mode_fix=: \
656                distdir) \
657              || exit 1; \
658          fi; \
659        done
660        -test -n "$(am__skip_mode_fix)" \
661        || find "$(distdir)" -type d ! -perm -755 \
662                -exec chmod u+rwx,go+rx {} \; -o \
663          ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
664          ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
665          ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
666        || chmod -R a+r "$(distdir)"
667dist-gzip: distdir
668        tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
669        $(am__remove_distdir)
670
671dist-bzip2: distdir
672        tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
673        $(am__remove_distdir)
674
675dist-lzma: distdir
676        tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
677        $(am__remove_distdir)
678
679dist-xz: distdir
680        tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
681        $(am__remove_distdir)
682
683dist-tarZ: distdir
684        tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
685        $(am__remove_distdir)
686
687dist-shar: distdir
688        shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
689        $(am__remove_distdir)
690
691dist-zip: distdir
692        -rm -f $(distdir).zip
693        zip -rq $(distdir).zip $(distdir)
694        $(am__remove_distdir)
695
696dist dist-all: distdir
697        tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
698        $(am__remove_distdir)
699
700# This target untars the dist file and tries a VPATH configuration.  Then
701# it guarantees that the distribution is self-contained by making another
702# tarfile.
703distcheck: dist
704        case '$(DIST_ARCHIVES)' in \
705        *.tar.gz*) \
706          GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
707        *.tar.bz2*) \
708          bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
709        *.tar.lzma*) \
710          lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
711        *.tar.xz*) \
712          xz -dc $(distdir).tar.xz | $(am__untar) ;;\
713        *.tar.Z*) \
714          uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
715        *.shar.gz*) \
716          GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
717        *.zip*) \
718          unzip $(distdir).zip ;;\
719        esac
720        chmod -R a-w $(distdir); chmod a+w $(distdir)
721        mkdir $(distdir)/_build
722        mkdir $(distdir)/_inst
723        chmod a-w $(distdir)
724        test -d $(distdir)/_build || exit 0; \
725        dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
726          && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
727          && am__cwd=`pwd` \
728          && $(am__cd) $(distdir)/_build \
729          && ../configure --srcdir=.. --prefix="$$dc_install_base" \
730            $(DISTCHECK_CONFIGURE_FLAGS) \
731          && $(MAKE) $(AM_MAKEFLAGS) \
732          && $(MAKE) $(AM_MAKEFLAGS) dvi \
733          && $(MAKE) $(AM_MAKEFLAGS) check \
734          && $(MAKE) $(AM_MAKEFLAGS) install \
735          && $(MAKE) $(AM_MAKEFLAGS) installcheck \
736          && $(MAKE) $(AM_MAKEFLAGS) uninstall \
737          && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
738                distuninstallcheck \
739          && chmod -R a-w "$$dc_install_base" \
740          && ({ \
741               (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
742               && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
743               && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
744               && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
745                    distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
746              } || { rm -rf "$$dc_destdir"; exit 1; }) \
747          && rm -rf "$$dc_destdir" \
748          && $(MAKE) $(AM_MAKEFLAGS) dist \
749          && rm -rf $(DIST_ARCHIVES) \
750          && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
751          && cd "$$am__cwd" \
752          || exit 1
753        $(am__remove_distdir)
754        @(echo "$(distdir) archives ready for distribution: "; \
755          list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
756          sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
757distuninstallcheck:
758        @$(am__cd) '$(distuninstallcheck_dir)' \
759        && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
760           || { echo "ERROR: files left after uninstall:" ; \
761                if test -n "$(DESTDIR)"; then \
762                  echo "  (check DESTDIR support)"; \
763                fi ; \
764                $(distuninstallcheck_listfiles) ; \
765                exit 1; } >&2
766distcleancheck: distclean
767        @if test '$(srcdir)' = . ; then \
768          echo "ERROR: distcleancheck can only run from a VPATH build" ; \
769          exit 1 ; \
770        fi
771        @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
772          || { echo "ERROR: files left in build directory after distclean:" ; \
773               $(distcleancheck_listfiles) ; \
774               exit 1; } >&2
775check-am: all-am
776check: check-recursive
777all-am: Makefile config.h all-local
778installdirs: installdirs-recursive
779installdirs-am:
780install: install-recursive
781install-exec: install-exec-recursive
782install-data: install-data-recursive
783uninstall: uninstall-recursive
784
785install-am: all-am
786        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
787
788installcheck: installcheck-recursive
789install-strip:
790        $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
791          install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
792          `test -z '$(STRIP)' || \
793            echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
794mostlyclean-generic:
795
796clean-generic:
797
798distclean-generic:
799        -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
800        -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
801
802maintainer-clean-generic:
803        @echo "This command is intended for maintainers to use"
804        @echo "it deletes files that may require special tools to rebuild."
805clean: clean-recursive
806
807clean-am: clean-generic clean-libtool clean-local mostlyclean-am
808
809distclean: distclean-recursive
810        -rm -f $(am__CONFIG_DISTCLEAN_FILES)
811        -rm -f Makefile
812distclean-am: clean-am distclean-generic distclean-hdr \
813        distclean-libtool distclean-tags
814
815dvi: dvi-recursive
816
817dvi-am:
818
819html: html-recursive
820
821html-am:
822
823info: info-recursive
824
825info-am:
826
827install-data-am:
828
829install-dvi: install-dvi-recursive
830
831install-dvi-am:
832
833install-exec-am: install-exec-local
834
835install-html: install-html-recursive
836
837install-html-am:
838
839install-info: install-info-recursive
840
841install-info-am:
842
843install-man:
844
845install-pdf: install-pdf-recursive
846
847install-pdf-am:
848
849install-ps: install-ps-recursive
850
851install-ps-am:
852
853installcheck-am:
854
855maintainer-clean: maintainer-clean-recursive
856        -rm -f $(am__CONFIG_DISTCLEAN_FILES)
857        -rm -rf $(top_srcdir)/autom4te.cache
858        -rm -f Makefile
859maintainer-clean-am: distclean-am maintainer-clean-generic
860
861mostlyclean: mostlyclean-recursive
862
863mostlyclean-am: mostlyclean-generic mostlyclean-libtool
864
865pdf: pdf-recursive
866
867pdf-am:
868
869ps: ps-recursive
870
871ps-am:
872
873uninstall-am:
874
875.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
876        ctags-recursive install-am install-strip tags-recursive
877
878.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
879        all all-am all-local am--refresh check check-am clean \
880        clean-generic clean-libtool clean-local ctags ctags-recursive \
881        dist dist-all dist-bzip2 dist-gzip dist-lzma dist-shar \
882        dist-tarZ dist-xz dist-zip distcheck distclean \
883        distclean-generic distclean-hdr distclean-libtool \
884        distclean-tags distcleancheck distdir distuninstallcheck dvi \
885        dvi-am html html-am info info-am install install-am \
886        install-data install-data-am install-dvi install-dvi-am \
887        install-exec install-exec-am install-exec-local install-html \
888        install-html-am install-info install-info-am install-man \
889        install-pdf install-pdf-am install-ps install-ps-am \
890        install-strip installcheck installcheck-am installdirs \
891        installdirs-am maintainer-clean maintainer-clean-generic \
892        mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
893        ps ps-am tags tags-recursive uninstall uninstall-am
894
895
896casadi:
897@COMPILE_WITH_IPOPT_TRUE@       cd $(abs_builddir)/ThirdParty/CasADi; \
898@COMPILE_WITH_IPOPT_TRUE@       make -f Makefile  "SWIGCHECK_BUILD_DIR=$(TMP_SWIGCHECK_BUILD_DIR)" "CASADI_BUILD_DIR=$(TMP_CASADI_BUILD_DIR)" "IPOPT_HOME=$(IPOPT_HOME)" "CASADI_PYTHON_INST_DIR=${TMP_CASADI_PYTHON_INST_DIR}" "CASADI_INST_DIR=${TMP_CASADI_INST_DIR}" "CASADI_PLUGIN_INST_DIR=${TMP_CASADI_PLUGIN_INST_DIR}" "CMAKE_CASADI_ARGS=${TMP_CMAKE_CASADI_ARGS}" "CMAKE_CASADI_COMPILER_ARGS=${TMP_CMAKE_CASADI_COMPILER_ARGS}" "CMAKE_CASADI_CXX_FLAG=${TMP_CMAKE_CASADI_CXX_FLAG}" "CMAKE_PYTHON_LIB=${CMAKE_PYTHON_LIB}"
899@COMPILE_WITH_IPOPT64_TRUE@     export PATH=$(PYTHON64_HOME):$(PYTHON64_HOME)/Scripts:$(PYTHON64_HOME)/Lib:"${PATH}"; \
900@COMPILE_WITH_IPOPT64_TRUE@     export PYTHONHOME=$(PYTHON64_HOME); \
901@COMPILE_WITH_IPOPT64_TRUE@     cd $(abs_builddir)/ThirdParty/CasADi; \
902@COMPILE_WITH_IPOPT64_TRUE@     make -f Makefile  "SWIGCHECK_BUILD_DIR=$(SWIGCHECK_BUILD_DIR64)" "CASADI_BUILD_DIR=$(CASADI_BUILD_DIR64)" "IPOPT_HOME=$(IPOPT64_HOME)" "CASADI_PYTHON_INST_DIR=${CASADI_PYTHON_INST_DIR64}" "CASADI_INST_DIR=${CASADI_INST_DIR64}" "CASADI_PLUGIN_INST_DIR=${CASADI_PLUGIN_INST_DIR64}" "CMAKE_CASADI_ARGS=${CMAKE_CASADI_ARGS64}" "CMAKE_CASADI_COMPILER_ARGS=${CMAKE_CASADI_COMPILER_ARGS64}" "CMAKE_CASADI_CXX_FLAG=${CMAKE_CASADI_CXX_FLAG64}" "CMAKE_PYTHON_LIB=${CMAKE_PYTHON64_LIB}" "CMAKE_PYTHON_INCLUDE=${CMAKE_PYTHON64_INCLUDE}"
903@COMPILE_WITH_IPOPT64_TRUE@     export PYTHONHOME=$(ORIG_PYTHON_HOME); \
904@COMPILE_WITH_IPOPT64_TRUE@     export PATH="$(ORIG_PATH)";
905
906install_casadi: casadi
907@COMPILE_WITH_IPOPT_TRUE@       cd $(abs_builddir)/ThirdParty/CasADi; \
908@COMPILE_WITH_IPOPT_TRUE@       make -f Makefile install "SWIGCHECK_BUILD_DIR=$(TMP_SWIGCHECK_BUILD_DIR)" "CASADI_BUILD_DIR=$(TMP_CASADI_BUILD_DIR)" "IPOPT_HOME=$(IPOPT_HOME)"
909@COMPILE_WITH_IPOPT_TRUE@       mkdir -p $(DESTDIR)$(prefix)/Python/
910@COMPILE_WITH_IPOPT_TRUE@       cp -r $(TMP_CASADI_PYTHON_INST_DIR)/casadi $(DESTDIR)$(prefix)/Python/
911@COMPILE_WITH_IPOPT_TRUE@       cp $(TMP_CASADI_BUILD_DIR)/swig/casadi_core.py $(DESTDIR)$(prefix)/Python/casadi
912@COMPILE_WITH_IPOPT64_TRUE@     export PATH=$(PYTHON64_HOME):$(PYTHON64_HOME)/Scripts:$(PYTHON64_HOME)/Lib:"${PATH}"; \
913@COMPILE_WITH_IPOPT64_TRUE@     export PYTHONHOME=$(PYTHON64_HOME); 
914@COMPILE_WITH_IPOPT64_TRUE@     cd $(abs_builddir)/ThirdParty/CasADi; \
915@COMPILE_WITH_IPOPT64_TRUE@     make -f Makefile install "SWIGCHECK_BUILD_DIR=$(SWIGCHECK_BUILD_DIR)" "CASADI_BUILD_DIR=$(CASADI_BUILD_DIR64)" "IPOPT_HOME=$(IPOPT64_HOME)"
916@COMPILE_WITH_IPOPT64_TRUE@     mkdir -p $(DESTDIR)$(prefix)/Python/
917@COMPILE_WITH_IPOPT64_TRUE@     cp -r $(CASADI_PYTHON_INST_DIR64)/casadi $(DESTDIR)$(prefix)/Python_64/
918@COMPILE_WITH_IPOPT64_TRUE@     cp $(CASADI_BUILD_DIR64)/swig/casadi_core.py $(DESTDIR)$(prefix)/Python_64/casadi
919@COMPILE_WITH_IPOPT64_TRUE@     export PYTHONHOME=$(ORIG_PYTHON_HOME); \
920@COMPILE_WITH_IPOPT64_TRUE@     export PATH="$(ORIG_PATH)";
921
922casadi_interface: install_casadi_interface
923build_casadi_interface: casadi modelicacasadi_wrapper
924install_casadi_interface: install_casadi $(TMP_MC_LIB) $(DESTDIR)$(prefix)/Python/modelicacasadi_transfer/__init__.py $(DESTDIR)$(prefix)/Python/modelicacasadi_wrapper/__init__.py $(DESTDIR)$(prefix)/Python/modelicacasadi_transfer/modelica_casadi_transfer_wrapper.py
925        if [ "$(INSTALL_EXTRA_CASADI)" ]; then exec "$(INSTALL_EXTRA_CASADI)" "$(abs_top_srcdir)" "$(DESTDIR)$(prefix)"; fi
926
927ifcasadi: casadi
928@COMPILE_WITH_IPOPT_TRUE@       mkdir -p $(TMP_MC_BUILD)/ifcasadi; \
929@COMPILE_WITH_IPOPT_TRUE@       cd $(TMP_MC_BUILD)/ifcasadi; \
930@COMPILE_WITH_IPOPT_TRUE@       case $(build) in \
931@COMPILE_WITH_IPOPT_TRUE@       *-cygwin*|*-mingw*) \
932@COMPILE_WITH_IPOPT_TRUE@       cmake $(MC_SRC_SWIG) -G "MSYS Makefiles" -DCMAKE_CXX_COMPILER_ARG1="$(TMP_CMAKE_CASADI_CXX_FLAG)" -DCMAKE_CXX_FLAGS="$(TMP_CMAKE_CASADI_CXX_FLAG)" \
933@COMPILE_WITH_IPOPT_TRUE@           -DIFCASADI_OUTDIR="$(MC_CASADI_BUILD)" -DCASADI_HOME="$(CASADI_HOME)" -DCASADI_BUILD_DIR="$(TMP_CASADI_BUILD_DIR)";; \
934@COMPILE_WITH_IPOPT_TRUE@       *) \
935@COMPILE_WITH_IPOPT_TRUE@       cmake $(MC_SRC_SWIG) \
936@COMPILE_WITH_IPOPT_TRUE@           -DIFCASADI_OUTDIR="$(MC_CASADI_BUILD)" -DCASADI_HOME="$(CASADI_HOME)" -DCASADI_BUILD_DIR="$(TMP_CASADI_BUILD_DIR)";; \
937@COMPILE_WITH_IPOPT_TRUE@       esac
938@COMPILE_WITH_IPOPT_TRUE@       cd $(TMP_MC_BUILD)/ifcasadi;  make
939@COMPILE_WITH_IPOPT64_TRUE@     export PATH=$(PYTHON64_HOME):$(PYTHON64_HOME)/Scripts:$(PYTHON64_HOME)/Lib:"${PATH}";
940@COMPILE_WITH_IPOPT64_TRUE@     export PYTHONHOME=$(PYTHON64_HOME);
941@COMPILE_WITH_IPOPT64_TRUE@     mkdir -p $(MC_BUILD64)/ifcasadi; \
942@COMPILE_WITH_IPOPT64_TRUE@     cd $(MC_BUILD64)/ifcasadi; \
943@COMPILE_WITH_IPOPT64_TRUE@     cmake $(MC_SRC_SWIG) -G "MSYS Makefiles" -DCMAKE_CXX_COMPILER_ARG1="-m64" -DCMAKE_CXX_FLAGS="-m64" \
944@COMPILE_WITH_IPOPT64_TRUE@         -DIFCASADI_OUTDIR="$(MC_CASADI_BUILD)" -DCASADI_HOME="$(CASADI_HOME)" -DCASADI_BUILD_DIR="$(CASADI_BUILD_DIR64)"; \
945@COMPILE_WITH_IPOPT64_TRUE@     cd $(MC_BUILD64)/ifcasadi;  make
946@COMPILE_WITH_IPOPT64_TRUE@     export PYTHONHOME=$(ORIG_PYTHON_HOME); \
947@COMPILE_WITH_IPOPT64_TRUE@     export PATH="$(ORIG_PATH)";
948
949$(TMP_MC_LIB): $(MC_CASADI_BUILD)/bin/ModelicaCompiler.jar $(OC_CASADI_BUILD)/bin/OptimicaCompiler.jar $(MC_CASADI_BUILD)/bin/util.jar ifcasadi
950@COMPILE_WITH_IPOPT_TRUE@       rm -rf $(TMP_MC_LIB)
951@COMPILE_WITH_IPOPT_TRUE@       mkdir -p $(TMP_MC_LIB)
952@COMPILE_WITH_IPOPT_TRUE@       cp $(MC_CASADI_BUILD)/bin/ModelicaCompiler.jar $(TMP_MC_LIB)
953@COMPILE_WITH_IPOPT_TRUE@       cp $(OC_CASADI_BUILD)/bin/OptimicaCompiler.jar $(TMP_MC_LIB)
954@COMPILE_WITH_IPOPT_TRUE@       cp $(MC_CASADI_BUILD)/bin/util.jar $(TMP_MC_LIB)
955@COMPILE_WITH_IPOPT_TRUE@       case $(build) in \
956@COMPILE_WITH_IPOPT_TRUE@       *-cygwin*) \
957@COMPILE_WITH_IPOPT_TRUE@       cp $(TMP_MC_BUILD)/ifcasadi/ifcasadi.dll $(TMP_MC_LIB) ;; \
958@COMPILE_WITH_IPOPT_TRUE@       *-mingw*) \
959@COMPILE_WITH_IPOPT_TRUE@       cp $(TMP_MC_BUILD)/ifcasadi/ifcasadi.dll $(TMP_MC_LIB) ;; \
960@COMPILE_WITH_IPOPT_TRUE@       *) \
961@COMPILE_WITH_IPOPT_TRUE@       cp $(TMP_MC_BUILD)/ifcasadi/libifcasadi.so $(TMP_MC_LIB) ;; \
962@COMPILE_WITH_IPOPT_TRUE@       esac
963@COMPILE_WITH_IPOPT64_TRUE@     rm -rf $(MC_LIB64)
964@COMPILE_WITH_IPOPT64_TRUE@     mkdir -p $(MC_LIB64)
965@COMPILE_WITH_IPOPT64_TRUE@     cp $(MC_CASADI_BUILD)/bin/ModelicaCompiler.jar $(MC_LIB64)
966@COMPILE_WITH_IPOPT64_TRUE@     cp $(OC_CASADI_BUILD)/bin/OptimicaCompiler.jar $(MC_LIB64)
967@COMPILE_WITH_IPOPT64_TRUE@     cp $(MC_CASADI_BUILD)/bin/util.jar $(MC_LIB64)
968@COMPILE_WITH_IPOPT64_TRUE@     cp $(MC_BUILD64)/ifcasadi/ifcasadi.dll $(MC_LIB64)
969
970mc_modelica: ifcasadi
971        cd $(MC_CASADI_BUILD); $(ANT_OPTS) $(ANT) -f "$(JAVA_MC_CASADI_ANT_FILE)" "-Dcompiler=$(COMPILER_DIR)" "-Dtarget=$(MC_CASADI_BUILD)"
972
973mc_optimica: ifcasadi
974        mkdir -p $(OC_CASADI_BUILD)/src/generated/optimica/java
975        cp -pr $(MC_CASADI_BUILD)/src/generated/modelica/java/ifcasadi $(OC_CASADI_BUILD)/src/generated/optimica/java
976        cd $(OC_CASADI_BUILD); $(ANT_OPTS) $(ANT) -f "$(JAVA_OC_CASADI_ANT_FILE)" "-Dcompiler=$(COMPILER_DIR)" "-Dtarget=$(OC_CASADI_BUILD)"
977
978$(MC_CASADI_BUILD)/bin/ModelicaCompiler.jar: mc_modelica
979$(MC_CASADI_BUILD)/bin/util.jar:             mc_modelica
980$(MC_CASADI_BUILD)/bin/separateProcess.jar:  mc_modelica
981
982$(OC_CASADI_BUILD)/bin/OptimicaCompiler.jar: mc_optimica
983$(OC_CASADI_BUILD)/bin/util.jar:             mc_optimica
984$(OC_CASADI_BUILD)/bin/separateProcess.jar:  mc_optimica
985
986$(TMP_MC_BUILD)/modelicacasadi_wrapper/swig/modelicacasadi_wrapper.py: modelicacasadi_wrapper
987
988modelicacasadi_wrapper: $(MC_CASADI_BUILD)/bin/ModelicaCompiler.jar $(OC_CASADI_BUILD)/bin/OptimicaCompiler.jar $(MC_CASADI_BUILD)/bin/util.jar ifcasadi # $(TMP_MC_LIB)
989@COMPILE_WITH_IPOPT_TRUE@       mkdir -p $(TMP_MC_BUILD)/modelicacasadi_wrapper; \
990@COMPILE_WITH_IPOPT_TRUE@       cd $(TMP_MC_BUILD)/modelicacasadi_wrapper; \
991@COMPILE_WITH_IPOPT_TRUE@       case $(build) in \
992@COMPILE_WITH_IPOPT_TRUE@       *-cygwin*|*-mingw*) \
993@COMPILE_WITH_IPOPT_TRUE@       cmake $(MC_INTERFACE) -G "MSYS Makefiles" -DCMAKE_CXX_COMPILER_ARG1="$(TMP_CMAKE_CASADI_CXX_FLAG)" -DCMAKE_CXX_FLAGS="$(TMP_CMAKE_CASADI_CXX_FLAG)" \
994@COMPILE_WITH_IPOPT_TRUE@           -DMC_BUILD="$(TMP_MC_BUILD)" -DIPOPT_HOME="$(IPOPT_HOME)" -DCASADI_BUILD_DIR="$(TMP_CASADI_BUILD_DIR)" \
995@COMPILE_WITH_IPOPT_TRUE@           -DIFCASADI_JAR_BASE="$(JAVA_CASADI_BUILD_DIR)" -DCASADI_HOME="$(CASADI_HOME)" \
996@COMPILE_WITH_IPOPT_TRUE@           "$(CMAKE_PYTHON_LIB)" "$(CMAKE_PYTHON_INCLUDE)" ;; \
997@COMPILE_WITH_IPOPT_TRUE@       *) \
998@COMPILE_WITH_IPOPT_TRUE@       cmake $(MC_INTERFACE) \
999@COMPILE_WITH_IPOPT_TRUE@           -DMC_BUILD="$(TMP_MC_BUILD)" -DIPOPT_HOME="$(IPOPT_HOME)" -DCASADI_BUILD_DIR="$(TMP_CASADI_BUILD_DIR)" \
1000@COMPILE_WITH_IPOPT_TRUE@           -DIFCASADI_JAR_BASE="$(JAVA_CASADI_BUILD_DIR)" -DCASADI_HOME="$(CASADI_HOME)" \
1001@COMPILE_WITH_IPOPT_TRUE@           "$(CMAKE_PYTHON_LIB)" "$(CMAKE_PYTHON_INCLUDE)" ;; \
1002@COMPILE_WITH_IPOPT_TRUE@       esac
1003@COMPILE_WITH_IPOPT_TRUE@       cd $(TMP_MC_BUILD)/modelicacasadi_wrapper;  make modelicacasadi_wrapper
1004@COMPILE_WITH_IPOPT64_TRUE@     export PATH=$(PYTHON64_HOME):$(PYTHON64_HOME)/Scripts:$(PYTHON64_HOME)/Lib:"${PATH}"; \
1005@COMPILE_WITH_IPOPT64_TRUE@     export PYTHONHOME=$(PYTHON64_HOME); \
1006@COMPILE_WITH_IPOPT64_TRUE@     mkdir -p $(MC_BUILD64)/modelicacasadi_wrapper; \
1007@COMPILE_WITH_IPOPT64_TRUE@     cd $(MC_BUILD64)/modelicacasadi_wrapper; \
1008@COMPILE_WITH_IPOPT64_TRUE@     cmake $(MC_INTERFACE) -G "MSYS Makefiles" -DCMAKE_CXX_COMPILER_ARG1="-m64" -DCMAKE_CXX_FLAGS="-m64" \
1009@COMPILE_WITH_IPOPT64_TRUE@         -DMC_BUILD="$(MC_BUILD64)" -DIPOPT_HOME="$(IPOPT64_HOME)" -DCASADI_BUILD_DIR="$(CASADI_BUILD_DIR64)" \
1010@COMPILE_WITH_IPOPT64_TRUE@         -DIFCASADI_JAR_BASE="$(JAVA_CASADI_BUILD_DIR)" -DCASADI_HOME="$(CASADI_HOME)" \
1011@COMPILE_WITH_IPOPT64_TRUE@         "$(CMAKE_PYTHON64_LIB)" "$(CMAKE_PYTHON64_INCLUDE)"; \
1012@COMPILE_WITH_IPOPT64_TRUE@     cd $(MC_BUILD64)/modelicacasadi_wrapper;  make modelicacasadi_wrapper
1013@COMPILE_WITH_IPOPT64_TRUE@     export PYTHONHOME=$(ORIG_PYTHON_HOME);
1014@COMPILE_WITH_IPOPT64_TRUE@     export PATH="$(ORIG_PATH)";
1015
1016 $(DESTDIR)$(prefix)/Python/modelicacasadi_transfer/__init__.py: install_modelicacasadi_transfer
1017 $(DESTDIR)$(prefix)/Python/modelicacasadi_transfer/modelica_casadi_transfer_wrapper.py: install_modelicacasadi_transfer
1018
1019 $(DESTDIR)$(prefix)/Python/modelicacasadi_wrapper/__init__.py: install_modelicacasadi_wrapper
1020
1021 install_modelicacasadi_wrapper: $(TMP_MC_BUILD)/modelicacasadi_wrapper/swig/modelicacasadi_wrapper.py
1022@COMPILE_WITH_IPOPT_TRUE@       mkdir -p $(DESTDIR)$(prefix)/Python/modelicacasadi_wrapper
1023@COMPILE_WITH_IPOPT_TRUE@       cp $(TMP_MC_BUILD)/modelicacasadi_wrapper/swig/*modelicacasadi_wrapper* $(DESTDIR)$(prefix)/Python/modelicacasadi_wrapper
1024@COMPILE_WITH_IPOPT_TRUE@       rm -f $(DESTDIR)$(prefix)/Python/modelicacasadi_wrapper/__init__.py
1025@COMPILE_WITH_IPOPT_TRUE@       touch $(DESTDIR)$(prefix)/Python/modelicacasadi_wrapper/__init__.py
1026@COMPILE_WITH_IPOPT_TRUE@       echo "from modelicacasadi_wrapper import *" >> $(DESTDIR)$(prefix)/Python/modelicacasadi_wrapper/__init__.py
1027@COMPILE_WITH_IPOPT64_TRUE@     export PATH=$(PYTHON64_HOME):$(PYTHON64_HOME)/Scripts:$(PYTHON64_HOME)/Lib:"${PATH}"; \
1028@COMPILE_WITH_IPOPT64_TRUE@     export PYTHONHOME=$(PYTHON64_HOME);
1029@COMPILE_WITH_IPOPT64_TRUE@     mkdir -p $(DESTDIR)$(prefix)/Python_64/modelicacasadi_wrapper
1030@COMPILE_WITH_IPOPT64_TRUE@     cp $(MC_BUILD64)/modelicacasadi_wrapper/swig/*modelicacasadi_wrapper* $(DESTDIR)$(prefix)/Python_64/modelicacasadi_wrapper
1031@COMPILE_WITH_IPOPT64_TRUE@     rm -f $(DESTDIR)$(prefix)/Python_64/modelicacasadi_wrapper/__init__.py
1032@COMPILE_WITH_IPOPT64_TRUE@     touch $(DESTDIR)$(prefix)/Python_64/modelicacasadi_wrapper/__init__.py
1033@COMPILE_WITH_IPOPT64_TRUE@     echo "from modelicacasadi_wrapper import *" >> $(DESTDIR)$(prefix)/Python_64/modelicacasadi_wrapper/__init__.py
1034@COMPILE_WITH_IPOPT64_TRUE@     export PYTHONHOME=$(ORIG_PYTHON_HOME)
1035@COMPILE_WITH_IPOPT64_TRUE@     export PATH="$(ORIG_PATH)"
1036
1037 install_modelicacasadi_transfer: $(MC_INTERFACE)/python/modelica_casadi_transfer_wrapper.py
1038@COMPILE_WITH_IPOPT_TRUE@       mkdir -p $(DESTDIR)$(prefix)/Python/modelicacasadi_transfer
1039@COMPILE_WITH_IPOPT_TRUE@       rm -f $(DESTDIR)$(prefix)/Python/modelicacasadi_transfer/__init__.py
1040@COMPILE_WITH_IPOPT_TRUE@       touch $(DESTDIR)$(prefix)/Python/modelicacasadi_transfer/__init__.py
1041@COMPILE_WITH_IPOPT_TRUE@       echo "from modelica_casadi_transfer_wrapper import *" >> $(DESTDIR)$(prefix)/Python/modelicacasadi_transfer/__init__.py
1042@COMPILE_WITH_IPOPT_TRUE@       cp $(MC_INTERFACE)/python/modelica_casadi_transfer_wrapper.py $(DESTDIR)$(prefix)/Python/modelicacasadi_transfer
1043@COMPILE_WITH_IPOPT64_TRUE@     mkdir -p $(DESTDIR)$(prefix)/Python_64/modelicacasadi_transfer
1044@COMPILE_WITH_IPOPT64_TRUE@     rm -f $(DESTDIR)$(prefix)/Python_64/modelicacasadi_transfer/__init__.py
1045@COMPILE_WITH_IPOPT64_TRUE@     touch $(DESTDIR)$(prefix)/Python_64/modelicacasadi_transfer/__init__.py
1046@COMPILE_WITH_IPOPT64_TRUE@     echo "from modelica_casadi_transfer_wrapper import *" >> $(DESTDIR)$(prefix)/Python_64/modelicacasadi_transfer/__init__.py
1047@COMPILE_WITH_IPOPT64_TRUE@     cp $(MC_INTERFACE)/python/modelica_casadi_transfer_wrapper.py $(DESTDIR)$(prefix)/Python_64/modelicacasadi_transfer
1048
1049build-python-packages:
1050@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@ mkdir -p $(assimulo_build_dir); \
1051@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@ cd $(assimulo_src_dir)/..; \
1052@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@ find Assimulo -type f |grep -v /.svn | grep -v .pyc | grep -v ~ |tar c -T - -f - | tar x -C $(assimulo_build_dir); \
1053@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@ cd $(assimulo_build_dir)/Assimulo; \
1054@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@ case $(build) in \
1055@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@ *-cygwin*) \
1056@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@ python setup.py install --with_openmp=True --superlu-home=$(abs_builddir)/superlu_build$(DEP_SUFFIX)/ --sundials-home=$(SUNDIALS_HOME)$(DEP_SUFFIX) --sundials-with-superlu=True --blas-home=$(abs_builddir)/blas_install$(DEP_SUFFIX)/ --lapack-home=$(abs_builddir)/lapack_install$(DEP_SUFFIX)/ $(BUILD_WITH_PYTHON32_ARG) --prefix=$(assimulo_install_dir) ;; \
1057@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@ *-mingw*) \
1058@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@ python setup.py install --with_openmp=True --superlu-home=$(abs_builddir)/superlu_build$(DEP_SUFFIX)/ --sundials-home=$(SUNDIALS_HOME)$(DEP_SUFFIX) --sundials-with-superlu=True --blas-home=$(abs_builddir)/blas_install$(DEP_SUFFIX)/ --lapack-home=$(abs_builddir)/lapack_install$(DEP_SUFFIX)/ $(BUILD_WITH_PYTHON32_ARG) $(NUMPY_NO_MSVCR_ARG) --prefix=$(assimulo_install_dir) ;; \
1059@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@ *) \
1060@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@ python setup.py install --with_openmp=True --superlu-home=$(abs_builddir)/superlu_build/ --sundials-home=$(SUNDIALS_HOME) --sundials-with-superlu=True --blas-home=$(abs_builddir)/blas_install/ --lapack-home=$(abs_builddir)/lapack_install/ --prefix=$(assimulo_install_dir) ;; \
1061@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@ esac
1062@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@@WITH_PYTHON64_TRUE@      mkdir -p $(assimulo_build_dir64); \
1063@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@@WITH_PYTHON64_TRUE@      cd $(assimulo_src_dir)/..; \
1064@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@@WITH_PYTHON64_TRUE@      find Assimulo -type f |grep -v /.svn | grep -v .pyc | grep -v ~ |tar c -T - -f - | tar x -C $(assimulo_build_dir64); \
1065@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@@WITH_PYTHON64_TRUE@      cd $(assimulo_build_dir)/Assimulo; \
1066@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@@WITH_PYTHON64_TRUE@      export PATH=$(PYTHON64_HOME):$(PYTHON64_HOME)/Scripts:$(PYTHON64_HOME)/Lib:"${PATH}"; \
1067@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@@WITH_PYTHON64_TRUE@      export PYTHONHOME=$(PYTHON64_HOME); \
1068@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@@WITH_PYTHON64_TRUE@      python setup.py install --with_openmp=True --superlu-home=$(abs_builddir)/superlu_build64/ --sundials-home=$(SUNDIALS_HOME)64 --sundials-with-superlu=True --blas-home=$(abs_builddir)/blas_install64/ --lapack-home=$(abs_builddir)/lapack_install64/ --force-32bit="false" $(NUMPY_NO_MSVCR_ARG) --prefix=$(assimulo_install_dir64); \
1069@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@@WITH_PYTHON64_TRUE@      export PATH="$(ORIG_PATH)"; \
1070@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@@WITH_PYTHON64_TRUE@      export PYTHONHOME=$(ORIG_PYTHON_HOME)
1071@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@        mkdir -p $(assimulo_build_dir); \
1072@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@        cd $(assimulo_src_dir)/..; \
1073@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@        find Assimulo -type f |grep -v /.svn | grep -v .pyc | grep -v ~ |tar c -T - -f - | tar x -C $(assimulo_build_dir); \
1074@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@        cd $(assimulo_build_dir)/Assimulo; \
1075@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@        case $(build) in \
1076@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@        *-cygwin*) \
1077@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@        python setup.py install --sundials-home=$(SUNDIALS_HOME) --blas-home=$(abs_builddir)/blas_install/ --lapack-home=$(abs_builddir)/lapack_install/ $(BUILD_WITH_PYTHON32_ARG) --prefix=$(assimulo_install_dir) ;; \
1078@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@        *-mingw*) \
1079@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@        python setup.py install --sundials-home=$(SUNDIALS_HOME) --blas-home=$(abs_builddir)/blas_install/ --lapack-home=$(abs_builddir)/lapack_install/ $(BUILD_WITH_PYTHON32_ARG) $(NUMPY_NO_MSVCR_ARG) --prefix=$(assimulo_install_dir) ;; \
1080@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@        *) \
1081@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@        python setup.py install --sundials-home=$(SUNDIALS_HOME) --blas-home=$(abs_builddir)/blas_install/ --lapack-home=$(abs_builddir)/lapack_install/ --prefix=$(assimulo_install_dir) ;; \
1082@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@        esac
1083@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@@WITH_PYTHON64_TRUE@     mkdir -p $(assimulo_build_dir64); \
1084@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@@WITH_PYTHON64_TRUE@     cd $(assimulo_src_dir)/..; \
1085@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@@WITH_PYTHON64_TRUE@     find Assimulo -type f |grep -v /.svn | grep -v .pyc | grep -v ~ |tar c -T - -f - | tar x -C $(assimulo_build_dir64); \
1086@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@@WITH_PYTHON64_TRUE@     cd $(assimulo_build_dir64)/Assimulo; \
1087@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@@WITH_PYTHON64_TRUE@     export PATH=$(PYTHON64_HOME):$(PYTHON64_HOME)/Scripts:$(PYTHON64_HOME)/Lib:"${PATH}"; \
1088@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@@WITH_PYTHON64_TRUE@     export PYTHONHOME=$(PYTHON64_HOME); \
1089@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@@WITH_PYTHON64_TRUE@     python setup.py install --sundials-home=$(SUNDIALS_HOME)64 --blas-home=$(abs_builddir)/blas_install64/ --lapack-home=$(abs_builddir)/lapack_install64/ --force-32bit="false" $(NUMPY_NO_MSVCR_ARG) --prefix=$(assimulo_install_dir64) ; \
1090@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@@WITH_PYTHON64_TRUE@     export PATH="$(ORIG_PATH)"; \
1091@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@@WITH_PYTHON64_TRUE@     export PYTHONHOME=$(ORIG_PYTHON_HOME)
1092@PYTHON_ENABLED_TRUE@   cd $(abs_top_srcdir)/Python/src; \
1093@PYTHON_ENABLED_TRUE@   python setup_pymodelica.py install --prefix=$(pymodelica_install_dir); \
1094@PYTHON_ENABLED_TRUE@   rm -rf build
1095@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        cd $(abs_top_srcdir)/Python/src; \
1096@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        export PATH=$(PYTHON64_HOME):$(PYTHON64_HOME)/Scripts:$(PYTHON64_HOME)/Lib:"${PATH}"; \
1097@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        export PYTHONHOME=$(PYTHON64_HOME); \
1098@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        python setup_pymodelica.py install --prefix=$(pymodelica_install_dir64); \
1099@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        export PATH="$(ORIG_PATH)"; \
1100@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        export PYTHONHOME=$(ORIG_PYTHON_HOME); \
1101@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        rm -rf build
1102@PYTHON_ENABLED_TRUE@   mkdir -p $(pyfmi_build_dir); \
1103@PYTHON_ENABLED_TRUE@   cd $(abs_top_srcdir)/external; \
1104@PYTHON_ENABLED_TRUE@   find PyFMI -type f |grep -v /.svn | grep -v .pyc | grep -v ~ |tar c -T - -f - | tar x -C $(pyfmi_build_dir); \
1105@PYTHON_ENABLED_TRUE@   cd $(pyfmi_build_dir)/PyFMI; \
1106@PYTHON_ENABLED_TRUE@   case $(build) in \
1107@PYTHON_ENABLED_TRUE@   *-cygwin*) \
1108@PYTHON_ENABLED_TRUE@   python setup.py install --fmil-home=$(abs_builddir)/FMIL_install$(DEP_SUFFIX)/ $(BUILD_WITH_PYTHON32_ARG) --prefix=$(pyfmi_install_dir) ;; \
1109@PYTHON_ENABLED_TRUE@   *-mingw*) \
1110@PYTHON_ENABLED_TRUE@   python setup.py install --fmil-home=$(abs_builddir)/FMIL_install$(DEP_SUFFIX)/ $(BUILD_WITH_PYTHON32_ARG) $(NUMPY_NO_MSVCR_ARG) --prefix=$(pyfmi_install_dir) ;; \
1111@PYTHON_ENABLED_TRUE@   *) \
1112@PYTHON_ENABLED_TRUE@   python setup.py install --fmil-home=$(abs_builddir)/FMIL_install/ --prefix=$(pyfmi_install_dir) ;; \
1113@PYTHON_ENABLED_TRUE@   esac
1114@PYTHON_ENABLED_TRUE@   rm -rf build
1115@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        mkdir -p $(pyfmi_build_dir64); \
1116@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        cd $(abs_top_srcdir)/external; \
1117@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        find PyFMI -type f |grep -v /.svn | grep -v .pyc | grep -v ~ |tar c -T - -f - | tar x -C $(pyfmi_build_dir64); \
1118@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        cd $(pyfmi_build_dir64)/PyFMI; \
1119@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        export PATH=$(PYTHON64_HOME):$(PYTHON64_HOME)/Scripts:$(PYTHON64_HOME)/Lib:"${PATH}"; \
1120@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        export PYTHONHOME=$(PYTHON64_HOME); \
1121@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        python setup.py install --fmil-home=$(abs_builddir)/FMIL_install64/ $(NUMPY_NO_MSVCR_ARG) --prefix=$(pyfmi_install_dir64); \
1122@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        export PATH="$(ORIG_PATH)"; \
1123@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        export PYTHONHOME=$(ORIG_PYTHON_HOME); \
1124@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        rm -rf build
1125@PYTHON_ENABLED_TRUE@   cd $(abs_top_srcdir)/Python/src; \
1126@PYTHON_ENABLED_TRUE@   python setup_pyjmi.py install --prefix=$(pyjmi_install_dir); \
1127@PYTHON_ENABLED_TRUE@   rm -rf build
1128@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        cd $(abs_top_srcdir)/Python/src; \
1129@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        export PATH=$(PYTHON64_HOME):$(PYTHON64_HOME)/Scripts:$(PYTHON64_HOME)/Lib:"${PATH}"; \
1130@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        export PYTHONHOME=$(PYTHON64_HOME); \
1131@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        python setup_pyjmi.py install --prefix=$(pyjmi_install_dir64); \
1132@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        export PATH="$(ORIG_PATH)"; \
1133@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        export PYTHONHOME=$(ORIG_PYTHON_HOME); \
1134@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        rm -rf build
1135
1136install-python-tests:
1137@PYTHON_ENABLED_TRUE@   chmod ugo+x jm_tests
1138@PYTHON_ENABLED_TRUE@   cp -p jm_tests $(DESTDIR)$(prefix)/jm_tests
1139
1140@PYTHON_ENABLED_TRUE@   cd $(abs_top_srcdir)/Python/src/tests_jmodelica/; \
1141@PYTHON_ENABLED_TRUE@   mkdir -p $(DESTDIR)$(prefix)/Python/tests_jmodelica; \
1142@PYTHON_ENABLED_TRUE@   find . -type f |grep -v /.svn | grep -v .pyc | grep -v ~ |tar c -T - -f - | tar x -C $(DESTDIR)$(prefix)/Python/tests_jmodelica
1143@PYTHON_ENABLED_TRUE@   rm -rf $(DESTDIR)$(prefix)/Python/tests_jmodelica/files/Modelica/Resources/src
1144@PYTHON_ENABLED_TRUE@   rm -f $(DESTDIR)$(prefix)/Python/tests_jmodelica/files/Modelica/Resources/CMakeLists.txt
1145@PYTHON_ENABLED_TRUE@   rm -f $(DESTDIR)$(prefix)/Python/tests_jmodelica/files/Modelica/Resources/Makefile.am
1146@PYTHON_ENABLED_TRUE@   rm -f $(DESTDIR)$(prefix)/Python/tests_jmodelica/files/Modelica/Resources/Makefile.in
1147@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        cd $(abs_top_srcdir)/Python/src/tests_jmodelica/; \
1148@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        mkdir -p $(DESTDIR)$(prefix)/Python_64/tests_jmodelica; \
1149@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        find . -type f |grep -v /.svn | grep -v .pyc | grep -v ~ |tar c -T - -f - | tar x -C $(DESTDIR)$(prefix)/Python_64/tests_jmodelica
1150@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        rm -rf $(DESTDIR)$(prefix)/Python_64/tests_jmodelica/files/Modelica/Resources/src
1151@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        rm -f $(DESTDIR)$(prefix)/Python_64/tests_jmodelica/files/Modelica/Resources/CMakeLists.txt
1152@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        rm -f $(DESTDIR)$(prefix)/Python_64/tests_jmodelica/files/Modelica/Resources/Makefile.am
1153@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        rm -f $(DESTDIR)$(prefix)/Python_64/tests_jmodelica/files/Modelica/Resources/Makefile.in
1154
1155install-python-packages: build-python-packages install-python-tests
1156@PYTHON_ENABLED_TRUE@   mkdir -p $(DESTDIR)$(prefix)/Python
1157@PYTHON_ENABLED_TRUE@   cp $(abs_top_srcdir)/Python/src/startup.py $(DESTDIR)$(prefix)/
1158@PYTHON_ENABLED_TRUE@   cp Python/src/required_defaults.py $(DESTDIR)$(prefix)/Python/
1159@PYTHON_ENABLED_TRUE@   [ $(abs_top_srcdir) == $(DESTDIR)$(prefix) ] && echo "Installing in dist directory, don't copy LICENSE file" || cp $(abs_top_srcdir)/Python/LICENSE $(DESTDIR)$(prefix)/Python
1160@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        mkdir -p $(DESTDIR)$(prefix)/Python_64
1161@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        cp Python/src/required_defaults.py $(DESTDIR)$(prefix)/Python_64/
1162@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        [ $(abs_top_srcdir) == $(DESTDIR)$(prefix) ] && echo "Installing in dist directory, don't copy LICENSE file" || cp $(abs_top_srcdir)/Python/LICENSE $(DESTDIR)$(prefix)/Python_64
1163@PYTHON_ENABLED_TRUE@   for pkgdir in lib/python2.5 lib/python2.6 lib/python2.7 lib/python3.7 lib64/python2.5 lib64/python2.6 lib64/python2.7 lib64/python3.7 Lib; do \
1164@PYTHON_ENABLED_TRUE@   if [ -e $(assimulo_install_dir)/$${pkgdir}/site-packages/ ]; \
1165@PYTHON_ENABLED_TRUE@   then \
1166@PYTHON_ENABLED_TRUE@   cd $(assimulo_install_dir)/$${pkgdir}/site-packages/; \
1167@PYTHON_ENABLED_TRUE@   find assimulo -type f |grep -v /.svn | grep -v .pyc | grep -v ~ |tar c -T - -f - | tar x -C $(DESTDIR)$(prefix)/Python; \
1168@PYTHON_ENABLED_TRUE@   fi; \
1169@PYTHON_ENABLED_TRUE@   done
1170@PYTHON_ENABLED_TRUE@   for pkgdir in lib/python2.5 lib/python2.6 lib/python2.7 lib/python3.7 lib64/python2.5 lib64/python2.6 lib64/python2.7 lib64/python3.7 Lib; do \
1171@PYTHON_ENABLED_TRUE@   if [ -e $(pymodelica_install_dir)/$${pkgdir}/site-packages/ ]; \
1172@PYTHON_ENABLED_TRUE@   then \
1173@PYTHON_ENABLED_TRUE@   cd $(pymodelica_install_dir)/$${pkgdir}/site-packages/; \
1174@PYTHON_ENABLED_TRUE@   find pymodelica -type f |grep -v /.svn | grep -v .pyc | grep -v ~ |tar c -T - -f - | tar x -C $(DESTDIR)$(prefix)/Python; \
1175@PYTHON_ENABLED_TRUE@   fi; \
1176@PYTHON_ENABLED_TRUE@   done
1177@PYTHON_ENABLED_TRUE@   for pkgdir in lib/python2.5 lib/python2.6 lib/python2.7 lib/python3.7 lib64/python2.5 lib64/python2.6 lib64/python2.7 lib64/python3.7 Lib; do \
1178@PYTHON_ENABLED_TRUE@   if [ -e $(pyjmi_install_dir)/$${pkgdir}/site-packages/ ]; \
1179@PYTHON_ENABLED_TRUE@   then \
1180@PYTHON_ENABLED_TRUE@   cd $(pyjmi_install_dir)/$${pkgdir}/site-packages/; \
1181@PYTHON_ENABLED_TRUE@   find pyjmi -type f |grep -v /.svn | grep -v .pyc | grep -v ~ |tar c -T - -f - | tar x -C $(DESTDIR)$(prefix)/Python; \
1182@PYTHON_ENABLED_TRUE@   fi; \
1183@PYTHON_ENABLED_TRUE@   done
1184@PYTHON_ENABLED_TRUE@   for pkgdir in lib/python2.5 lib/python2.6 lib/python2.7 lib/python3.7 lib64/python2.5 lib64/python2.6 lib64/python2.7 lib64/python3.7 Lib; do \
1185@PYTHON_ENABLED_TRUE@   if [ -e $(pyfmi_install_dir)/$${pkgdir}/site-packages/ ]; \
1186@PYTHON_ENABLED_TRUE@   then \
1187@PYTHON_ENABLED_TRUE@   cd $(pyfmi_install_dir)/$${pkgdir}/site-packages/; \
1188@PYTHON_ENABLED_TRUE@   find pyfmi -type f |grep -v /.svn | grep -v .pyc | grep -v ~ |tar c -T - -f - | tar x -C $(DESTDIR)$(prefix)/Python; \
1189@PYTHON_ENABLED_TRUE@   fi; \
1190@PYTHON_ENABLED_TRUE@   done
1191@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    for pkgdir in lib/python2.5 lib/python2.6 lib/python2.7 lib/python3.7 lib64/python2.5 lib64/python2.6 lib64/python2.7 lib64/python3.7 Lib; do \
1192@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    if [ -e $(assimulo_install_dir64)/$${pkgdir}/site-packages/ ]; \
1193@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    then \
1194@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    cd $(assimulo_install_dir64)/$${pkgdir}/site-packages/; \
1195@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    find assimulo -type f |grep -v /.svn | grep -v .pyc | grep -v ~ |tar c -T - -f - | tar x -C $(DESTDIR)$(prefix)/Python_64; \
1196@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    fi; \
1197@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    done
1198@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    for pkgdir in lib/python2.5 lib/python2.6 lib/python2.7 lib/python3.7 lib64/python2.5 lib64/python2.6 lib64/python2.7 lib64/python3.7 Lib; do \
1199@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    if [ -e $(pymodelica_install_dir64)/$${pkgdir}/site-packages/ ]; \
1200@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    then \
1201@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    cd $(pymodelica_install_dir64)/$${pkgdir}/site-packages/; \
1202@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    find pymodelica -type f |grep -v /.svn | grep -v .pyc | grep -v ~ |tar c -T - -f - | tar x -C $(DESTDIR)$(prefix)/Python_64; \
1203@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    fi; \
1204@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    done
1205@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    for pkgdir in lib/python2.5 lib/python2.6 lib/python2.7 lib/python3.7 lib64/python2.5 lib64/python2.6 lib64/python2.7 lib64/python3.7 Lib; do \
1206@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    if [ -e $(pyjmi_install_dir64)/$${pkgdir}/site-packages/ ]; \
1207@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    then \
1208@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    cd $(pyjmi_install_dir64)/$${pkgdir}/site-packages/; \
1209@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    find pyjmi -type f |grep -v /.svn | grep -v .pyc | grep -v ~ |tar c -T - -f - | tar x -C $(DESTDIR)$(prefix)/Python_64; \
1210@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    fi; \
1211@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    done
1212@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    for pkgdir in lib/python2.5 lib/python2.6 lib/python2.7 lib/python3.7 lib64/python2.5 lib64/python2.6 lib64/python2.7 lib64/python3.7 Lib; do \
1213@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    if [ -e $(pyfmi_install_dir64)/$${pkgdir}/site-packages/ ]; \
1214@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    then \
1215@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    cd $(pyfmi_install_dir64)/$${pkgdir}/site-packages/; \
1216@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    find pyfmi -type f |grep -v /.svn | grep -v .pyc | grep -v ~ |tar c -T - -f - | tar x -C $(DESTDIR)$(prefix)/Python_64; \
1217@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    fi; \
1218@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    done
1219@PYTHON_ENABLED_TRUE@   mkdir -p $(DESTDIR)$(prefix)/bin
1220@PYTHON_ENABLED_TRUE@   [ -e $(DESTDIR)$(prefix)/bin/jm_python.sh ] && echo "File exists, don't copy jm_python.sh" || cp Python/jm_python.sh $(DESTDIR)$(prefix)/bin/jm_python.sh
1221@PYTHON_ENABLED_TRUE@   [ -e $(DESTDIR)$(prefix)/bin/jm_ipython.sh  ] && echo "File exists, don't jm_ipython.sh" || cp Python/jm_ipython.sh $(DESTDIR)$(prefix)/bin/jm_ipython.sh
1222@PYTHON_ENABLED_TRUE@   chmod ugo+x $(DESTDIR)$(prefix)/bin/jm_*.sh
1223
1224all-local: build-python-packages build-compiler $(abs_builddir)/version.txt build-extra
1225
1226$(abs_builddir)/version.txt: TODO-always-trigger
1227        $(abs_top_srcdir)/get_version.sh $(abs_top_srcdir) https://svn.jmodelica.org > $(@)
1228
1229build-extra: TODO-always-trigger
1230        if [ "$(BUILD_EXTRA)" ]; then exec "$(BUILD_EXTRA)" "$(abs_top_srcdir)" "$(DESTDIR)$(prefix)"; fi
1231
1232install-exec-local: install-python-packages install-compiler install-modules
1233        [ $(abs_top_srcdir) == $(DESTDIR)$(prefix) ] && echo "Installing in dist directory, don't copy LICENSE file" || cp $(abs_top_srcdir)/LICENSE $(DESTDIR)$(prefix)/
1234        cp $(abs_top_srcdir)/RuntimeLibrary/LICENSE_GPL $(DESTDIR)$(prefix)/lib/
1235        cp $(abs_top_srcdir)/RuntimeLibrary/LICENSE_CPL $(DESTDIR)$(prefix)/lib/
1236        cp $(abs_top_srcdir)/RuntimeLibrary/LICENSE_GPL $(DESTDIR)$(prefix)/include/
1237        cp $(abs_top_srcdir)/RuntimeLibrary/LICENSE_CPL $(DESTDIR)$(prefix)/include/
1238        mkdir -p $(DESTDIR)$(prefix)/Makefiles
1239        cp $(abs_top_srcdir)/RuntimeLibrary/LICENSE_GPL $(DESTDIR)$(prefix)/Makefiles/LICENSE
1240        case $(build) in \
1241        *-cygwin*|*-mingw*) \
1242        cp $(abs_top_srcdir)/RuntimeLibrary/Makefiles/Makefile.windows $(DESTDIR)$(prefix)/Makefiles/MakeFile && \
1243        mkdir -p $(DESTDIR)$(prefix)/ThirdParty/winpthreads/lib/winpthreads && \
1244        mkdir -p $(DESTDIR)$(prefix)/ThirdParty/winpthreads/include && \
1245        cp $(abs_builddir)/winpthreads_build/COPYING $(DESTDIR)$(prefix)/ThirdParty/winpthreads && \
1246        cp $(abs_builddir)/winpthreads_build/.libs/libwinpthread.a $(DESTDIR)$(prefix)/ThirdParty/winpthreads/lib/winpthreads && \
1247        cp $(abs_builddir)/winpthreads_build/include/*.h $(DESTDIR)$(prefix)/ThirdParty/winpthreads/include ;; \
1248        *-apple*) \
1249        cp $(abs_top_srcdir)/RuntimeLibrary/Makefiles/Makefile.macosx $(DESTDIR)$(prefix)/Makefiles/MakeFile ;; \
1250        *) \
1251        cp $(abs_top_srcdir)/RuntimeLibrary/Makefiles/Makefile.linux $(DESTDIR)$(prefix)/Makefiles/MakeFile ;; \
1252        esac
1253
1254        mkdir -p $(DESTDIR)$(prefix)/ThirdParty
1255        mkdir -p $(DESTDIR)$(prefix)/ThirdParty/Sundials
1256        cp -r $(SUNDIALS_HOME)/* $(DESTDIR)$(prefix)/ThirdParty/Sundials
1257        cp $(abs_top_srcdir)/ThirdParty/Sundials/sundials-2.7.0/LICENSE $(DESTDIR)$(prefix)/ThirdParty/Sundials
1258@JM_WIN64_TRUE@ mkdir -p $(DESTDIR)$(prefix)/ThirdParty/Sundials/lib64
1259@JM_WIN64_TRUE@ cp -r $(SUNDIALS_HOME)64/lib/* $(DESTDIR)$(prefix)/ThirdParty/Sundials/lib64
1260@JM_WIN64_TRUE@ mkdir -p $(DESTDIR)$(prefix)/ThirdParty/winpthreads/lib/winpthreads64
1261@JM_WIN64_TRUE@ cp $(abs_builddir)/winpthreads_build64/.libs/libwinpthread.a $(DESTDIR)$(prefix)/ThirdParty/winpthreads/lib/winpthreads64
1262        mkdir -p $(DESTDIR)$(prefix)/ThirdParty/Minpack
1263        cp -r $(MINPACK_HOME)/* $(DESTDIR)$(prefix)/ThirdParty/Minpack
1264        cp $(abs_top_srcdir)/ThirdParty/Minpack/cminpack-1.3.2/CopyrightMINPACK.txt $(DESTDIR)$(prefix)/ThirdParty/Minpack
1265        if [ $(abs_top_srcdir) == $(DESTDIR)$(prefix) ]; then \
1266          echo "Installing in dist directory, don't copy MSL"; \
1267        else \
1268          mkdir -p "$(DESTDIR)$(prefix)/ThirdParty/MSL/Modelica"; \
1269          mkdir -p "$(DESTDIR)$(prefix)/ThirdParty/MSL/ModelicaServices"; \
1270          cd "$(DESTDIR)$(prefix)/ThirdParty/MSL"; \
1271          find . -depth -print0 | while read -d $$'\0' -r f ; do if [ ! -e "$(abs_top_srcdir)/ThirdParty/MSL/$${f}" ]; then rm -rf "$${f}"; fi; done; \
1272          cd "$(abs_top_srcdir)/ThirdParty/MSL/Modelica"; \
1273          find * -type f |grep -v /.svn | grep -v ~ |tar c -T - -f - | tar x -C "$(DESTDIR)$(prefix)/ThirdParty/MSL/Modelica"; \
1274          cd "$(abs_top_srcdir)/ThirdParty/MSL/ModelicaServices"; \
1275          find * -type f |grep -v /.svn | grep -v ~ |tar c -T - -f - | tar x -C "$(DESTDIR)$(prefix)/ThirdParty/MSL/ModelicaServices"; \
1276          cd "$(abs_top_srcdir)/ThirdParty/MSL"; \
1277          $(CP) Complex.mo "$(DESTDIR)$(prefix)/ThirdParty/MSL"; \
1278        fi
1279        mkdir -p $(DESTDIR)$(prefix)/CodeGenTemplates
1280        mkdir -p $(DESTDIR)$(prefix)/CodeGenTemplates/FMIBase
1281        cp $(abs_top_srcdir)/RuntimeLibrary/LICENSE_GPL $(DESTDIR)$(prefix)/CodeGenTemplates/LICENSE
1282        cp -r $(abs_top_srcdir)/Compiler/ModelicaCBackEnd/templates/*.c $(DESTDIR)$(prefix)/CodeGenTemplates
1283        cp -r $(abs_top_srcdir)/Compiler/ModelicaCBackEnd/templates/FMIBase/*.c $(DESTDIR)$(prefix)/CodeGenTemplates/FMIBase
1284        cp -r $(abs_top_srcdir)/Compiler/ModelicaCBackEnd/templates/FMIBase/*.h $(DESTDIR)$(prefix)/CodeGenTemplates/FMIBase
1285        cp  $(abs_top_srcdir)/Compiler/ModelicaFMUXBackEnd/templates/*.tpl $(DESTDIR)$(prefix)/CodeGenTemplates
1286        mkdir -p $(DESTDIR)$(prefix)/XML
1287        [ $(abs_top_srcdir) == $(DESTDIR)$(prefix) ] && echo "Installing in dist directory, don't copy XML schemas"  || cp  $(abs_top_srcdir)/XML/*.xsd $(DESTDIR)$(prefix)/XML
1288        [ $(abs_top_srcdir) == $(DESTDIR)$(prefix) ] && echo "Installing in dist directory, don't copy XML LICENSE"  || cp  $(abs_top_srcdir)/XML/LICENSE $(DESTDIR)$(prefix)/XML
1289        cp  $(abs_builddir)/version.txt $(DESTDIR)$(prefix)
1290        if [ "$(INSTALL_EXTRA)" ]; then exec "$(INSTALL_EXTRA)" "$(abs_top_srcdir)" "$(DESTDIR)$(prefix)"; fi
1291
1292install-compiler: $(ant_output_jars) $(ant_output_options)
1293@HAVE_ANT_TRUE@ mkdir -p $(DESTDIR)$(prefix)/lib/
1294@HAVE_ANT_TRUE@ install -t $(DESTDIR)$(prefix)/lib/ $(ant_output_jars)
1295@HAVE_ANT_TRUE@ install -t $(DESTDIR)$(prefix)/ $(ant_output_options)
1296
1297$(ant_output_jars) $(ant_output_options): build-compiler
1298
1299build-compiler: TODO-always-trigger
1300@HAVE_ANT_TRUE@ mkdir -p $(JAVA_BUILD_DIR)
1301@HAVE_ANT_TRUE@ cd $(JAVA_BUILD_DIR); \
1302@HAVE_ANT_TRUE@ $(ANT_OPTS) $(ANT) -f "$(JAVA_MC_ANT_FILE)" "-Dcompiler=$(COMPILER_DIR)" "-Dtarget=$(JAVA_BUILD_DIR)"
1303@HAVE_ANT_TRUE@ cd $(JAVA_BUILD_DIR); \
1304@HAVE_ANT_TRUE@ $(ANT_OPTS) $(ANT) -f "$(JAVA_OC_ANT_FILE)" "-Dcompiler=$(COMPILER_DIR)" "-Dtarget=$(JAVA_BUILD_DIR)"
1305
1306# Dummy target used to always trigger rebuilds. Used to enable references to
1307# outputs from phony targets as real targets. For example ant output.
1308TODO-always-trigger: ;
1309
1310install-modules: install-modules-ModelicaFrontEnd
1311
1312install-modules-ModelicaFrontEnd: $(BEAVER_INSTALL_DIR)/LICENSE $(BEAVER_INSTALL_DIR)/lib/beaver-rt.jar
1313
1314$(BEAVER_INSTALL_DIR)/%: $(BEAVER_SOURCE)/%
1315        install -D $(<) $(@)
1316
1317bindistdir: install
1318        rm -rf $(bindistdir)
1319        mkdir -p $(bindistdir)
1320        cp $(DESTDIR)$(prefix)/LICENSE $(bindistdir)
1321        cp $(DESTDIR)$(prefix)/startup.py $(bindistdir)
1322        cp $(DESTDIR)$(prefix)/version.txt $(bindistdir)
1323        cp $(DESTDIR)$(prefix)/DefaultOptions.xml $(bindistdir)
1324        cp -r $(DESTDIR)$(prefix)/CodeGenTemplates $(bindistdir)
1325        cp -r $(DESTDIR)$(prefix)/Makefiles $(bindistdir)
1326        cp -r $(DESTDIR)$(prefix)/Python $(bindistdir)
1327        cp -r $(DESTDIR)$(prefix)/ThirdParty $(bindistdir)
1328        cp -r $(DESTDIR)$(prefix)/XML $(bindistdir)
1329        cp -r $(DESTDIR)$(prefix)/include $(bindistdir)
1330        cp -r $(DESTDIR)$(prefix)/lib $(bindistdir)
1331@COMPILE_WITH_IPOPT_TRUE@       mkdir -p $(bindistdir)/ThirdParty/Ipopt
1332# Copy files
1333@COMPILE_WITH_IPOPT_TRUE@       cd $(IPOPT_HOME); find * -type f |grep -v /.svn | grep -v ~ |tar c -T - -f - | tar x -C $(abs_builddir)/$(bindistdir)/ThirdParty/Ipopt
1334# Copy symbolic links
1335@COMPILE_WITH_IPOPT_TRUE@       cd $(IPOPT_HOME); find * -type l |grep -v /.svn | grep -v ~ |tar c -T - -f - | tar x -C $(abs_builddir)/$(bindistdir)/ThirdParty/Ipopt
1336
1337@WITH_MINGW_TRUE@       mkdir -p $(bindistdir)/ThirdParty/MinGW
1338# Copy files
1339@WITH_MINGW_TRUE@       cd $(MINGW_HOME); find * -type f |grep -v /.svn | grep -v ~ |tar c -T - -f - | tar x -C $(abs_builddir)/$(bindistdir)/ThirdParty/MinGW
1340# Copy symbolic links
1341@WITH_MINGW_TRUE@       cd $(MINGW_HOME); find * -type l |grep -v /.svn | grep -v ~ |tar c -T - -f - | tar x -C $(abs_builddir)/$(bindistdir)/ThirdParty/MinGW
1342
1343bindist: bindistdir
1344        tar -cf $(bindistdir).tar $(bindistdir)
1345        gzip -c $(bindistdir).tar > $(bindistdir).tar.gz
1346        rm -rf $(bindistdir)
1347        rm -rf $(bindistdir).tar
1348
1349test: install
1350        $(prefix)/jm_tests -i
1351
1352clean-local: clean-frontends clean-python-packages clean-casadi-interface
1353
1354clean-casadi-interface:
1355        rm -rf $(MC_BUILD)
1356        rm -rf $(MC_BUILD64)
1357#       rm -rf $(DESTDIR)$(prefix)/Python/casadi
1358#       rm -rf $(DESTDIR)$(prefix)/Python/modelicacasadi_transfer
1359@HAVE_ANT_TRUE@ cd $(JAVA_CASADI_BUILD_DIR)/ModelicaCompilerCasADi; \
1360@HAVE_ANT_TRUE@ $(ANT_OPTS) $(ANT) clean ; rm -rf $(MC_CASADI_BUILD)/src/cpp-generated $(MC_CASADI_BUILD)/src/generated/modelica/java/ifcasadi
1361@HAVE_ANT_TRUE@ cd $(JAVA_CASADI_BUILD_DIR)/OptimicaCompilerCasADi; \
1362@HAVE_ANT_TRUE@ $(ANT_OPTS) $(ANT) clean ; rm -rf $(OC_CASADI_BUILD)/src/cpp-generated $(OC_CASADI_BUILD)/src/generated/optimica/java/ifcasadi
1363
1364clean-python-packages:
1365@PYTHON_ENABLED_TRUE@   if [ -d $(assimulo_build_dir)/Assimulo ]; then \
1366@PYTHON_ENABLED_TRUE@           cd $(assimulo_build_dir)/Assimulo; \
1367@PYTHON_ENABLED_TRUE@           python setup.py clean --all --sundials-home=$(SUNDIALS_HOME); \
1368@PYTHON_ENABLED_TRUE@           cd $(abs_builddir); \
1369@PYTHON_ENABLED_TRUE@   fi;
1370@PYTHON_ENABLED_TRUE@   rm -rf $(assimulo_build_dir) || echo  Could not remove $(assimulo_build_dir)
1371@PYTHON_ENABLED_TRUE@   rm -rf $(assimulo_install_dir) || echo  Could not remove $(assimulo_install_dir)
1372@PYTHON_ENABLED_TRUE@   -cd $(abs_top_srcdir)/Python/src; \
1373@PYTHON_ENABLED_TRUE@   python setup_pymodelica.py clean --all
1374@PYTHON_ENABLED_TRUE@   -rm -rf $(pymodelica_install_dir) || echo  Could not remove $(pymodelica_install_dir)
1375@PYTHON_ENABLED_TRUE@   if [ -d $(pyfmi_build_dir)/PyFMI ]; then \
1376@PYTHON_ENABLED_TRUE@           -cd $(pyfmi_build_dir)/PyFMI; \
1377@PYTHON_ENABLED_TRUE@           python setup.py  clean --all; \
1378@PYTHON_ENABLED_TRUE@           cd $(abs_builddir); \
1379@PYTHON_ENABLED_TRUE@   fi;
1380@PYTHON_ENABLED_TRUE@   -rm -rf $(pyfmi_build_dir) || echo  Could not remove $(pyfmi_build_dir)
1381@PYTHON_ENABLED_TRUE@   -rm -rf $(pyfmi_install_dir) || echo  Could not remove $(pyfmi_install_dir)
1382@PYTHON_ENABLED_TRUE@   -cd $(abs_top_srcdir)/Python/src; \
1383@PYTHON_ENABLED_TRUE@   python setup_pyjmi.py clean --all
1384@PYTHON_ENABLED_TRUE@   -rm -rf $(pyjmi_install_dir)|| echo  Could not remove $(pyjmi_install_dir)
1385
1386clean-frontends:
1387@HAVE_ANT_TRUE@ rm -rf $(JAVA_BUILD_DIR)
1388
1389docs:
1390        cd $(abs_top_srcdir); doxygen doc/ModelicaCompiler/modelica_compiler_doxydoc.conf
1391        cd $(abs_top_srcdir); doxygen doc/OptimicaCompiler/optimica_compiler_doxydoc.conf
1392        make -C $(abs_top_srcdir)/doc/PyJMI html
1393
1394.PHONY: modelicacasadi_wrapper ifcasadi install_modelicacasadi_transfer install_modelicacasadi_wrapper
1395
1396# Tell versions [3.59,3.63) of GNU make to not export all variables.
1397# Otherwise a system limit (for SysV at least) may be exceeded.
1398.NOEXPORT:
Note: See TracBrowser for help on using the repository browser.