source: trunk/Clp/src/Makefile.am @ 2449

Last change on this file since 2449 was 2235, checked in by forrest, 3 years ago

stuff for vector matrix

  • 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 2235 2017-01-03 15:44:15Z 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 libClpSolver.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        ClpCholeskyPardiso.cpp ClpCholeskyPardiso.hpp \
70        ClpPESimplex.cpp ClpPESimplex.hpp \
71        ClpPEPrimalColumnDantzig.cpp ClpPEPrimalColumnDantzig.hpp \
72        ClpPEPrimalColumnSteepest.cpp ClpPEPrimalColumnSteepest.hpp \
73        ClpPEDualRowDantzig.cpp ClpPEDualRowDantzig.hpp \
74        ClpPEDualRowSteepest.cpp ClpPEDualRowSteepest.hpp
75
76if COIN_HAS_ABC
77libClp_la_SOURCES += \
78        AbcCommon.hpp \
79        AbcDualRowDantzig.cpp AbcDualRowDantzig.hpp \
80        AbcDualRowPivot.cpp AbcDualRowPivot.hpp \
81        AbcDualRowSteepest.cpp AbcDualRowSteepest.hpp \
82        AbcMatrix.cpp AbcMatrix.hpp \
83        AbcNonLinearCost.cpp AbcNonLinearCost.hpp \
84        AbcPrimalColumnDantzig.cpp AbcPrimalColumnDantzig.hpp \
85        AbcPrimalColumnPivot.cpp AbcPrimalColumnPivot.hpp \
86        AbcPrimalColumnSteepest.cpp AbcPrimalColumnSteepest.hpp \
87        AbcSimplex.cpp AbcSimplex.hpp \
88        AbcSimplexDual.cpp AbcSimplexDual.hpp \
89        AbcSimplexPrimal.cpp AbcSimplexPrimal.hpp \
90        AbcSimplexParallel.cpp \
91        AbcSimplexFactorization.cpp AbcSimplexFactorization.hpp \
92        AbcWarmStart.cpp AbcWarmStart.hpp \
93        CoinAbcBaseFactorization.hpp \
94        CoinAbcBaseFactorization1.cpp \
95        CoinAbcBaseFactorization2.cpp \
96        CoinAbcBaseFactorization3.cpp \
97        CoinAbcBaseFactorization4.cpp \
98        CoinAbcBaseFactorization5.cpp \
99        CoinAbcCommonFactorization.hpp \
100        CoinAbcCommon.hpp \
101        CoinAbcDenseFactorization.cpp \
102        CoinAbcDenseFactorization.hpp \
103        CoinAbcFactorization.hpp \
104        CoinAbcFactorization1.cpp \
105        CoinAbcFactorization2.cpp \
106        CoinAbcFactorization3.cpp \
107        CoinAbcFactorization4.cpp \
108        CoinAbcFactorization5.cpp \
109        CoinAbcHelperFunctions.cpp CoinAbcHelperFunctions.hpp \
110        CoinAbcOrderedFactorization1.cpp \
111        CoinAbcOrderedFactorization2.cpp \
112        CoinAbcOrderedFactorization3.cpp \
113        CoinAbcOrderedFactorization4.cpp \
114        CoinAbcOrderedFactorization5.cpp \
115        CoinAbcSmallFactorization1.cpp \
116        CoinAbcSmallFactorization2.cpp \
117        CoinAbcSmallFactorization3.cpp \
118        CoinAbcSmallFactorization4.cpp \
119        CoinAbcSmallFactorization5.cpp
120endif
121
122libClpSolver_la_SOURCES = \
123        ClpSolver.cpp \
124        CbcOrClpParam.cpp CbcOrClpParam.hpp \
125        Clp_ampl.cpp Clp_ampl.h \
126        MyEventHandler.cpp MyEventHandler.hpp \
127        MyMessageHandler.cpp MyMessageHandler.hpp \
128        unitTest.cpp
129
130# if AMD, CHOLMOD, or GLPK is available, then compile ClpCholeskyUfl.cpp
131if COIN_HAS_AMD
132libClp_la_SOURCES += ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp
133else
134if COIN_HAS_CHOLMOD
135libClp_la_SOURCES += ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp
136else
137if COIN_HAS_GLPK
138libClp_la_SOURCES += ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp
139endif
140endif
141endif
142
143if COIN_HAS_MUMPS
144libClp_la_SOURCES += ClpCholeskyMumps.cpp ClpCholeskyMumps.hpp
145endif
146
147if COIN_HAS_WSMP
148libClp_la_SOURCES += ClpCholeskyWssmp.cpp ClpCholeskyWssmp.hpp ClpCholeskyWssmpKKT.cpp ClpCholeskyWssmpKKT.hpp
149endif
150
151# List all additionally required libraries
152if DEPENDENCY_LINKING
153libClp_la_LIBADD = $(CLPLIB_LIBS)
154libClpSolver_la_LIBADD = $(CLPLIB_LIBS) libClp.la
155endif
156
157# This is for libtool
158libClp_la_LDFLAGS = $(LT_LDFLAGS)
159libClpSolver_la_LDFLAGS = $(LT_LDFLAGS)
160
161########################################################################
162#                            clp program                               #
163########################################################################
164
165# Name of the executable compiled in this directory.  We want it to be
166# installed in the 'bin' directory
167bin_PROGRAMS = clp
168
169# List all source files for this executable, including headers
170clp_SOURCES = ClpMain.cpp
171
172# List all additionally required libraries
173clp_LDADD = libClpSolver.la libClp.la $(CLPLIB_LIBS) $(ASL_LIBS)
174
175# List all dependency libraries (similar to LDADD, but without -l, -L flags)
176clp_DEPENDENCIES = libClpSolver.la libClp.la $(CLPLIB_DEPENDENCIES)
177
178########################################################################
179#                            Additional flags                          #
180########################################################################
181
182# CbcOrClpParam seem to require COIN_HAS_CLP so that it knows that it is build within Clp
183AM_CPPFLAGS = $(CLPLIB_CFLAGS) -DCOIN_HAS_CLP
184
185if COIN_HAS_CHOLMOD
186AM_CPPFLAGS += -I`$(CYGPATH_W) $(CHOLMODINCDIR)`
187endif
188
189if COIN_HAS_AMD
190AM_CPPFLAGS += -I`$(CYGPATH_W) $(AMDINCDIR)`
191endif
192
193# This line is necessary to allow VPATH compilation
194DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)`
195
196########################################################################
197#                Headers that need to be installed                     #
198########################################################################
199
200# Here list all the header files that are required by a user of the library,
201# and that therefore should be installed in 'include/coin'
202includecoindir = $(includedir)/coin
203includecoin_HEADERS = \
204        Clp_C_Interface.h \
205        ClpCholeskyBase.hpp \
206        ClpCholeskyDense.hpp \
207        ClpConstraint.hpp \
208        ClpConstraintLinear.hpp \
209        ClpConstraintQuadratic.hpp \
210        ClpDualRowDantzig.hpp \
211        ClpDualRowPivot.hpp \
212        ClpDualRowSteepest.hpp \
213        ClpDummyMatrix.hpp \
214        ClpDynamicExampleMatrix.hpp \
215        ClpDynamicMatrix.hpp \
216        ClpEventHandler.hpp \
217        ClpFactorization.hpp \
218        ClpGubDynamicMatrix.hpp \
219        ClpGubMatrix.hpp \
220        ClpInterior.hpp \
221        ClpLinearObjective.hpp \
222        ClpMatrixBase.hpp \
223        ClpMessage.hpp \
224        ClpModel.hpp \
225        ClpNetworkMatrix.hpp \
226        ClpNonLinearCost.hpp \
227        ClpNode.hpp \
228        ClpObjective.hpp \
229        ClpPackedMatrix.hpp \
230        ClpPdcoBase.hpp \
231        ClpPlusMinusOneMatrix.hpp \
232        ClpParameters.hpp \
233        ClpPresolve.hpp \
234        ClpPrimalColumnDantzig.hpp \
235        ClpPrimalColumnPivot.hpp \
236        ClpPrimalColumnSteepest.hpp \
237        ClpQuadraticObjective.hpp \
238        ClpSimplex.hpp \
239        ClpSimplexNonlinear.hpp \
240        ClpSimplexOther.hpp \
241        ClpSimplexDual.hpp \
242        ClpSimplexPrimal.hpp \
243        ClpSolve.hpp \
244        CbcOrClpParam.hpp \
245        Idiot.hpp \
246        ClpCholeskyPardiso.hpp \
247        ClpPESimplex.hpp \
248        ClpPEPrimalColumnDantzig.hpp \
249        ClpPEPrimalColumnSteepest.hpp \
250        ClpPEDualRowDantzig.hpp \
251        ClpPEDualRowSteepest.hpp
252
253if COIN_HAS_ABC
254includecoin_HEADERS += AbcSimplex.hpp CoinAbcCommon.hpp AbcCommon.hpp AbcNonLinearCost.hpp
255endif
256
257
258# if AMD, CHOLMOD, or GLPK is available, then install ClpCholeskyUfl.hpp (for advanced users)
259if COIN_HAS_AMD
260includecoin_HEADERS += ClpCholeskyUfl.hpp
261else
262if COIN_HAS_CHOLMOD
263includecoin_HEADERS += ClpCholeskyUfl.hpp
264else
265if COIN_HAS_GLPK
266includecoin_HEADERS += ClpCholeskyUfl.hpp
267endif
268endif
269endif
270
271if COIN_HAS_MUMPS
272includecoin_HEADERS += ClpCholeskyMumps.hpp
273endif
274
275if COIN_HAS_WSMP
276includecoin_HEADERS += ClpCholeskyWssmp.hpp ClpCholeskyWssmpKKT.hpp
277endif
278
279# needed by Clp
280includecoin_HEADERS += CbcOrClpParam.cpp
281
282########################################################################
283#                     Installing manifest (MSVC++)                     #
284########################################################################
285
286if COIN_CXX_IS_CL
287install-exec-hook:
288        test -s clp.exe.manifest && \
289        mt -manifest clp.exe.manifest -outputresource:clp.exe;\
290        cp clp.exe $(bindir)/clp.exe
291endif
292
293#######################################################################
294# Create the Config.h file that has all public defines and install it #
295#######################################################################
296
297install-exec-local:
298        $(install_sh_DATA) config_clp.h $(DESTDIR)$(includecoindir)/ClpConfig.h
299
300uninstall-local:
301        rm -f $(DESTDIR)$(includecoindir)/ClpConfig.h
Note: See TracBrowser for help on using the repository browser.