source: ThirdParty/HSL/stable/1.2/Makefile.am @ 1960

Last change on this file since 1960 was 1960, checked in by stefan, 10 years ago

sync with trunk r1956

  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
Line 
1# Copyright (C) 2003, 2009 International Business Machines and others
2# All Rights Reserved.
3# This file is distributed under the Eclipse Public License.
4
5## $Id: Makefile.am 1960 2010-12-22 15:39:10Z stefan $
6
7AUTOMAKE_OPTIONS = foreign
8
9EXTRA_DIST = INSTALL.HSL
10
11thirdpartylibdir = $(libdir)/coin/ThirdParty
12thirdpartylib_LTLIBRARIES = libcoinhsl.la
13
14libcoinhsl_la_SOURCES = dummy.c
15
16if COIN_HAS_MA27
17  libcoinhsl_la_SOURCES += ma27ad.f
18endif
19
20if COIN_HAS_MA57
21  libcoinhsl_la_SOURCES += ma57ad.f
22endif
23
24if COIN_HAS_MC19
25  libcoinhsl_la_SOURCES += mc19ad.f
26endif
27
28if COIN_HAS_MA28
29  libcoinhsl_la_SOURCES += ma28ad.f ma30ad.f mc13dd.f mc20ad.f \
30        mc21ad.f mc22ad.f mc23ad.f mc24ad.f
31endif
32
33if COIN_HAS_MA77
34  libcoinhsl_la_SOURCES += hsl_ma77d.f90 hsl_ma77d.deps90.f90 hsl_ma77d.deps77.f
35endif
36
37libcoinhsl_la_LDFLAGS = $(LT_LDFLAGS)
38
39# dependencies
40hsl_ma77d.lo: hsl_ma77d.deps90.lo
41
42#############################################################################
43#  Generating a shared library for delay loading
44
45if EXTRA_SHARED_COMMAND
46
47$(HSL_SHARED_LIB): $(thirdpartylib_LTLIBRARIES) $(DEFFILE)
48        bla=; \
49        for i in $(nodist_libcoinhsl_la_SOURCES); do \
50          case $$i in \
51            *.f) \
52              obj=`echo $$i| sed -e 's|\(.*\).[cf]|.libs/\1.$(OBJEXT)|g'` ;\
53              if test -r $$obj; then \
54                bla="$$bla $$obj" ;\
55              else \
56                bla="$$bla `echo $$i| sed -e 's|\(.*\).[cf]|\1.$(OBJEXT)|g'`" ;\
57              fi ;\
58              ;; \
59          esac ;\
60        done ;\
61        $(F77_SHARED_CMD) $$bla -o $(HSL_SHARED_LIB) $(F77_DLL_LINKFLAGS)
62
63if NEED_DEFFILE
64$(DEFFILE): config.status
65        echo 'LIBRARY LIBHSL' > $(DEFFILE)
66        echo 'EXPORTS' >> $(DEFFILE)
67        for i in $(EXPORT_SYMBOLS); do \
68          echo "  $$i" >> $(DEFFILE); \
69        done
70endif
71
72install-exec-local: $(HSL_SHARED_LIB)
73        test -z "$(DESTDIR)$(libdir)/coin/ThirdParty" || $(mkdir_p) "$(DESTDIR)$(libdir)/coin/ThirdParty"
74        $(libLTLIBRARIES_INSTALL) $(HSL_SHARED_LIB) "$(DESTDIR)$(libdir)/coin/ThirdParty/$(HSL_SHARED_LIB)"
75
76uninstall-local:
77        rm -f "$(DESTDIR)$(libdir)/coin/ThirdParty/$(HSL_SHARED_LIB)"
78endif
79
80pkgconfiglibdir = $(libdir)/pkgconfig
81pkgconfiglib_DATA = coinhsl.pc
82
83if COIN_HAS_PKGCONFIG
84addlibsdir = $(DESTDIR)$(datadir)/coin/doc/ThirdParty/HSL
85       
86install-data-hook:
87        @$(mkdir_p) "$(addlibsdir)"
88        PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ \
89        $(PKG_CONFIG) --libs coinhsl > $(addlibsdir)/hsl_addlibs.txt
90
91uninstall-hook:
92        rm -f $(addlibsdir)/hsl_addlibs.txt
93endif
94
95test: $(libampl)
96        @echo "No test available for HSL."
97
98# Need to overwrite automake definition since otherwise libtool does not
99# understand the fortran file (need to add --tag=F77)
100LTFCCOMPILE = $(LIBTOOL) --tag=F77 --mode=compile $(FC) $(AM_FCFLAGS) $(FCFLAGS)
101
102
103########################################################################
104#                         Maintainer Stuff                             #
105########################################################################
106
107CLEANFILES = $(HSL_SHARED_LIB) $(DEFFILE)
108
109# Files that are generated and should be cleaned with make distclean
110DISTCLEANFILES =
111
112include BuildTools/Makemain.inc
Note: See TracBrowser for help on using the repository browser.