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

Last change on this file since 13915 was 13915, checked in by randersson, 6 weeks ago

#5819 Added back r13092 without including with the changes in the Makefile, for some mysterious reason it seems to loop itself and rebuild the same target over and over. Iniitally it was thought that it looped because it missed a cd ... but it appears while trying locally it still looped. Instead of wasting more time on the minor modification we stick with this change

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