source: stable/1.15/Clp/src/Makefile.am @ 2018

Last change on this file since 2018 was 2010, checked in by tkr, 6 years ago

Merging r1996 from trunk

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 8.9 KB
Line 
1# Copyright (C) 2006 International Business Machines and others.
2# All Rights Reserved.
3# This file is distributed under the Eclipse Public License.
4
5## $Id: Makefile.am 2010 2013-12-16 16:30:10Z stefan $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
11########################################################################
12#                               libClp                                 #
13########################################################################
14
15# Name of the library compiled in this directory.  We want it to be installed
16# in the 'lib' directory
17lib_LTLIBRARIES = libClp.la
18
19# List all source files for this library, including headers
20libClp_la_SOURCES = \
21        ClpConfig.h \
22        ClpCholeskyBase.cpp ClpCholeskyBase.hpp \
23        ClpCholeskyDense.cpp ClpCholeskyDense.hpp \
24        ClpConstraint.cpp ClpConstraint.hpp \
25        ClpConstraintLinear.cpp ClpConstraintLinear.hpp \
26        ClpConstraintQuadratic.cpp ClpConstraintQuadratic.hpp \
27        Clp_C_Interface.cpp Clp_C_Interface.h \
28        ClpDualRowDantzig.cpp ClpDualRowDantzig.hpp \
29        ClpDualRowPivot.cpp ClpDualRowPivot.hpp \
30        ClpDualRowSteepest.cpp ClpDualRowSteepest.hpp \
31        ClpDummyMatrix.cpp ClpDummyMatrix.hpp \
32        ClpDynamicExampleMatrix.cpp ClpDynamicExampleMatrix.hpp \
33        ClpDynamicMatrix.cpp ClpDynamicMatrix.hpp \
34        ClpEventHandler.cpp ClpEventHandler.hpp \
35        ClpFactorization.cpp ClpFactorization.hpp \
36        ClpGubDynamicMatrix.cpp ClpGubDynamicMatrix.hpp \
37        ClpGubMatrix.cpp ClpGubMatrix.hpp \
38        ClpHelperFunctions.cpp ClpHelperFunctions.hpp \
39        ClpInterior.cpp ClpInterior.hpp \
40        ClpLinearObjective.cpp ClpLinearObjective.hpp \
41        ClpMatrixBase.cpp ClpMatrixBase.hpp \
42        ClpMessage.cpp ClpMessage.hpp \
43        ClpModel.cpp ClpModel.hpp \
44        ClpNetworkBasis.cpp ClpNetworkBasis.hpp \
45        ClpNetworkMatrix.cpp ClpNetworkMatrix.hpp \
46        ClpNonLinearCost.cpp ClpNonLinearCost.hpp \
47        ClpNode.cpp ClpNode.hpp \
48        ClpObjective.cpp ClpObjective.hpp \
49        ClpPackedMatrix.cpp ClpPackedMatrix.hpp \
50        ClpParameters.hpp \
51        ClpPlusMinusOneMatrix.cpp ClpPlusMinusOneMatrix.hpp \
52        ClpPredictorCorrector.cpp ClpPredictorCorrector.hpp \
53        ClpPdco.cpp ClpPdco.hpp \
54        ClpPdcoBase.cpp ClpPdcoBase.hpp \
55        ClpLsqr.cpp ClpLsqr.hpp \
56        ClpPresolve.cpp ClpPresolve.hpp \
57        ClpPrimalColumnDantzig.cpp ClpPrimalColumnDantzig.hpp \
58        ClpPrimalColumnPivot.cpp ClpPrimalColumnPivot.hpp \
59        ClpPrimalColumnSteepest.cpp ClpPrimalColumnSteepest.hpp \
60        ClpQuadraticObjective.cpp ClpQuadraticObjective.hpp \
61        ClpSimplex.cpp ClpSimplex.hpp \
62        ClpSimplexDual.cpp ClpSimplexDual.hpp \
63        ClpSimplexNonlinear.cpp ClpSimplexNonlinear.hpp \
64        ClpSimplexOther.cpp ClpSimplexOther.hpp \
65        ClpSimplexPrimal.cpp ClpSimplexPrimal.hpp \
66        ClpSolve.cpp ClpSolve.hpp \
67        Idiot.cpp Idiot.hpp \
68        IdiSolve.cpp
69
70if COIN_HAS_ABC
71libClp_la_SOURCES += \
72        AbcCommon.hpp \
73        AbcDualRowDantzig.cpp AbcDualRowDantzig.hpp \
74        AbcDualRowPivot.cpp AbcDualRowPivot.hpp \
75        AbcDualRowSteepest.cpp AbcDualRowSteepest.hpp \
76        AbcMatrix.cpp AbcMatrix.hpp \
77        AbcNonLinearCost.cpp AbcNonLinearCost.hpp \
78        AbcPrimalColumnDantzig.cpp AbcPrimalColumnDantzig.hpp \
79        AbcPrimalColumnPivot.cpp AbcPrimalColumnPivot.hpp \
80        AbcPrimalColumnSteepest.cpp AbcPrimalColumnSteepest.hpp \
81        AbcSimplex.cpp AbcSimplex.hpp \
82        AbcSimplexDual.cpp AbcSimplexDual.hpp \
83        AbcSimplexPrimal.cpp AbcSimplexPrimal.hpp \
84        AbcSimplexParallel.cpp \
85        AbcSimplexFactorization.cpp AbcSimplexFactorization.hpp \
86        AbcWarmStart.cpp AbcWarmStart.hpp \
87        CoinAbcBaseFactorization.hpp \
88        CoinAbcBaseFactorization1.cpp \
89        CoinAbcBaseFactorization2.cpp \
90        CoinAbcBaseFactorization3.cpp \
91        CoinAbcBaseFactorization4.cpp \
92        CoinAbcBaseFactorization5.cpp \
93        CoinAbcCommonFactorization.hpp \
94        CoinAbcCommon.hpp \
95        CoinAbcDenseFactorization.cpp \
96        CoinAbcDenseFactorization.hpp \
97        CoinAbcFactorization.hpp \
98        CoinAbcFactorization1.cpp \
99        CoinAbcFactorization2.cpp \
100        CoinAbcFactorization3.cpp \
101        CoinAbcFactorization4.cpp \
102        CoinAbcFactorization5.cpp \
103        CoinAbcHelperFunctions.cpp CoinAbcHelperFunctions.hpp \
104        CoinAbcOrderedFactorization1.cpp \
105        CoinAbcOrderedFactorization2.cpp \
106        CoinAbcOrderedFactorization3.cpp \
107        CoinAbcOrderedFactorization4.cpp \
108        CoinAbcOrderedFactorization5.cpp \
109        CoinAbcSmallFactorization1.cpp \
110        CoinAbcSmallFactorization2.cpp \
111        CoinAbcSmallFactorization3.cpp \
112        CoinAbcSmallFactorization4.cpp \
113        CoinAbcSmallFactorization5.cpp
114endif
115
116# if AMD, CHOLMOD, or GLPK is available, then compile ClpCholeskyUfl.cpp
117if COIN_HAS_AMD
118libClp_la_SOURCES += ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp
119else
120if COIN_HAS_CHOLMOD
121libClp_la_SOURCES += ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp
122else
123if COIN_HAS_GLPK
124libClp_la_SOURCES += ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp
125endif
126endif
127endif
128
129if COIN_HAS_MUMPS
130libClp_la_SOURCES += ClpCholeskyMumps.cpp ClpCholeskyMumps.hpp
131endif
132
133if COIN_HAS_WSMP
134libClp_la_SOURCES += ClpCholeskyWssmp.cpp ClpCholeskyWssmp.hpp ClpCholeskyWssmpKKT.cpp ClpCholeskyWssmpKKT.hpp
135endif
136
137# List all additionally required libraries
138if DEPENDENCY_LINKING
139libClp_la_LIBADD = $(CLPLIB_LIBS)
140endif
141
142# This is for libtool
143libClp_la_LDFLAGS = $(LT_LDFLAGS)
144
145########################################################################
146#                            clp program                               #
147########################################################################
148
149# Name of the executable compiled in this directory.  We want it to be
150# installed in the 'bin' directory
151bin_PROGRAMS = clp
152
153# List all source files for this executable, including headers
154clp_SOURCES = \
155        ClpMain.cpp \
156        CbcOrClpParam.cpp CbcOrClpParam.hpp \
157        MyEventHandler.cpp MyEventHandler.hpp \
158        MyMessageHandler.cpp MyMessageHandler.hpp \
159        unitTest.cpp
160
161# List all additionally required libraries
162clp_LDADD = libClp.la $(CLPLIB_LIBS)
163
164# List all dependency libraries (similar to LDADD, but without -l, -L flags)
165clp_DEPENDENCIES = libClp.la $(CLPLIB_DEPENDENCIES)
166
167########################################################################
168#                            Additional flags                          #
169########################################################################
170
171# CbcOrClpParam seem to require COIN_HAS_CLP so that it knows that it is build within Clp
172AM_CPPFLAGS = $(CLPLIB_CFLAGS) -DCOIN_HAS_CLP
173
174if COIN_HAS_CHOLMOD
175AM_CPPFLAGS += -I`$(CYGPATH_W) $(CHOLMODINCDIR)`
176endif
177
178if COIN_HAS_AMD
179AM_CPPFLAGS += -I`$(CYGPATH_W) $(AMDINCDIR)`
180endif
181
182# This line is necessary to allow VPATH compilation
183DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)`
184
185########################################################################
186#                Headers that need to be installed                     #
187########################################################################
188
189# Here list all the header files that are required by a user of the library,
190# and that therefore should be installed in 'include/coin'
191includecoindir = $(includedir)/coin
192includecoin_HEADERS = \
193        Clp_C_Interface.h \
194        ClpCholeskyBase.hpp \
195        ClpCholeskyDense.hpp \
196        ClpConstraint.hpp \
197        ClpConstraintLinear.hpp \
198        ClpConstraintQuadratic.hpp \
199        ClpDualRowDantzig.hpp \
200        ClpDualRowPivot.hpp \
201        ClpDualRowSteepest.hpp \
202        ClpDummyMatrix.hpp \
203        ClpDynamicExampleMatrix.hpp \
204        ClpDynamicMatrix.hpp \
205        ClpEventHandler.hpp \
206        ClpFactorization.hpp \
207        ClpGubDynamicMatrix.hpp \
208        ClpGubMatrix.hpp \
209        ClpInterior.hpp \
210        ClpLinearObjective.hpp \
211        ClpMatrixBase.hpp \
212        ClpMessage.hpp \
213        ClpModel.hpp \
214        ClpNetworkMatrix.hpp \
215        ClpNonLinearCost.hpp \
216        ClpNode.hpp \
217        ClpObjective.hpp \
218        ClpPackedMatrix.hpp \
219        ClpPdcoBase.hpp \
220        ClpPlusMinusOneMatrix.hpp \
221        ClpParameters.hpp \
222        ClpPresolve.hpp \
223        ClpPrimalColumnDantzig.hpp \
224        ClpPrimalColumnPivot.hpp \
225        ClpPrimalColumnSteepest.hpp \
226        ClpQuadraticObjective.hpp \
227        ClpSimplex.hpp \
228        ClpSimplexNonlinear.hpp \
229        ClpSimplexOther.hpp \
230        ClpSimplexDual.hpp \
231        ClpSimplexPrimal.hpp \
232        ClpSolve.hpp \
233        CbcOrClpParam.hpp \
234        Idiot.hpp
235
236if COIN_HAS_ABC
237includecoin_HEADERS += AbcSimplex.hpp CoinAbcCommon.hpp AbcCommon.hpp
238endif
239
240
241# if AMD, CHOLMOD, or GLPK is available, then install ClpCholeskyUfl.hpp (for advanced users)
242if COIN_HAS_AMD
243includecoin_HEADERS += ClpCholeskyUfl.hpp
244else
245if COIN_HAS_CHOLMOD
246includecoin_HEADERS += ClpCholeskyUfl.hpp
247else
248if COIN_HAS_GLPK
249includecoin_HEADERS += ClpCholeskyUfl.hpp
250endif
251endif
252endif
253
254if COIN_HAS_MUMPS
255includecoin_HEADERS += ClpCholeskyMumps.hpp
256endif
257
258if COIN_HAS_WSMP
259includecoin_HEADERS += ClpCholeskyWssmp.hpp ClpCholeskyWssmpKKT.hpp
260endif
261
262# needed by Cbc
263includecoin_HEADERS += CbcOrClpParam.cpp
264
265########################################################################
266#                     Installing manifest (MSVC++)                     #
267########################################################################
268
269if COIN_CXX_IS_CL
270install-exec-hook:
271        test -s clp.exe.manifest && \
272        mt -manifest clp.exe.manifest -outputresource:clp.exe;\
273        cp clp.exe $(bindir)/clp.exe
274endif
275
276#######################################################################
277# Create the Config.h file that has all public defines and install it #
278#######################################################################
279
280install-exec-local:
281        $(install_sh_DATA) config_clp.h $(DESTDIR)$(includecoindir)/ClpConfig.h
282
283uninstall-local:
284        rm -f $(DESTDIR)$(includecoindir)/ClpConfig.h
Note: See TracBrowser for help on using the repository browser.