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

Last change on this file since 2348 was 2348, checked in by stefan, 6 months ago

remove check for DEPENDENCY_LINKING; rerun autotools

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 9.6 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 2348 2018-10-16 18:43:56Z stefan $
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
187if COIN_HAS_CHOLMOD
188AM_CPPFLAGS += -I`$(CYGPATH_W) $(CHOLMODINCDIR)`
189endif
190
191if COIN_HAS_AMD
192AM_CPPFLAGS += -I`$(CYGPATH_W) $(AMDINCDIR)`
193endif
194
195# This line is necessary to allow VPATH compilation
196# DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)`
197
198########################################################################
199#                Headers that need to be installed                     #
200########################################################################
201
202# Here list all the header files that are required by a user of the library,
203# and that therefore should be installed in 'include/coin'
204includecoindir = $(pkgincludedir)
205includecoin_HEADERS = \
206        Clp_C_Interface.h \
207        ClpCholeskyBase.hpp \
208        ClpCholeskyDense.hpp \
209        ClpConstraint.hpp \
210        ClpConstraintLinear.hpp \
211        ClpConstraintQuadratic.hpp \
212        ClpDualRowDantzig.hpp \
213        ClpDualRowPivot.hpp \
214        ClpDualRowSteepest.hpp \
215        ClpDummyMatrix.hpp \
216        ClpDynamicExampleMatrix.hpp \
217        ClpDynamicMatrix.hpp \
218        ClpEventHandler.hpp \
219        ClpFactorization.hpp \
220        ClpGubDynamicMatrix.hpp \
221        ClpGubMatrix.hpp \
222        ClpInterior.hpp \
223        ClpLinearObjective.hpp \
224        ClpMatrixBase.hpp \
225        ClpMessage.hpp \
226        ClpModel.hpp \
227        ClpNetworkMatrix.hpp \
228        ClpNonLinearCost.hpp \
229        ClpNode.hpp \
230        ClpObjective.hpp \
231        ClpPackedMatrix.hpp \
232        ClpPdcoBase.hpp \
233        ClpPlusMinusOneMatrix.hpp \
234        ClpParameters.hpp \
235        ClpPresolve.hpp \
236        ClpPrimalColumnDantzig.hpp \
237        ClpPrimalColumnPivot.hpp \
238        ClpPrimalColumnSteepest.hpp \
239        ClpQuadraticObjective.hpp \
240        ClpSimplex.hpp \
241        ClpSimplexNonlinear.hpp \
242        ClpSimplexOther.hpp \
243        ClpSimplexDual.hpp \
244        ClpSimplexPrimal.hpp \
245        ClpSolve.hpp \
246        CbcOrClpParam.hpp \
247        Idiot.hpp \
248        ClpCholeskyPardiso.hpp \
249        ClpPESimplex.hpp \
250        ClpPEPrimalColumnDantzig.hpp \
251        ClpPEPrimalColumnSteepest.hpp \
252        ClpPEDualRowDantzig.hpp \
253        ClpPEDualRowSteepest.hpp
254
255if COIN_HAS_ABC
256includecoin_HEADERS += AbcSimplex.hpp CoinAbcCommon.hpp AbcCommon.hpp AbcNonLinearCost.hpp
257endif
258
259
260# if AMD, CHOLMOD, or GLPK is available, then install ClpCholeskyUfl.hpp (for advanced users)
261if COIN_HAS_AMD
262includecoin_HEADERS += ClpCholeskyUfl.hpp
263else
264if COIN_HAS_CHOLMOD
265includecoin_HEADERS += ClpCholeskyUfl.hpp
266else
267if COIN_HAS_GLPK
268includecoin_HEADERS += ClpCholeskyUfl.hpp
269endif
270endif
271endif
272
273if COIN_HAS_MUMPS
274includecoin_HEADERS += ClpCholeskyMumps.hpp
275endif
276
277if COIN_HAS_WSMP
278includecoin_HEADERS += ClpCholeskyWssmp.hpp ClpCholeskyWssmpKKT.hpp
279endif
280
281# needed by Clp
282includecoin_HEADERS += CbcOrClpParam.cpp
283
284########################################################################
285#                     Installing manifest (MSVC++)                     #
286########################################################################
287
288if COIN_CXX_IS_CL
289install-exec-hook:
290        test -s clp.exe.manifest && \
291        mt -manifest clp.exe.manifest -outputresource:clp.exe;\
292        cp clp.exe $(bindir)/clp.exe
293endif
294
295#######################################################################
296# Create the Config.h file that has all public defines and install it #
297#######################################################################
298
299install-exec-local:
300        $(install_sh_DATA) config_clp.h $(DESTDIR)$(includecoindir)/ClpConfig.h
301
302uninstall-local:
303        rm -f $(DESTDIR)$(includecoindir)/ClpConfig.h
Note: See TracBrowser for help on using the repository browser.