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

Last change on this file since 13749 was 13749, checked in by randersson, 8 weeks ago

#5819 Fixed such that the build system identifies correct python libs depending on what type of JModelica that is being built.

File size: 71.2 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@       echo "I am in COMPILE_WITH_IPOPT"
898@COMPILE_WITH_IPOPT_TRUE@       echo "1 2 3 4 - IPOPT_HOME:"
899@COMPILE_WITH_IPOPT_TRUE@       echo $(IPOPT_HOME)
900@COMPILE_WITH_IPOPT_TRUE@       echo "4 3 2 1 - IPOPT64_HOME:"
901@COMPILE_WITH_IPOPT_TRUE@       echo $(IPOPT64_HOME)
902@COMPILE_WITH_IPOPT_TRUE@       echo "CMAKE_CASADI_CXX_FLAG:"
903@COMPILE_WITH_IPOPT_TRUE@       echo $(CMAKE_CASADI_CXX_FLAG)
904@COMPILE_WITH_IPOPT_TRUE@       echo "CMAKE_CASADI_CXX_FLAG64:"
905@COMPILE_WITH_IPOPT_TRUE@       echo $(CMAKE_CASADI_CXX_FLAG64)
906@COMPILE_WITH_IPOPT_TRUE@       echo "CMAKE_PYTHON_LIB:"
907@COMPILE_WITH_IPOPT_TRUE@       echo $(CMAKE_PYTHON_LIB)
908@COMPILE_WITH_IPOPT_TRUE@       echo "CMAKE_PYTHON64_LIB:"
909@COMPILE_WITH_IPOPT_TRUE@       echo $(CMAKE_PYTHON64_LIB)
910@COMPILE_WITH_IPOPT_TRUE@       echo "TMP_CMAKE_CASADI_CXX_FLAG:"
911@COMPILE_WITH_IPOPT_TRUE@       echo $(TMP_CMAKE_CASADI_CXX_FLAG)
912@COMPILE_WITH_IPOPT_TRUE@       cd $(abs_builddir)/ThirdParty/CasADi; \
913@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}"
914@COMPILE_WITH_IPOPT64_TRUE@     echo "I am in COMPILE_WITH_IPOPT64"
915@COMPILE_WITH_IPOPT64_TRUE@     echo "1 2 3 4 - IPOPT_HOME:"
916@COMPILE_WITH_IPOPT64_TRUE@     echo $(IPOPT_HOME)
917@COMPILE_WITH_IPOPT64_TRUE@     echo "4 3 2 1 - IPOPT64_HOME:"
918@COMPILE_WITH_IPOPT64_TRUE@     echo $(IPOPT64_HOME)
919@COMPILE_WITH_IPOPT64_TRUE@     export PATH=$(PYTHON64_HOME):$(PYTHON64_HOME)/Scripts:$(PYTHON64_HOME)/Lib:"${PATH}"; \
920@COMPILE_WITH_IPOPT64_TRUE@     export PYTHONHOME=$(PYTHON64_HOME); \
921@COMPILE_WITH_IPOPT64_TRUE@     cd $(abs_builddir)/ThirdParty/CasADi; \
922@COMPILE_WITH_IPOPT64_TRUE@     make -f Makefile  "SWIGCHECK_BUILD_DIR=$(TMP_SWIGCHECK_BUILD_DIR)" "CASADI_BUILD_DIR=$(TMP_CASADI_BUILD_DIR)" "IPOPT_HOME=$(IPOPT64_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_PYTHON64_LIB}" "CMAKE_PYTHON_INCLUDE=${CMAKE_PYTHON64_INCLUDE}"
923@COMPILE_WITH_IPOPT64_TRUE@     export PYTHONHOME=$(ORIG_PYTHON_HOME); \
924@COMPILE_WITH_IPOPT64_TRUE@     export PATH="$(ORIG_PATH)";
925
926install_casadi: casadi
927@COMPILE_WITH_IPOPT_TRUE@       cd $(abs_builddir)/ThirdParty/CasADi; \
928@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)"
929@COMPILE_WITH_IPOPT_TRUE@       mkdir -p $(DESTDIR)$(prefix)/Python/
930@COMPILE_WITH_IPOPT_TRUE@       cp -r $(TMP_CASADI_PYTHON_INST_DIR)/casadi $(DESTDIR)$(prefix)/Python/
931@COMPILE_WITH_IPOPT_TRUE@       cp $(TMP_CASADI_BUILD_DIR)/swig/casadi_core.py $(DESTDIR)$(prefix)/Python/casadi
932@COMPILE_WITH_IPOPT64_TRUE@     export PATH=$(PYTHON64_HOME):$(PYTHON64_HOME)/Scripts:$(PYTHON64_HOME)/Lib:"${PATH}"; \
933@COMPILE_WITH_IPOPT64_TRUE@     export PYTHONHOME=$(PYTHON64_HOME); 
934@COMPILE_WITH_IPOPT64_TRUE@     cd $(abs_builddir)/ThirdParty/CasADi; \
935@COMPILE_WITH_IPOPT64_TRUE@     make -f Makefile install "SWIGCHECK_BUILD_DIR=$(TMP_SWIGCHECK_BUILD_DIR)" "CASADI_BUILD_DIR=$(TMP_CASADI_BUILD_DIR)" "IPOPT_HOME=$(IPOPT64_HOME)"
936@COMPILE_WITH_IPOPT64_TRUE@     mkdir -p $(DESTDIR)$(prefix)/Python/
937@COMPILE_WITH_IPOPT64_TRUE@     cp -r $(TMP_CASADI_PYTHON_INST_DIR)/casadi $(DESTDIR)$(prefix)/Python_64/
938@COMPILE_WITH_IPOPT64_TRUE@     cp $(TMP_CASADI_BUILD_DIR)/swig/casadi_core.py $(DESTDIR)$(prefix)/Python_64/casadi
939@COMPILE_WITH_IPOPT64_TRUE@     export PYTHONHOME=$(ORIG_PYTHON_HOME); \
940@COMPILE_WITH_IPOPT64_TRUE@     export PATH="$(ORIG_PATH)";
941
942casadi_interface: install_casadi_interface
943build_casadi_interface: casadi modelicacasadi_wrapper
944install_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
945        if [ "$(INSTALL_EXTRA_CASADI)" ]; then exec "$(INSTALL_EXTRA_CASADI)" "$(abs_top_srcdir)" "$(DESTDIR)$(prefix)"; fi
946
947ifcasadi: casadi
948@COMPILE_WITH_IPOPT_TRUE@       mkdir -p $(TMP_MC_BUILD)/ifcasadi; \
949@COMPILE_WITH_IPOPT_TRUE@       cd $(TMP_MC_BUILD)/ifcasadi; \
950@COMPILE_WITH_IPOPT_TRUE@       case $(build) in \
951@COMPILE_WITH_IPOPT_TRUE@       *-cygwin*|*-mingw*) \
952@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)" \
953@COMPILE_WITH_IPOPT_TRUE@           -DIFCASADI_OUTDIR="$(MC_CASADI_BUILD)" -DCASADI_HOME="$(CASADI_HOME)" -DCASADI_BUILD_DIR="$(TMP_CASADI_BUILD_DIR)";; \
954@COMPILE_WITH_IPOPT_TRUE@       *) \
955@COMPILE_WITH_IPOPT_TRUE@       cmake $(MC_SRC_SWIG) \
956@COMPILE_WITH_IPOPT_TRUE@           -DIFCASADI_OUTDIR="$(MC_CASADI_BUILD)" -DCASADI_HOME="$(CASADI_HOME)" -DCASADI_BUILD_DIR="$(TMP_CASADI_BUILD_DIR)";; \
957@COMPILE_WITH_IPOPT_TRUE@       esac
958@COMPILE_WITH_IPOPT_TRUE@       cd $(TMP_MC_BUILD)/ifcasadi;  make
959@COMPILE_WITH_IPOPT64_TRUE@     export PATH=$(PYTHON64_HOME):$(PYTHON64_HOME)/Scripts:$(PYTHON64_HOME)/Lib:"${PATH}";
960@COMPILE_WITH_IPOPT64_TRUE@     export PYTHONHOME=$(PYTHON64_HOME);
961@COMPILE_WITH_IPOPT64_TRUE@     mkdir -p $(TMP_MC_BUILD)/ifcasadi; \
962@COMPILE_WITH_IPOPT64_TRUE@     cd $(TMP_MC_BUILD)/ifcasadi; \
963@COMPILE_WITH_IPOPT64_TRUE@     cmake $(MC_SRC_SWIG) -G "MSYS Makefiles" -DCMAKE_CXX_COMPILER_ARG1="$(TMP_CMAKE_CASADI_CXX_FLAG64)" -DCMAKE_CXX_FLAGS="$(TMP_CMAKE_CASADI_CXX_FLAG64)" \
964@COMPILE_WITH_IPOPT64_TRUE@         -DIFCASADI_OUTDIR="$(MC_CASADI_BUILD)" -DCASADI_HOME="$(CASADI_HOME)" -DCASADI_BUILD_DIR="$(TMP_CASADI_BUILD_DIR)"; \
965@COMPILE_WITH_IPOPT64_TRUE@     cd $(TMP_MC_BUILD)/ifcasadi;  make
966@COMPILE_WITH_IPOPT64_TRUE@     export PYTHONHOME=$(ORIG_PYTHON_HOME); \
967@COMPILE_WITH_IPOPT64_TRUE@     export PATH="$(ORIG_PATH)";
968
969$(TMP_MC_LIB): $(MC_CASADI_BUILD)/bin/ModelicaCompiler.jar $(OC_CASADI_BUILD)/bin/OptimicaCompiler.jar $(MC_CASADI_BUILD)/bin/util.jar ifcasadi
970@COMPILE_WITH_IPOPT_TRUE@       rm -rf $(TMP_MC_LIB)
971@COMPILE_WITH_IPOPT_TRUE@       mkdir -p $(TMP_MC_LIB)
972@COMPILE_WITH_IPOPT_TRUE@       cp $(MC_CASADI_BUILD)/bin/ModelicaCompiler.jar $(TMP_MC_LIB)
973@COMPILE_WITH_IPOPT_TRUE@       cp $(OC_CASADI_BUILD)/bin/OptimicaCompiler.jar $(TMP_MC_LIB)
974@COMPILE_WITH_IPOPT_TRUE@       cp $(MC_CASADI_BUILD)/bin/util.jar $(TMP_MC_LIB)
975@COMPILE_WITH_IPOPT_TRUE@       case $(build) in \
976@COMPILE_WITH_IPOPT_TRUE@       *-cygwin*) \
977@COMPILE_WITH_IPOPT_TRUE@       cp $(TMP_MC_BUILD)/ifcasadi/ifcasadi.dll $(TMP_MC_LIB) ;; \
978@COMPILE_WITH_IPOPT_TRUE@       *-mingw*) \
979@COMPILE_WITH_IPOPT_TRUE@       cp $(TMP_MC_BUILD)/ifcasadi/ifcasadi.dll $(TMP_MC_LIB) ;; \
980@COMPILE_WITH_IPOPT_TRUE@       *) \
981@COMPILE_WITH_IPOPT_TRUE@       cp $(TMP_MC_BUILD)/ifcasadi/libifcasadi.so $(TMP_MC_LIB) ;; \
982@COMPILE_WITH_IPOPT_TRUE@       esac
983@COMPILE_WITH_IPOPT64_TRUE@     rm -rf $(TMP_MC_LIB)
984@COMPILE_WITH_IPOPT64_TRUE@     mkdir -p $(TMP_MC_LIB)
985@COMPILE_WITH_IPOPT64_TRUE@     cp $(MC_CASADI_BUILD)/bin/ModelicaCompiler.jar $(TMP_MC_LIB)
986@COMPILE_WITH_IPOPT64_TRUE@     cp $(OC_CASADI_BUILD)/bin/OptimicaCompiler.jar $(TMP_MC_LIB)
987@COMPILE_WITH_IPOPT64_TRUE@     cp $(MC_CASADI_BUILD)/bin/util.jar $(TMP_MC_LIB)
988@COMPILE_WITH_IPOPT64_TRUE@     cp $(MC_BUILD64)/ifcasadi/ifcasadi.dll $(TMP_MC_LIB)
989
990mc_modelica: ifcasadi
991        cd $(MC_CASADI_BUILD); $(ANT_OPTS) $(ANT) -f "$(JAVA_MC_CASADI_ANT_FILE)" "-Dcompiler=$(COMPILER_DIR)" "-Dtarget=$(MC_CASADI_BUILD)"
992
993mc_optimica: ifcasadi
994        mkdir -p $(OC_CASADI_BUILD)/src/generated/optimica/java
995        cp -pr $(MC_CASADI_BUILD)/src/generated/modelica/java/ifcasadi $(OC_CASADI_BUILD)/src/generated/optimica/java
996        cd $(OC_CASADI_BUILD); $(ANT_OPTS) $(ANT) -f "$(JAVA_OC_CASADI_ANT_FILE)" "-Dcompiler=$(COMPILER_DIR)" "-Dtarget=$(OC_CASADI_BUILD)"
997
998$(MC_CASADI_BUILD)/bin/ModelicaCompiler.jar: mc_modelica
999$(MC_CASADI_BUILD)/bin/util.jar:             mc_modelica
1000$(MC_CASADI_BUILD)/bin/separateProcess.jar:  mc_modelica
1001
1002$(OC_CASADI_BUILD)/bin/OptimicaCompiler.jar: mc_optimica
1003$(OC_CASADI_BUILD)/bin/util.jar:             mc_optimica
1004$(OC_CASADI_BUILD)/bin/separateProcess.jar:  mc_optimica
1005
1006$(TMP_MC_BUILD)/modelicacasadi_wrapper/swig/modelicacasadi_wrapper.py: modelicacasadi_wrapper
1007
1008modelicacasadi_wrapper: $(MC_CASADI_BUILD)/bin/ModelicaCompiler.jar $(OC_CASADI_BUILD)/bin/OptimicaCompiler.jar $(MC_CASADI_BUILD)/bin/util.jar ifcasadi # $(TMP_MC_LIB)
1009@COMPILE_WITH_IPOPT_TRUE@       mkdir -p $(TMP_MC_BUILD)/modelicacasadi_wrapper; \
1010@COMPILE_WITH_IPOPT_TRUE@       cd $(TMP_MC_BUILD)/modelicacasadi_wrapper; \
1011@COMPILE_WITH_IPOPT_TRUE@       case $(build) in \
1012@COMPILE_WITH_IPOPT_TRUE@       *-cygwin*|*-mingw*) \
1013@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)" \
1014@COMPILE_WITH_IPOPT_TRUE@           -DMC_BUILD="$(TMP_MC_BUILD)" -DIPOPT_HOME="$(IPOPT_HOME)" -DCASADI_BUILD_DIR="$(TMP_CASADI_BUILD_DIR)" \
1015@COMPILE_WITH_IPOPT_TRUE@           -DIFCASADI_JAR_BASE="$(JAVA_CASADI_BUILD_DIR)" -DCASADI_HOME="$(CASADI_HOME)" \
1016@COMPILE_WITH_IPOPT_TRUE@           "$(CMAKE_PYTHON_LIB)" "$(CMAKE_PYTHON_INCLUDE)" ;; \
1017@COMPILE_WITH_IPOPT_TRUE@       *) \
1018@COMPILE_WITH_IPOPT_TRUE@       cmake $(MC_INTERFACE) \
1019@COMPILE_WITH_IPOPT_TRUE@           -DMC_BUILD="$(TMP_MC_BUILD)" -DIPOPT_HOME="$(IPOPT_HOME)" -DCASADI_BUILD_DIR="$(TMP_CASADI_BUILD_DIR)" \
1020@COMPILE_WITH_IPOPT_TRUE@           -DIFCASADI_JAR_BASE="$(JAVA_CASADI_BUILD_DIR)" -DCASADI_HOME="$(CASADI_HOME)" \
1021@COMPILE_WITH_IPOPT_TRUE@           "$(CMAKE_PYTHON_LIB)" "$(CMAKE_PYTHON_INCLUDE)" ;; \
1022@COMPILE_WITH_IPOPT_TRUE@       esac
1023@COMPILE_WITH_IPOPT_TRUE@       cd $(TMP_MC_BUILD)/modelicacasadi_wrapper;  make modelicacasadi_wrapper
1024@COMPILE_WITH_IPOPT64_TRUE@     export PATH=$(PYTHON64_HOME):$(PYTHON64_HOME)/Scripts:$(PYTHON64_HOME)/Lib:"${PATH}"; \
1025@COMPILE_WITH_IPOPT64_TRUE@     export PYTHONHOME=$(PYTHON64_HOME); \
1026@COMPILE_WITH_IPOPT64_TRUE@     mkdir -p $(TMP_MC_BUILD)/modelicacasadi_wrapper; \
1027@COMPILE_WITH_IPOPT64_TRUE@     cd $(TMP_MC_BUILD)/modelicacasadi_wrapper; \
1028@COMPILE_WITH_IPOPT64_TRUE@     cmake $(MC_INTERFACE) -G "MSYS Makefiles" -DCMAKE_CXX_COMPILER_ARG1="$(TMP_CMAKE_CASADI_CXX_FLAG64)" -DCMAKE_CXX_FLAGS="$(TMP_CMAKE_CASADI_CXX_FLAG64)" \
1029@COMPILE_WITH_IPOPT64_TRUE@         -DMC_BUILD="$(TMP_MC_BUILD)" -DIPOPT_HOME="$(IPOPT64_HOME)" -DCASADI_BUILD_DIR="$(TMP_CASADI_BUILD_DIR)" \
1030@COMPILE_WITH_IPOPT64_TRUE@         -DIFCASADI_JAR_BASE="$(JAVA_CASADI_BUILD_DIR)" -DCASADI_HOME="$(CASADI_HOME)" \
1031@COMPILE_WITH_IPOPT64_TRUE@         "$(CMAKE_PYTHON64_LIB)" "$(CMAKE_PYTHON64_INCLUDE)"; \
1032@COMPILE_WITH_IPOPT64_TRUE@     cd $(TMP_MC_BUILD)/modelicacasadi_wrapper;  make modelicacasadi_wrapper
1033@COMPILE_WITH_IPOPT64_TRUE@     export PYTHONHOME=$(ORIG_PYTHON_HOME);
1034@COMPILE_WITH_IPOPT64_TRUE@     export PATH="$(ORIG_PATH)";
1035
1036 $(DESTDIR)$(prefix)/Python/modelicacasadi_transfer/__init__.py: install_modelicacasadi_transfer
1037 $(DESTDIR)$(prefix)/Python/modelicacasadi_transfer/modelica_casadi_transfer_wrapper.py: install_modelicacasadi_transfer
1038
1039 $(DESTDIR)$(prefix)/Python/modelicacasadi_wrapper/__init__.py: install_modelicacasadi_wrapper
1040
1041 install_modelicacasadi_wrapper: $(TMP_MC_BUILD)/modelicacasadi_wrapper/swig/modelicacasadi_wrapper.py
1042@COMPILE_WITH_IPOPT_TRUE@       mkdir -p $(DESTDIR)$(prefix)/Python/modelicacasadi_wrapper
1043@COMPILE_WITH_IPOPT_TRUE@       cp $(TMP_MC_BUILD)/modelicacasadi_wrapper/swig/*modelicacasadi_wrapper* $(DESTDIR)$(prefix)/Python/modelicacasadi_wrapper
1044@COMPILE_WITH_IPOPT_TRUE@       rm -f $(DESTDIR)$(prefix)/Python/modelicacasadi_wrapper/__init__.py
1045@COMPILE_WITH_IPOPT_TRUE@       touch $(DESTDIR)$(prefix)/Python/modelicacasadi_wrapper/__init__.py
1046@COMPILE_WITH_IPOPT_TRUE@       echo "from modelicacasadi_wrapper import *" >> $(DESTDIR)$(prefix)/Python/modelicacasadi_wrapper/__init__.py
1047@COMPILE_WITH_IPOPT64_TRUE@     export PATH=$(PYTHON64_HOME):$(PYTHON64_HOME)/Scripts:$(PYTHON64_HOME)/Lib:"${PATH}"; \
1048@COMPILE_WITH_IPOPT64_TRUE@     export PYTHONHOME=$(PYTHON64_HOME);
1049@COMPILE_WITH_IPOPT64_TRUE@     mkdir -p $(DESTDIR)$(prefix)/Python_64/modelicacasadi_wrapper
1050@COMPILE_WITH_IPOPT64_TRUE@     cp $(TMP_MC_BUILD)/modelicacasadi_wrapper/swig/*modelicacasadi_wrapper* $(DESTDIR)$(prefix)/Python_64/modelicacasadi_wrapper
1051@COMPILE_WITH_IPOPT64_TRUE@     rm -f $(DESTDIR)$(prefix)/Python_64/modelicacasadi_wrapper/__init__.py
1052@COMPILE_WITH_IPOPT64_TRUE@     touch $(DESTDIR)$(prefix)/Python_64/modelicacasadi_wrapper/__init__.py
1053@COMPILE_WITH_IPOPT64_TRUE@     echo "from modelicacasadi_wrapper import *" >> $(DESTDIR)$(prefix)/Python_64/modelicacasadi_wrapper/__init__.py
1054@COMPILE_WITH_IPOPT64_TRUE@     export PYTHONHOME=$(ORIG_PYTHON_HOME)
1055@COMPILE_WITH_IPOPT64_TRUE@     export PATH="$(ORIG_PATH)"
1056
1057 install_modelicacasadi_transfer: $(MC_INTERFACE)/python/modelica_casadi_transfer_wrapper.py
1058@COMPILE_WITH_IPOPT_TRUE@       mkdir -p $(DESTDIR)$(prefix)/Python/modelicacasadi_transfer
1059@COMPILE_WITH_IPOPT_TRUE@       rm -f $(DESTDIR)$(prefix)/Python/modelicacasadi_transfer/__init__.py
1060@COMPILE_WITH_IPOPT_TRUE@       touch $(DESTDIR)$(prefix)/Python/modelicacasadi_transfer/__init__.py
1061@COMPILE_WITH_IPOPT_TRUE@       echo "from modelica_casadi_transfer_wrapper import *" >> $(DESTDIR)$(prefix)/Python/modelicacasadi_transfer/__init__.py
1062@COMPILE_WITH_IPOPT_TRUE@       cp $(MC_INTERFACE)/python/modelica_casadi_transfer_wrapper.py $(DESTDIR)$(prefix)/Python/modelicacasadi_transfer
1063@COMPILE_WITH_IPOPT64_TRUE@     mkdir -p $(DESTDIR)$(prefix)/Python_64/modelicacasadi_transfer
1064@COMPILE_WITH_IPOPT64_TRUE@     rm -f $(DESTDIR)$(prefix)/Python_64/modelicacasadi_transfer/__init__.py
1065@COMPILE_WITH_IPOPT64_TRUE@     touch $(DESTDIR)$(prefix)/Python_64/modelicacasadi_transfer/__init__.py
1066@COMPILE_WITH_IPOPT64_TRUE@     echo "from modelica_casadi_transfer_wrapper import *" >> $(DESTDIR)$(prefix)/Python_64/modelicacasadi_transfer/__init__.py
1067@COMPILE_WITH_IPOPT64_TRUE@     cp $(MC_INTERFACE)/python/modelica_casadi_transfer_wrapper.py $(DESTDIR)$(prefix)/Python_64/modelicacasadi_transfer
1068
1069build-python-packages:
1070@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@ mkdir -p $(assimulo_build_dir); \
1071@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@ cd $(assimulo_src_dir)/..; \
1072@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); \
1073@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@ cd $(assimulo_build_dir)/Assimulo; \
1074@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@ case $(build) in \
1075@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@ *-cygwin*) \
1076@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) ;; \
1077@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@ *-mingw*) \
1078@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) ;; \
1079@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@ *) \
1080@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) ;; \
1081@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@ esac
1082@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@@WITH_PYTHON64_TRUE@      mkdir -p $(assimulo_build_dir64); \
1083@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@@WITH_PYTHON64_TRUE@      cd $(assimulo_src_dir)/..; \
1084@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); \
1085@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@@WITH_PYTHON64_TRUE@      cd $(assimulo_build_dir)/Assimulo; \
1086@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@@WITH_PYTHON64_TRUE@      export PATH=$(PYTHON64_HOME):$(PYTHON64_HOME)/Scripts:$(PYTHON64_HOME)/Lib:"${PATH}"; \
1087@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@@WITH_PYTHON64_TRUE@      export PYTHONHOME=$(PYTHON64_HOME); \
1088@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); \
1089@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@@WITH_PYTHON64_TRUE@      export PATH="$(ORIG_PATH)"; \
1090@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_TRUE@@WITH_PYTHON64_TRUE@      export PYTHONHOME=$(ORIG_PYTHON_HOME)
1091@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@        mkdir -p $(assimulo_build_dir); \
1092@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@        cd $(assimulo_src_dir)/..; \
1093@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); \
1094@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@        cd $(assimulo_build_dir)/Assimulo; \
1095@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@        case $(build) in \
1096@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@        *-cygwin*) \
1097@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) ;; \
1098@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@        *-mingw*) \
1099@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) ;; \
1100@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@        *) \
1101@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) ;; \
1102@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@        esac
1103@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@@WITH_PYTHON64_TRUE@     mkdir -p $(assimulo_build_dir64); \
1104@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@@WITH_PYTHON64_TRUE@     cd $(assimulo_src_dir)/..; \
1105@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); \
1106@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@@WITH_PYTHON64_TRUE@     cd $(assimulo_build_dir64)/Assimulo; \
1107@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@@WITH_PYTHON64_TRUE@     export PATH=$(PYTHON64_HOME):$(PYTHON64_HOME)/Scripts:$(PYTHON64_HOME)/Lib:"${PATH}"; \
1108@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@@WITH_PYTHON64_TRUE@     export PYTHONHOME=$(PYTHON64_HOME); \
1109@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) ; \
1110@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@@WITH_PYTHON64_TRUE@     export PATH="$(ORIG_PATH)"; \
1111@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_OPENMP_FALSE@@WITH_PYTHON64_TRUE@     export PYTHONHOME=$(ORIG_PYTHON_HOME)
1112@PYTHON_ENABLED_TRUE@   cd $(abs_top_srcdir)/Python/src; \
1113@PYTHON_ENABLED_TRUE@   python setup_pymodelica.py install --prefix=$(pymodelica_install_dir); \
1114@PYTHON_ENABLED_TRUE@   rm -rf build
1115@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        cd $(abs_top_srcdir)/Python/src; \
1116@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        export PATH=$(PYTHON64_HOME):$(PYTHON64_HOME)/Scripts:$(PYTHON64_HOME)/Lib:"${PATH}"; \
1117@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        export PYTHONHOME=$(PYTHON64_HOME); \
1118@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        python setup_pymodelica.py install --prefix=$(pymodelica_install_dir64); \
1119@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        export PATH="$(ORIG_PATH)"; \
1120@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        export PYTHONHOME=$(ORIG_PYTHON_HOME); \
1121@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        rm -rf build
1122@PYTHON_ENABLED_TRUE@   mkdir -p $(pyfmi_build_dir); \
1123@PYTHON_ENABLED_TRUE@   cd $(abs_top_srcdir)/external; \
1124@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); \
1125@PYTHON_ENABLED_TRUE@   cd $(pyfmi_build_dir)/PyFMI; \
1126@PYTHON_ENABLED_TRUE@   case $(build) in \
1127@PYTHON_ENABLED_TRUE@   *-cygwin*) \
1128@PYTHON_ENABLED_TRUE@   python setup.py install --fmil-home=$(abs_builddir)/FMIL_install$(DEP_SUFFIX)/ $(BUILD_WITH_PYTHON32_ARG) --prefix=$(pyfmi_install_dir) ;; \
1129@PYTHON_ENABLED_TRUE@   *-mingw*) \
1130@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) ;; \
1131@PYTHON_ENABLED_TRUE@   *) \
1132@PYTHON_ENABLED_TRUE@   python setup.py install --fmil-home=$(abs_builddir)/FMIL_install/ --prefix=$(pyfmi_install_dir) ;; \
1133@PYTHON_ENABLED_TRUE@   esac
1134@PYTHON_ENABLED_TRUE@   rm -rf build
1135@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        mkdir -p $(pyfmi_build_dir64); \
1136@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        cd $(abs_top_srcdir)/external; \
1137@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); \
1138@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        cd $(pyfmi_build_dir64)/PyFMI; \
1139@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        export PATH=$(PYTHON64_HOME):$(PYTHON64_HOME)/Scripts:$(PYTHON64_HOME)/Lib:"${PATH}"; \
1140@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        export PYTHONHOME=$(PYTHON64_HOME); \
1141@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); \
1142@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        export PATH="$(ORIG_PATH)"; \
1143@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        export PYTHONHOME=$(ORIG_PYTHON_HOME); \
1144@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        rm -rf build
1145@PYTHON_ENABLED_TRUE@   cd $(abs_top_srcdir)/Python/src; \
1146@PYTHON_ENABLED_TRUE@   python setup_pyjmi.py install --prefix=$(pyjmi_install_dir); \
1147@PYTHON_ENABLED_TRUE@   rm -rf build
1148@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        cd $(abs_top_srcdir)/Python/src; \
1149@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        export PATH=$(PYTHON64_HOME):$(PYTHON64_HOME)/Scripts:$(PYTHON64_HOME)/Lib:"${PATH}"; \
1150@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        export PYTHONHOME=$(PYTHON64_HOME); \
1151@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        python setup_pyjmi.py install --prefix=$(pyjmi_install_dir64); \
1152@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        export PATH="$(ORIG_PATH)"; \
1153@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        export PYTHONHOME=$(ORIG_PYTHON_HOME); \
1154@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        rm -rf build
1155
1156install-python-tests:
1157@PYTHON_ENABLED_TRUE@   chmod ugo+x jm_tests
1158@PYTHON_ENABLED_TRUE@   cp -p jm_tests $(DESTDIR)$(prefix)/jm_tests
1159
1160@PYTHON_ENABLED_TRUE@   cd $(abs_top_srcdir)/Python/src/tests_jmodelica/; \
1161@PYTHON_ENABLED_TRUE@   mkdir -p $(DESTDIR)$(prefix)/Python/tests_jmodelica; \
1162@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
1163@PYTHON_ENABLED_TRUE@   rm -rf $(DESTDIR)$(prefix)/Python/tests_jmodelica/files/Modelica/Resources/src
1164@PYTHON_ENABLED_TRUE@   rm -f $(DESTDIR)$(prefix)/Python/tests_jmodelica/files/Modelica/Resources/CMakeLists.txt
1165@PYTHON_ENABLED_TRUE@   rm -f $(DESTDIR)$(prefix)/Python/tests_jmodelica/files/Modelica/Resources/Makefile.am
1166@PYTHON_ENABLED_TRUE@   rm -f $(DESTDIR)$(prefix)/Python/tests_jmodelica/files/Modelica/Resources/Makefile.in
1167@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        cd $(abs_top_srcdir)/Python/src/tests_jmodelica/; \
1168@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        mkdir -p $(DESTDIR)$(prefix)/Python_64/tests_jmodelica; \
1169@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
1170@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        rm -rf $(DESTDIR)$(prefix)/Python_64/tests_jmodelica/files/Modelica/Resources/src
1171@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        rm -f $(DESTDIR)$(prefix)/Python_64/tests_jmodelica/files/Modelica/Resources/CMakeLists.txt
1172@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        rm -f $(DESTDIR)$(prefix)/Python_64/tests_jmodelica/files/Modelica/Resources/Makefile.am
1173@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        rm -f $(DESTDIR)$(prefix)/Python_64/tests_jmodelica/files/Modelica/Resources/Makefile.in
1174
1175install-python-packages: build-python-packages install-python-tests
1176@PYTHON_ENABLED_TRUE@   mkdir -p $(DESTDIR)$(prefix)/Python
1177@PYTHON_ENABLED_TRUE@   cp $(abs_top_srcdir)/Python/src/startup.py $(DESTDIR)$(prefix)/
1178@PYTHON_ENABLED_TRUE@   cp Python/src/required_defaults.py $(DESTDIR)$(prefix)/Python/
1179@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
1180@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        mkdir -p $(DESTDIR)$(prefix)/Python_64
1181@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@@WITH_PYTHON64_TRUE@        cp Python/src/required_defaults.py $(DESTDIR)$(prefix)/Python_64/
1182@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
1183@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 \
1184@PYTHON_ENABLED_TRUE@   if [ -e $(assimulo_install_dir)/$${pkgdir}/site-packages/ ]; \
1185@PYTHON_ENABLED_TRUE@   then \
1186@PYTHON_ENABLED_TRUE@   cd $(assimulo_install_dir)/$${pkgdir}/site-packages/; \
1187@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; \
1188@PYTHON_ENABLED_TRUE@   fi; \
1189@PYTHON_ENABLED_TRUE@   done
1190@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 \
1191@PYTHON_ENABLED_TRUE@   if [ -e $(pymodelica_install_dir)/$${pkgdir}/site-packages/ ]; \
1192@PYTHON_ENABLED_TRUE@   then \
1193@PYTHON_ENABLED_TRUE@   cd $(pymodelica_install_dir)/$${pkgdir}/site-packages/; \
1194@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; \
1195@PYTHON_ENABLED_TRUE@   fi; \
1196@PYTHON_ENABLED_TRUE@   done
1197@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 \
1198@PYTHON_ENABLED_TRUE@   if [ -e $(pyjmi_install_dir)/$${pkgdir}/site-packages/ ]; \
1199@PYTHON_ENABLED_TRUE@   then \
1200@PYTHON_ENABLED_TRUE@   cd $(pyjmi_install_dir)/$${pkgdir}/site-packages/; \
1201@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; \
1202@PYTHON_ENABLED_TRUE@   fi; \
1203@PYTHON_ENABLED_TRUE@   done
1204@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 \
1205@PYTHON_ENABLED_TRUE@   if [ -e $(pyfmi_install_dir)/$${pkgdir}/site-packages/ ]; \
1206@PYTHON_ENABLED_TRUE@   then \
1207@PYTHON_ENABLED_TRUE@   cd $(pyfmi_install_dir)/$${pkgdir}/site-packages/; \
1208@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; \
1209@PYTHON_ENABLED_TRUE@   fi; \
1210@PYTHON_ENABLED_TRUE@   done
1211@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 \
1212@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    if [ -e $(assimulo_install_dir64)/$${pkgdir}/site-packages/ ]; \
1213@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    then \
1214@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    cd $(assimulo_install_dir64)/$${pkgdir}/site-packages/; \
1215@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; \
1216@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    fi; \
1217@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    done
1218@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 \
1219@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    if [ -e $(pymodelica_install_dir64)/$${pkgdir}/site-packages/ ]; \
1220@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    then \
1221@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    cd $(pymodelica_install_dir64)/$${pkgdir}/site-packages/; \
1222@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; \
1223@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    fi; \
1224@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    done
1225@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 \
1226@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    if [ -e $(pyjmi_install_dir64)/$${pkgdir}/site-packages/ ]; \
1227@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    then \
1228@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    cd $(pyjmi_install_dir64)/$${pkgdir}/site-packages/; \
1229@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; \
1230@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    fi; \
1231@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    done
1232@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 \
1233@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    if [ -e $(pyfmi_install_dir64)/$${pkgdir}/site-packages/ ]; \
1234@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    then \
1235@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    cd $(pyfmi_install_dir64)/$${pkgdir}/site-packages/; \
1236@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; \
1237@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    fi; \
1238@JM_WIN64_TRUE@@PYTHON_ENABLED_TRUE@    done
1239@PYTHON_ENABLED_TRUE@   mkdir -p $(DESTDIR)$(prefix)/bin
1240@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
1241@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
1242@PYTHON_ENABLED_TRUE@   chmod ugo+x $(DESTDIR)$(prefix)/bin/jm_*.sh
1243
1244all-local: build-python-packages build-compiler $(abs_builddir)/version.txt build-extra
1245
1246$(abs_builddir)/version.txt: TODO-always-trigger
1247        $(abs_top_srcdir)/get_version.sh $(abs_top_srcdir) https://svn.jmodelica.org > $(@)
1248
1249build-extra: TODO-always-trigger
1250        if [ "$(BUILD_EXTRA)" ]; then exec "$(BUILD_EXTRA)" "$(abs_top_srcdir)" "$(DESTDIR)$(prefix)"; fi
1251
1252install-exec-local: install-python-packages install-compiler install-modules
1253        [ $(abs_top_srcdir) == $(DESTDIR)$(prefix) ] && echo "Installing in dist directory, don't copy LICENSE file" || cp $(abs_top_srcdir)/LICENSE $(DESTDIR)$(prefix)/
1254        cp $(abs_top_srcdir)/RuntimeLibrary/LICENSE_GPL $(DESTDIR)$(prefix)/lib/
1255        cp $(abs_top_srcdir)/RuntimeLibrary/LICENSE_CPL $(DESTDIR)$(prefix)/lib/
1256        cp $(abs_top_srcdir)/RuntimeLibrary/LICENSE_GPL $(DESTDIR)$(prefix)/include/
1257        cp $(abs_top_srcdir)/RuntimeLibrary/LICENSE_CPL $(DESTDIR)$(prefix)/include/
1258        mkdir -p $(DESTDIR)$(prefix)/Makefiles
1259        cp $(abs_top_srcdir)/RuntimeLibrary/LICENSE_GPL $(DESTDIR)$(prefix)/Makefiles/LICENSE
1260        case $(build) in \
1261        *-cygwin*|*-mingw*) \
1262        cp $(abs_top_srcdir)/RuntimeLibrary/Makefiles/Makefile.windows $(DESTDIR)$(prefix)/Makefiles/MakeFile && \
1263        mkdir -p $(DESTDIR)$(prefix)/ThirdParty/winpthreads/lib/winpthreads && \
1264        mkdir -p $(DESTDIR)$(prefix)/ThirdParty/winpthreads/include && \
1265        cp $(abs_builddir)/winpthreads_build/COPYING $(DESTDIR)$(prefix)/ThirdParty/winpthreads && \
1266        cp $(abs_builddir)/winpthreads_build/.libs/libwinpthread.a $(DESTDIR)$(prefix)/ThirdParty/winpthreads/lib/winpthreads && \
1267        cp $(abs_builddir)/winpthreads_build/include/*.h $(DESTDIR)$(prefix)/ThirdParty/winpthreads/include ;; \
1268        *-apple*) \
1269        cp $(abs_top_srcdir)/RuntimeLibrary/Makefiles/Makefile.macosx $(DESTDIR)$(prefix)/Makefiles/MakeFile ;; \
1270        *) \
1271        cp $(abs_top_srcdir)/RuntimeLibrary/Makefiles/Makefile.linux $(DESTDIR)$(prefix)/Makefiles/MakeFile ;; \
1272        esac
1273
1274        mkdir -p $(DESTDIR)$(prefix)/ThirdParty
1275        mkdir -p $(DESTDIR)$(prefix)/ThirdParty/Sundials
1276        cp -r $(SUNDIALS_HOME)/* $(DESTDIR)$(prefix)/ThirdParty/Sundials
1277        cp $(abs_top_srcdir)/ThirdParty/Sundials/sundials-2.7.0/LICENSE $(DESTDIR)$(prefix)/ThirdParty/Sundials
1278@JM_WIN64_TRUE@ mkdir -p $(DESTDIR)$(prefix)/ThirdParty/Sundials/lib64
1279@JM_WIN64_TRUE@ cp -r $(SUNDIALS_HOME)64/lib/* $(DESTDIR)$(prefix)/ThirdParty/Sundials/lib64
1280@JM_WIN64_TRUE@ mkdir -p $(DESTDIR)$(prefix)/ThirdParty/winpthreads/lib/winpthreads64
1281@JM_WIN64_TRUE@ cp $(abs_builddir)/winpthreads_build64/.libs/libwinpthread.a $(DESTDIR)$(prefix)/ThirdParty/winpthreads/lib/winpthreads64
1282        mkdir -p $(DESTDIR)$(prefix)/ThirdParty/Minpack
1283        cp -r $(MINPACK_HOME)/* $(DESTDIR)$(prefix)/ThirdParty/Minpack
1284        cp $(abs_top_srcdir)/ThirdParty/Minpack/cminpack-1.3.2/CopyrightMINPACK.txt $(DESTDIR)$(prefix)/ThirdParty/Minpack
1285        if [ $(abs_top_srcdir) == $(DESTDIR)$(prefix) ]; then \
1286          echo "Installing in dist directory, don't copy MSL"; \
1287        else \
1288          mkdir -p "$(DESTDIR)$(prefix)/ThirdParty/MSL/Modelica"; \
1289          mkdir -p "$(DESTDIR)$(prefix)/ThirdParty/MSL/ModelicaServices"; \
1290          cd "$(DESTDIR)$(prefix)/ThirdParty/MSL"; \
1291          find . -depth -print0 | while read -d $$'\0' -r f ; do if [ ! -e "$(abs_top_srcdir)/ThirdParty/MSL/$${f}" ]; then rm -rf "$${f}"; fi; done; \
1292          cd "$(abs_top_srcdir)/ThirdParty/MSL/Modelica"; \
1293          find * -type f |grep -v /.svn | grep -v ~ |tar c -T - -f - | tar x -C "$(DESTDIR)$(prefix)/ThirdParty/MSL/Modelica"; \
1294          cd "$(abs_top_srcdir)/ThirdParty/MSL/ModelicaServices"; \
1295          find * -type f |grep -v /.svn | grep -v ~ |tar c -T - -f - | tar x -C "$(DESTDIR)$(prefix)/ThirdParty/MSL/ModelicaServices"; \
1296          cd "$(abs_top_srcdir)/ThirdParty/MSL"; \
1297          $(CP) Complex.mo "$(DESTDIR)$(prefix)/ThirdParty/MSL"; \
1298        fi
1299        mkdir -p $(DESTDIR)$(prefix)/CodeGenTemplates
1300        mkdir -p $(DESTDIR)$(prefix)/CodeGenTemplates/FMIBase
1301        cp $(abs_top_srcdir)/RuntimeLibrary/LICENSE_GPL $(DESTDIR)$(prefix)/CodeGenTemplates/LICENSE
1302        cp -r $(abs_top_srcdir)/Compiler/ModelicaCBackEnd/templates/*.c $(DESTDIR)$(prefix)/CodeGenTemplates
1303        cp -r $(abs_top_srcdir)/Compiler/ModelicaCBackEnd/templates/FMIBase/*.c $(DESTDIR)$(prefix)/CodeGenTemplates/FMIBase
1304        cp -r $(abs_top_srcdir)/Compiler/ModelicaCBackEnd/templates/FMIBase/*.h $(DESTDIR)$(prefix)/CodeGenTemplates/FMIBase
1305        cp  $(abs_top_srcdir)/Compiler/ModelicaFMUXBackEnd/templates/*.tpl $(DESTDIR)$(prefix)/CodeGenTemplates
1306        mkdir -p $(DESTDIR)$(prefix)/XML
1307        [ $(abs_top_srcdir) == $(DESTDIR)$(prefix) ] && echo "Installing in dist directory, don't copy XML schemas"  || cp  $(abs_top_srcdir)/XML/*.xsd $(DESTDIR)$(prefix)/XML
1308        [ $(abs_top_srcdir) == $(DESTDIR)$(prefix) ] && echo "Installing in dist directory, don't copy XML LICENSE"  || cp  $(abs_top_srcdir)/XML/LICENSE $(DESTDIR)$(prefix)/XML
1309        cp  $(abs_builddir)/version.txt $(DESTDIR)$(prefix)
1310        if [ "$(INSTALL_EXTRA)" ]; then exec "$(INSTALL_EXTRA)" "$(abs_top_srcdir)" "$(DESTDIR)$(prefix)"; fi
1311
1312install-compiler: $(ant_output_jars) $(ant_output_options)
1313@HAVE_ANT_TRUE@ mkdir -p $(DESTDIR)$(prefix)/lib/
1314@HAVE_ANT_TRUE@ install -t $(DESTDIR)$(prefix)/lib/ $(ant_output_jars)
1315@HAVE_ANT_TRUE@ install -t $(DESTDIR)$(prefix)/ $(ant_output_options)
1316
1317$(ant_output_jars) $(ant_output_options): build-compiler
1318
1319build-compiler: TODO-always-trigger
1320@HAVE_ANT_TRUE@ mkdir -p $(JAVA_BUILD_DIR)
1321@HAVE_ANT_TRUE@ cd $(JAVA_BUILD_DIR); \
1322@HAVE_ANT_TRUE@ $(ANT_OPTS) $(ANT) -f "$(JAVA_MC_ANT_FILE)" "-Dcompiler=$(COMPILER_DIR)" "-Dtarget=$(JAVA_BUILD_DIR)"
1323@HAVE_ANT_TRUE@ cd $(JAVA_BUILD_DIR); \
1324@HAVE_ANT_TRUE@ $(ANT_OPTS) $(ANT) -f "$(JAVA_OC_ANT_FILE)" "-Dcompiler=$(COMPILER_DIR)" "-Dtarget=$(JAVA_BUILD_DIR)"
1325
1326# Dummy target used to always trigger rebuilds. Used to enable references to
1327# outputs from phony targets as real targets. For example ant output.
1328TODO-always-trigger: ;
1329
1330install-modules: install-modules-ModelicaFrontEnd
1331
1332install-modules-ModelicaFrontEnd: $(BEAVER_INSTALL_DIR)/LICENSE $(BEAVER_INSTALL_DIR)/lib/beaver-rt.jar
1333
1334$(BEAVER_INSTALL_DIR)/%: $(BEAVER_SOURCE)/%
1335        install -D $(<) $(@)
1336
1337bindistdir: install
1338        rm -rf $(bindistdir)
1339        mkdir -p $(bindistdir)
1340        cp $(DESTDIR)$(prefix)/LICENSE $(bindistdir)
1341        cp $(DESTDIR)$(prefix)/startup.py $(bindistdir)
1342        cp $(DESTDIR)$(prefix)/version.txt $(bindistdir)
1343        cp $(DESTDIR)$(prefix)/DefaultOptions.xml $(bindistdir)
1344        cp -r $(DESTDIR)$(prefix)/CodeGenTemplates $(bindistdir)
1345        cp -r $(DESTDIR)$(prefix)/Makefiles $(bindistdir)
1346        cp -r $(DESTDIR)$(prefix)/Python $(bindistdir)
1347        cp -r $(DESTDIR)$(prefix)/ThirdParty $(bindistdir)
1348        cp -r $(DESTDIR)$(prefix)/XML $(bindistdir)
1349        cp -r $(DESTDIR)$(prefix)/include $(bindistdir)
1350        cp -r $(DESTDIR)$(prefix)/lib $(bindistdir)
1351@COMPILE_WITH_IPOPT_TRUE@       mkdir -p $(bindistdir)/ThirdParty/Ipopt
1352# Copy files
1353@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
1354# Copy symbolic links
1355@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
1356
1357@WITH_MINGW_TRUE@       mkdir -p $(bindistdir)/ThirdParty/MinGW
1358# Copy files
1359@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
1360# Copy symbolic links
1361@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
1362
1363bindist: bindistdir
1364        tar -cf $(bindistdir).tar $(bindistdir)
1365        gzip -c $(bindistdir).tar > $(bindistdir).tar.gz
1366        rm -rf $(bindistdir)
1367        rm -rf $(bindistdir).tar
1368
1369test: install
1370        $(prefix)/jm_tests -i
1371
1372clean-local: clean-frontends clean-python-packages clean-casadi-interface
1373
1374clean-casadi-interface:
1375        rm -rf $(MC_BUILD)
1376        rm -rf $(MC_BUILD64)
1377#       rm -rf $(DESTDIR)$(prefix)/Python/casadi
1378#       rm -rf $(DESTDIR)$(prefix)/Python/modelicacasadi_transfer
1379@HAVE_ANT_TRUE@ cd $(JAVA_CASADI_BUILD_DIR)/ModelicaCompilerCasADi; \
1380@HAVE_ANT_TRUE@ $(ANT_OPTS) $(ANT) clean ; rm -rf $(MC_CASADI_BUILD)/src/cpp-generated $(MC_CASADI_BUILD)/src/generated/modelica/java/ifcasadi
1381@HAVE_ANT_TRUE@ cd $(JAVA_CASADI_BUILD_DIR)/OptimicaCompilerCasADi; \
1382@HAVE_ANT_TRUE@ $(ANT_OPTS) $(ANT) clean ; rm -rf $(OC_CASADI_BUILD)/src/cpp-generated $(OC_CASADI_BUILD)/src/generated/optimica/java/ifcasadi
1383
1384clean-python-packages:
1385@PYTHON_ENABLED_TRUE@   if [ -d $(assimulo_build_dir)/Assimulo ]; then \
1386@PYTHON_ENABLED_TRUE@           cd $(assimulo_build_dir)/Assimulo; \
1387@PYTHON_ENABLED_TRUE@           python setup.py clean --all --sundials-home=$(SUNDIALS_HOME); \
1388@PYTHON_ENABLED_TRUE@           cd $(abs_builddir); \
1389@PYTHON_ENABLED_TRUE@   fi;
1390@PYTHON_ENABLED_TRUE@   rm -rf $(assimulo_build_dir) || echo  Could not remove $(assimulo_build_dir)
1391@PYTHON_ENABLED_TRUE@   rm -rf $(assimulo_install_dir) || echo  Could not remove $(assimulo_install_dir)
1392@PYTHON_ENABLED_TRUE@   -cd $(abs_top_srcdir)/Python/src; \
1393@PYTHON_ENABLED_TRUE@   python setup_pymodelica.py clean --all
1394@PYTHON_ENABLED_TRUE@   -rm -rf $(pymodelica_install_dir) || echo  Could not remove $(pymodelica_install_dir)
1395@PYTHON_ENABLED_TRUE@   if [ -d $(pyfmi_build_dir)/PyFMI ]; then \
1396@PYTHON_ENABLED_TRUE@           -cd $(pyfmi_build_dir)/PyFMI; \
1397@PYTHON_ENABLED_TRUE@           python setup.py  clean --all; \
1398@PYTHON_ENABLED_TRUE@           cd $(abs_builddir); \
1399@PYTHON_ENABLED_TRUE@   fi;
1400@PYTHON_ENABLED_TRUE@   -rm -rf $(pyfmi_build_dir) || echo  Could not remove $(pyfmi_build_dir)
1401@PYTHON_ENABLED_TRUE@   -rm -rf $(pyfmi_install_dir) || echo  Could not remove $(pyfmi_install_dir)
1402@PYTHON_ENABLED_TRUE@   -cd $(abs_top_srcdir)/Python/src; \
1403@PYTHON_ENABLED_TRUE@   python setup_pyjmi.py clean --all
1404@PYTHON_ENABLED_TRUE@   -rm -rf $(pyjmi_install_dir)|| echo  Could not remove $(pyjmi_install_dir)
1405
1406clean-frontends:
1407@HAVE_ANT_TRUE@ rm -rf $(JAVA_BUILD_DIR)
1408
1409docs:
1410        cd $(abs_top_srcdir); doxygen doc/ModelicaCompiler/modelica_compiler_doxydoc.conf
1411        cd $(abs_top_srcdir); doxygen doc/OptimicaCompiler/optimica_compiler_doxydoc.conf
1412        make -C $(abs_top_srcdir)/doc/PyJMI html
1413
1414.PHONY: modelicacasadi_wrapper ifcasadi install_modelicacasadi_transfer install_modelicacasadi_wrapper
1415
1416# Tell versions [3.59,3.63) of GNU make to not export all variables.
1417# Otherwise a system limit (for SysV at least) may be exceeded.
1418.NOEXPORT:
Note: See TracBrowser for help on using the repository browser.