Ignore:
Timestamp:
Feb 25, 2008 8:59:46 AM (14 years ago)
Author:
andreasw
Message:

first version of ThirdParty?/HSL that can be used to build a loadable HSL library that can be included from Ipopt at runtime. It is activated with the --enable-loadable-library flag. It should work on everything where BuildTools? can make shared libraries, as well on Cygwin with GCC and MSVC and Intel icl. Will now try it on MinGW

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/HSL/trunk/Makefile.in

    r904 r945  
    1515@SET_MAKE@
    1616
    17 # Copyright (C) 2003, 2007 International Business Machines and others
     17# Copyright (C) 2003, 2008 International Business Machines and others
    1818# All Rights Reserved.
    1919# This file is distributed under the Common Public License.
     
    5757@COIN_HAS_MA28_TRUE@    mc21ad.f mc22ad.f mc23ad.f mc24ad.f
    5858
     59@EXTRA_SHARED_COMMAND_FALSE@@INSTALL_LOADABLE_LIBRARY_TRUE@am__append_5 = libhsl.la
    5960DIST_COMMON = $(am__configure_deps) \
    6061        $(srcdir)/../../BuildTools/Makemain.inc \
     
    6465        $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
    6566        $(top_srcdir)/configure
    66 @HAVE_EXTERNALS_TRUE@am__append_5 = Externals
    67 @HAVE_EXTERNALS_TRUE@am__append_6 = .Externals-stamp
     67@HAVE_EXTERNALS_TRUE@am__append_6 = Externals
     68@HAVE_EXTERNALS_TRUE@am__append_7 = .Externals-stamp
    6869subdir = .
    6970ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
     
    7677mkinstalldirs = $(install_sh) -d
    7778CONFIG_CLEAN_FILES =
    78 LTLIBRARIES = $(noinst_LTLIBRARIES)
     79am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
     80am__vpath_adj = case $$p in \
     81    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
     82    *) f=$$p;; \
     83  esac;
     84am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
     85am__installdirs = "$(DESTDIR)$(libdir)"
     86libLTLIBRARIES_INSTALL = $(INSTALL)
     87LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES)
    7988libcoinhsl_la_LIBADD =
    8089@COIN_HAS_MA27_TRUE@am__objects_1 = ma27ad.lo
     
    8796        $(am__objects_2) $(am__objects_3) $(am__objects_4)
    8897libcoinhsl_la_OBJECTS = $(nodist_libcoinhsl_la_OBJECTS)
     98libhsl_la_LIBADD =
     99am__libhsl_la_SOURCES_DIST = nodist_libcoinhsl_la_SOURCES
     100am_libhsl_la_OBJECTS =
     101libhsl_la_OBJECTS = $(am_libhsl_la_OBJECTS)
     102@EXTRA_SHARED_COMMAND_FALSE@@INSTALL_LOADABLE_LIBRARY_TRUE@am_libhsl_la_rpath = -rpath \
     103@EXTRA_SHARED_COMMAND_FALSE@@INSTALL_LOADABLE_LIBRARY_TRUE@     $(libdir)
    89104DEFAULT_INCLUDES = -I. -I$(srcdir)
    90105depcomp = $(SHELL) $(top_srcdir)/../../depcomp
     
    104119F77LINK = $(LIBTOOL) --tag=F77 --mode=link $(F77LD) $(AM_FFLAGS) \
    105120        $(FFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
    106 SOURCES = $(nodist_libcoinhsl_la_SOURCES)
    107 DIST_SOURCES =
     121SOURCES = $(nodist_libcoinhsl_la_SOURCES) $(libhsl_la_SOURCES)
     122DIST_SOURCES = $(am__libhsl_la_SOURCES_DIST)
    108123ETAGS = etags
    109124CTAGS = ctags
     
    156171DBG_CFLAGS = @DBG_CFLAGS@
    157172DBG_FFLAGS = @DBG_FFLAGS@
     173DEFFILE = @DEFFILE@
    158174DEFS = @DEFS@
    159175DEPDIR = @DEPDIR@
     
    164180EGREP = @EGREP@
    165181EXEEXT = @EXEEXT@
     182EXPORT_SYMBOLS = @EXPORT_SYMBOLS@
     183EXTRA_SHARED_COMMAND_FALSE = @EXTRA_SHARED_COMMAND_FALSE@
     184EXTRA_SHARED_COMMAND_TRUE = @EXTRA_SHARED_COMMAND_TRUE@
    166185F77 = @F77@
     186F77_DLL_LINKFLAGS = @F77_DLL_LINKFLAGS@
     187F77_SHARED_CMD = @F77_SHARED_CMD@
    167188FADDLIBS = @FADDLIBS@
    168189FFLAGS = @FFLAGS@
    169190HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    170191HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
     192HSL_SHARED_LIB = @HSL_SHARED_LIB@
    171193INSTALL_DATA = @INSTALL_DATA@
     194INSTALL_LOADABLE_LIBRARY_FALSE = @INSTALL_LOADABLE_LIBRARY_FALSE@
     195INSTALL_LOADABLE_LIBRARY_TRUE = @INSTALL_LOADABLE_LIBRARY_TRUE@
    172196INSTALL_PROGRAM = @INSTALL_PROGRAM@
    173197INSTALL_SCRIPT = @INSTALL_SCRIPT@
     
    188212MPICC = @MPICC@
    189213MPIF77 = @MPIF77@
     214NEED_DEFFILE_FALSE = @NEED_DEFFILE_FALSE@
     215NEED_DEFFILE_TRUE = @NEED_DEFFILE_TRUE@
    190216OBJEXT = @OBJEXT@
    191217OPT_CFLAGS = @OPT_CFLAGS@
     
    259285target_alias = @target_alias@
    260286AUTOMAKE_OPTIONS = foreign
    261 EXTRA_DIST = INSTALL.HSL $(am__append_5)
     287EXTRA_DIST = INSTALL.HSL $(am__append_6)
    262288noinst_LTLIBRARIES = libcoinhsl.la
    263289nodist_libcoinhsl_la_SOURCES = dummy.c $(am__append_1) $(am__append_2) \
    264290        $(am__append_3) $(am__append_4)
     291lib_LTLIBRARIES = $(am__append_5)
     292@EXTRA_SHARED_COMMAND_FALSE@@INSTALL_LOADABLE_LIBRARY_TRUE@libhsl_la_SOURCES = nodist_libcoinhsl_la_SOURCES
    265293libcoinhsl_la_LDFLAGS = $(LT_LDFLAGS)
     294@EXTRA_SHARED_COMMAND_TRUE@CLEANFILES = $(HSL_SHARED_LIB) $(DEFFILE)
    266295
    267296########################################################################
     
    270299
    271300# Files that are generated and should be cleaned with make distclean
    272 DISTCLEANFILES = $(am__append_6) $(VPATH_DISTCLEANFILES)
     301DISTCLEANFILES = $(am__append_7) $(VPATH_DISTCLEANFILES)
    273302DocFiles = README AUTHORS LICENSE
    274303DocInstallDir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)
     
    310339$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
    311340        cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
     341install-libLTLIBRARIES: $(lib_LTLIBRARIES)
     342        @$(NORMAL_INSTALL)
     343        test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
     344        @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
     345          if test -f $$p; then \
     346            f=$(am__strip_dir) \
     347            echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
     348            $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
     349          else :; fi; \
     350        done
     351
     352uninstall-libLTLIBRARIES:
     353        @$(NORMAL_UNINSTALL)
     354        @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
     355          p=$(am__strip_dir) \
     356          echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
     357          $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
     358        done
     359
     360clean-libLTLIBRARIES:
     361        -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
     362        @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
     363          dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
     364          test "$$dir" != "$$p" || dir=.; \
     365          echo "rm -f \"$${dir}/so_locations\""; \
     366          rm -f "$${dir}/so_locations"; \
     367        done
    312368
    313369clean-noinstLTLIBRARIES:
     
    321377libcoinhsl.la: $(libcoinhsl_la_OBJECTS) $(libcoinhsl_la_DEPENDENCIES)
    322378        $(F77LINK)  $(libcoinhsl_la_LDFLAGS) $(libcoinhsl_la_OBJECTS) $(libcoinhsl_la_LIBADD) $(LIBS)
     379libhsl.la: $(libhsl_la_OBJECTS) $(libhsl_la_DEPENDENCIES)
     380        $(LINK) $(am_libhsl_la_rpath) $(libhsl_la_LDFLAGS) $(libhsl_la_OBJECTS) $(libhsl_la_LIBADD) $(LIBS)
    323381
    324382mostlyclean-compile:
     
    549607all-am: Makefile $(LTLIBRARIES)
    550608installdirs:
     609        for dir in "$(DESTDIR)$(libdir)"; do \
     610          test -z "$$dir" || $(mkdir_p) "$$dir"; \
     611        done
    551612install: install-am
    552613install-exec: install-exec-am
     
    566627
    567628clean-generic:
     629        -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
    568630
    569631distclean-generic:
     
    574636        @echo "This command is intended for maintainers to use"
    575637        @echo "it deletes files that may require special tools to rebuild."
     638@EXTRA_SHARED_COMMAND_FALSE@uninstall-local:
     639@EXTRA_SHARED_COMMAND_FALSE@install-exec-local:
    576640clean: clean-am
    577641
    578 clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
    579         mostlyclean-am
     642clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
     643        clean-noinstLTLIBRARIES mostlyclean-am
    580644
    581645distclean: distclean-am
     
    598662install-data-am:
    599663
    600 install-exec-am:
     664install-exec-am: install-exec-local install-libLTLIBRARIES
    601665
    602666install-info: install-info-am
     
    626690ps-am:
    627691
    628 uninstall-am: uninstall-info-am
     692uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES \
     693        uninstall-local
    629694
    630695.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
    631         clean-generic clean-libtool clean-noinstLTLIBRARIES ctags dist \
    632         dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip \
    633         distcheck distclean distclean-compile distclean-generic \
    634         distclean-libtool distclean-tags distcleancheck distdir \
    635         distuninstallcheck dvi dvi-am html html-am info info-am \
    636         install install-am install-data install-data-am install-exec \
    637         install-exec-am install-info install-info-am install-man \
    638         install-strip installcheck installcheck-am installdirs \
    639         maintainer-clean maintainer-clean-generic mostlyclean \
    640         mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
    641         pdf pdf-am ps ps-am tags uninstall uninstall-am \
    642         uninstall-info-am
    643 
     696        clean-generic clean-libLTLIBRARIES clean-libtool \
     697        clean-noinstLTLIBRARIES ctags dist dist-all dist-bzip2 \
     698        dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \
     699        distclean-compile distclean-generic distclean-libtool \
     700        distclean-tags distcleancheck distdir distuninstallcheck dvi \
     701        dvi-am html html-am info info-am install install-am \
     702        install-data install-data-am install-exec install-exec-am \
     703        install-exec-local install-info install-info-am \
     704        install-libLTLIBRARIES install-man install-strip installcheck \
     705        installcheck-am installdirs maintainer-clean \
     706        maintainer-clean-generic mostlyclean mostlyclean-compile \
     707        mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
     708        tags uninstall uninstall-am uninstall-info-am \
     709        uninstall-libLTLIBRARIES uninstall-local
     710
     711
     712#############################################################################
     713#  Generating a shared library for delay loading
     714
     715@EXTRA_SHARED_COMMAND_TRUE@$(HSL_SHARED_LIB): $(noinst_LTLIBRARIES) $(DEFFILE)
     716@EXTRA_SHARED_COMMAND_TRUE@     bla=; \
     717@EXTRA_SHARED_COMMAND_TRUE@     for i in $(nodist_libcoinhsl_la_SOURCES); do \
     718@EXTRA_SHARED_COMMAND_TRUE@       case $$i in \
     719@EXTRA_SHARED_COMMAND_TRUE@         *.f) \
     720@EXTRA_SHARED_COMMAND_TRUE@           obj=`echo $$i| sed -e 's|\(.*\).[cf]|.libs/\1.$(OBJEXT)|g'` ;\
     721@EXTRA_SHARED_COMMAND_TRUE@           if test -r $$obj; then \
     722@EXTRA_SHARED_COMMAND_TRUE@             bla="$$bla $$obj" ;\
     723@EXTRA_SHARED_COMMAND_TRUE@           else \
     724@EXTRA_SHARED_COMMAND_TRUE@             bla="$$bla `echo $$i| sed -e 's|\(.*\).[cf]|\1.$(OBJEXT)|g'`" ;\
     725@EXTRA_SHARED_COMMAND_TRUE@           fi ;\
     726@EXTRA_SHARED_COMMAND_TRUE@           ;; \
     727@EXTRA_SHARED_COMMAND_TRUE@       esac ;\
     728@EXTRA_SHARED_COMMAND_TRUE@     done ;\
     729@EXTRA_SHARED_COMMAND_TRUE@     $(F77_SHARED_CMD) $$bla -o $(HSL_SHARED_LIB) $(F77_DLL_LINKFLAGS)
     730
     731@EXTRA_SHARED_COMMAND_TRUE@@NEED_DEFFILE_TRUE@$(DEFFILE): config.status
     732@EXTRA_SHARED_COMMAND_TRUE@@NEED_DEFFILE_TRUE@  echo 'LIBRARY LIBHSL' > $(DEFFILE)
     733@EXTRA_SHARED_COMMAND_TRUE@@NEED_DEFFILE_TRUE@  echo 'EXPORTS' >> $(DEFFILE)
     734@EXTRA_SHARED_COMMAND_TRUE@@NEED_DEFFILE_TRUE@  for i in $(EXPORT_SYMBOLS); do \
     735@EXTRA_SHARED_COMMAND_TRUE@@NEED_DEFFILE_TRUE@    echo "  $$i" >> $(DEFFILE); \
     736@EXTRA_SHARED_COMMAND_TRUE@@NEED_DEFFILE_TRUE@  done
     737
     738@EXTRA_SHARED_COMMAND_TRUE@install-exec-local: $(HSL_SHARED_LIB)
     739@EXTRA_SHARED_COMMAND_TRUE@     test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
     740@EXTRA_SHARED_COMMAND_TRUE@     $(libLTLIBRARIES_INSTALL) $(HSL_SHARED_LIB) "$(DESTDIR)$(libdir)/$(HSL_SHARED_LIB)"
     741
     742@EXTRA_SHARED_COMMAND_TRUE@uninstall-local:
     743@EXTRA_SHARED_COMMAND_TRUE@     rm -f "$(DESTDIR)$(libdir)/$(HSL_SHARED_LIB)"
    644744
    645745install-doc: $(DocFiles)
Note: See TracChangeset for help on using the changeset viewer.