-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
91 lines (70 loc) · 2.57 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Copyright (C) 2003, 2009 International Business Machines and others
# All Rights Reserved.
# This file is distributed under the Eclipse Public License.
EXTRA_DIST = INSTALL.HSL
includecoindir = $(includedir)/coin-or/hsl
includecoin_HEADERS = CoinHslConfig.h
lib_LTLIBRARIES = libcoinhsl.la
libcoinhsl_la_SOURCES = coinhsl/common/deps.f
if COIN_HAS_MC19
libcoinhsl_la_SOURCES += coinhsl/mc19/mc19d.f
endif
if COIN_HAS_MA27
libcoinhsl_la_SOURCES += coinhsl/ma27/ma27d.f
endif
if COIN_HAS_MA28
libcoinhsl_la_SOURCES += coinhsl/ma28/ma28d.f
endif
if COIN_HAS_MA57
libcoinhsl_la_SOURCES += coinhsl/ma57/ma57d.f
endif
if COIN_HAS_DEPSF90
libcoinhsl_la_SOURCES += coinhsl/common/deps90.f90
endif
if COIN_HAS_HSL_MC68
libcoinhsl_la_SOURCES += coinhsl/hsl_mc68/C/hsl_mc68i_ciface.f90
includecoin_HEADERS += coinhsl/hsl_mc68/C/hsl_mc68i.h
endif
if COIN_HAS_HSL_MA77
libcoinhsl_la_SOURCES += coinhsl/hsl_ma77/hsl_ma77d.f90 coinhsl/hsl_ma77/C/hsl_ma77d_ciface.f90
includecoin_HEADERS += coinhsl/hsl_ma77/C/hsl_ma77d.h
endif
if COIN_HAS_HSL_MA86
libcoinhsl_la_SOURCES += coinhsl/hsl_ma86/hsl_ma86d.f90 coinhsl/hsl_ma86/C/hsl_ma86d_ciface.f90
includecoin_HEADERS += coinhsl/hsl_ma86/C/hsl_ma86d.h
endif
if COIN_HAS_HSL_MA97
libcoinhsl_la_SOURCES += coinhsl/hsl_ma97/hsl_ma97d.f90 coinhsl/hsl_ma97/C/hsl_ma97d_ciface.f90
includecoin_HEADERS += coinhsl/hsl_ma97/C/hsl_ma97d.h
endif
libcoinhsl_la_SOURCES += metis_adapter.c
if COIN_HAS_METIS
# call coinmetis_nodend from metis_adapter.c instead of metis_nodend in common/deps90.f90
AM_FCFLAGS = $(FC_DEFINE)metis_nodend=coinmetis_nodend $(FCFLAGS_f90)
# call COINMETIS_NODEND from metis_adapter.c instead of METIS_NODEND in ma57/ma57d.f
AM_FFLAGS = $(FC_DEFINE)METIS_NODEND=COINMETIS_NODEND $(FCFLAGS_f)
endif
AM_CFLAGS = $(HSL_CFLAGS)
libcoinhsl_la_LIBADD = $(HSL_LFLAGS)
libcoinhsl_la_LDFLAGS = $(LT_LDFLAGS)
# dependencies
# need to define dependencies in terms of variables, since automake does not allow multiple rules for the same target
ma77=hsl_ma77d
ma86=hsl_ma86d
ma97=hsl_ma97d
mc68=hsl_mc68i
$(ma77).lo: deps90.lo
$(ma86).lo: deps90.lo
$(ma97).lo: deps90.lo
$(ma77)_ciface.lo: $(ma77).lo
$(ma86)_ciface.lo: $(ma86).lo
$(ma97)_ciface.lo: $(ma97).lo
$(mc68)_ciface.lo: deps90.lo
pkgconfiglibdir = $(libdir)/pkgconfig
pkgconfiglib_DATA = coinhsl.pc
test:
@echo "No test available for HSL."
########################################################################
# Maintainer Stuff #
########################################################################
CLEANFILES = *.mod