source: ThirdParty/HSL/stable/1.1/Makefile.am @ 1345

Last change on this file since 1345 was 1275, checked in by andreasw, 12 years ago

synchronize ThirdParty?/HSL/stable/1.1 with trunk rev 1274

  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1# Copyright (C) 2003, 2008 International Business Machines and others
2# All Rights Reserved.
3# This file is distributed under the Common Public License.
4
5## $Id: Makefile.am 1275 2009-04-24 16:45:05Z andreasw $
6
7AUTOMAKE_OPTIONS = foreign
8
9EXTRA_DIST = INSTALL.HSL
10
11noinst_LTLIBRARIES = libcoinhsl.la
12
13nodist_libcoinhsl_la_SOURCES = dummy.c
14
15if COIN_HAS_MA27
16  nodist_libcoinhsl_la_SOURCES += ma27ad.f
17endif
18
19if COIN_HAS_MA57
20  nodist_libcoinhsl_la_SOURCES += ma57ad.f
21endif
22
23if COIN_HAS_MC19
24  nodist_libcoinhsl_la_SOURCES += mc19ad.f
25endif
26
27if COIN_HAS_MA28
28  nodist_libcoinhsl_la_SOURCES += ma28ad.f ma30ad.f mc13dd.f mc20ad.f \
29        mc21ad.f mc22ad.f mc23ad.f mc24ad.f
30endif
31
32lib_LTLIBRARIES =
33if INSTALL_LOADABLE_LIBRARY
34if EXTRA_SHARED_COMMAND
35else
36  lib_LTLIBRARIES += libhsl.la
37  libhsl_la_SOURCES = $(nodist_libcoinhsl_la_SOURCES)
38endif
39endif
40
41libcoinhsl_la_LDFLAGS = $(LT_LDFLAGS)
42
43#############################################################################
44#  Generating a shared library for delay loading
45
46if EXTRA_SHARED_COMMAND
47
48$(HSL_SHARED_LIB): $(noinst_LTLIBRARIES) $(DEFFILE)
49        bla=; \
50        for i in $(nodist_libcoinhsl_la_SOURCES); do \
51          case $$i in \
52            *.f) \
53              obj=`echo $$i| sed -e 's|\(.*\).[cf]|.libs/\1.$(OBJEXT)|g'` ;\
54              if test -r $$obj; then \
55                bla="$$bla $$obj" ;\
56              else \
57                bla="$$bla `echo $$i| sed -e 's|\(.*\).[cf]|\1.$(OBJEXT)|g'`" ;\
58              fi ;\
59              ;; \
60          esac ;\
61        done ;\
62        $(F77_SHARED_CMD) $$bla -o $(HSL_SHARED_LIB) $(F77_DLL_LINKFLAGS)
63
64if NEED_DEFFILE
65$(DEFFILE): config.status
66        echo 'LIBRARY LIBHSL' > $(DEFFILE)
67        echo 'EXPORTS' >> $(DEFFILE)
68        for i in $(EXPORT_SYMBOLS); do \
69          echo "  $$i" >> $(DEFFILE); \
70        done
71endif
72
73install-exec-local: $(HSL_SHARED_LIB)
74        test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
75        $(libLTLIBRARIES_INSTALL) $(HSL_SHARED_LIB) "$(DESTDIR)$(libdir)/$(HSL_SHARED_LIB)"
76
77CLEANFILES = $(HSL_SHARED_LIB) $(DEFFILE)
78
79uninstall-local:
80        rm -f "$(DESTDIR)$(libdir)/$(HSL_SHARED_LIB)"
81endif
82
83########################################################################
84#                         Maintainer Stuff                             #
85########################################################################
86
87# Files that are generated and should be cleaned with make distclean
88DISTCLEANFILES =
89
90include ../../BuildTools/Makemain.inc
Note: See TracBrowser for help on using the repository browser.