source: branches/autotools-update/Clp/src/Makefile.am @ 2363

Last change on this file since 2363 was 2363, checked in by lou, 6 months ago

Remove some lingering occurrences of DEFAULT_INCLUDES.

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