forked from coin-or-tools/ThirdParty-HSL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
133 lines (112 loc) · 4.09 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# Copyright (C) 2003, 2009 International Business Machines and others
# All Rights Reserved.
# This file is distributed under the Eclipse Public License.
includecoindir = $(includedir)/coin-or/hsl
includecoin_HEADERS = CoinHslConfig.h
lib_LTLIBRARIES = libcoinhsl.la
libcoinhsl_la_SOURCES =
if COIN_HAS_MC19
libcoinhsl_la_SOURCES += coinhsl/mc19/mc19d.f
endif
if COIN_HAS_MC19S
libcoinhsl_la_SOURCES += coinhsl/mc19/mc19s.f
endif
if COIN_HAS_MA27
libcoinhsl_la_SOURCES += coinhsl/ma27/ma27d.f
endif
if COIN_HAS_MA27S
libcoinhsl_la_SOURCES += coinhsl/ma27/ma27s.f
endif
if COIN_HAS_MA28
libcoinhsl_la_SOURCES += coinhsl/ma28/ma28d.f
endif
if COIN_HAS_MA28S
libcoinhsl_la_SOURCES += coinhsl/ma28/ma28s.f
endif
if COIN_HAS_MA57
libcoinhsl_la_SOURCES += coinhsl/ma57/ma57d.f
endif
if COIN_HAS_MA57S
libcoinhsl_la_SOURCES += coinhsl/ma57/ma57s.f
endif
if COIN_HAS_DEPSF
libcoinhsl_la_SOURCES += coinhsl/common/deps.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_MA77S
libcoinhsl_la_SOURCES += coinhsl/hsl_ma77/hsl_ma77s.f90 coinhsl/hsl_ma77/C/hsl_ma77s_ciface.f90
includecoin_HEADERS += coinhsl/hsl_ma77/C/hsl_ma77s.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_MA86S
libcoinhsl_la_SOURCES += coinhsl/hsl_ma86/hsl_ma86s.f90 coinhsl/hsl_ma86/C/hsl_ma86s_ciface.f90
includecoin_HEADERS += coinhsl/hsl_ma86/C/hsl_ma86s.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
if COIN_HAS_HSL_MA97S
libcoinhsl_la_SOURCES += coinhsl/hsl_ma97/hsl_ma97s.f90 coinhsl/hsl_ma97/C/hsl_ma97s_ciface.f90
includecoin_HEADERS += coinhsl/hsl_ma97/C/hsl_ma97s.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)
AM_LDFLAGS = $(LT_LDFLAGS)
# dependencies
# need to define dependencies in terms of variables, since automake does not allow multiple rules for the same target
ma77d=coinhsl/hsl_ma77/hsl_ma77d
ma77dC=coinhsl/hsl_ma77/C/hsl_ma77d_ciface
ma77s=coinhsl/hsl_ma77/hsl_ma77s
ma77sC=coinhsl/hsl_ma77/C/hsl_ma77s_ciface
ma86d=coinhsl/hsl_ma86/hsl_ma86d
ma86dC=coinhsl/hsl_ma86/C/hsl_ma86d_ciface
ma86s=coinhsl/hsl_ma86/hsl_ma86s
ma86sC=coinhsl/hsl_ma86/C/hsl_ma86s_ciface
ma97d=coinhsl/hsl_ma97/hsl_ma97d
ma97dC=coinhsl/hsl_ma97/C/hsl_ma97d_ciface
ma97s=coinhsl/hsl_ma97/hsl_ma97s
ma97sC=coinhsl/hsl_ma97/C/hsl_ma97s_ciface
mc68=coinhsl/hsl_mc68/hsl_mc68i
mc68C=coinhsl/hsl_mc68/C/hsl_mc68i_ciface
$(ma77d).lo: coinhsl/common/deps90.lo
$(ma77s).lo: coinhsl/common/deps90.lo
$(ma86d).lo: coinhsl/common/deps90.lo
$(ma86s).lo: coinhsl/common/deps90.lo
$(ma97d).lo: coinhsl/common/deps90.lo
$(ma97s).lo: coinhsl/common/deps90.lo
$(ma77dC).lo: $(ma77d).lo
$(ma77sC).lo: $(ma77s).lo
$(ma86dC).lo: $(ma86d).lo
$(ma86sC).lo: $(ma86s).lo
$(ma97dC).lo: $(ma97d).lo
$(ma97sC).lo: $(ma97s).lo
$(mc68C).lo: coinhsl/common/deps90.lo
pkgconfiglibdir = $(libdir)/pkgconfig
pkgconfiglib_DATA = coinhsl.pc
test:
@echo "No test available for HSL."
########################################################################
# Maintainer Stuff #
########################################################################
CLEANFILES = *.mod