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

Last change on this file since 2030 was 2030, checked in by forrest, 5 years ago

fix some ampl stuff, add ClpSolver? and a few fixes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 9.1 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 2030 2014-04-15 15:54:11Z forrest $
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
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
116libClpSolver_la_SOURCES = \
117        ClpSolver.cpp \
118        CbcOrClpParam.cpp CbcOrClpParam.hpp \
119        Clp_ampl.cpp Clp_ampl.h \
120        MyEventHandler.cpp MyEventHandler.hpp \
121        MyMessageHandler.cpp MyMessageHandler.hpp \
122        unitTest.cpp
123
124# if AMD, CHOLMOD, or GLPK is available, then compile ClpCholeskyUfl.cpp
125if COIN_HAS_AMD
126libClp_la_SOURCES += ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp
127else
128if COIN_HAS_CHOLMOD
129libClp_la_SOURCES += ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp
130else
131if COIN_HAS_GLPK
132libClp_la_SOURCES += ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp
133endif
134endif
135endif
136
137if COIN_HAS_MUMPS
138libClp_la_SOURCES += ClpCholeskyMumps.cpp ClpCholeskyMumps.hpp
139endif
140
141if COIN_HAS_WSMP
142libClp_la_SOURCES += ClpCholeskyWssmp.cpp ClpCholeskyWssmp.hpp ClpCholeskyWssmpKKT.cpp ClpCholeskyWssmpKKT.hpp
143endif
144
145# List all additionally required libraries
146if DEPENDENCY_LINKING
147libClp_la_LIBADD = $(CLPLIB_LIBS)
148libClpSolver_la_LIBADD = $(CLPLIB_LIBS) libClp.la
149endif
150
151# This is for libtool
152libClp_la_LDFLAGS = $(LT_LDFLAGS)
153libClpSolver_la_LDFLAGS = $(LT_LDFLAGS)
154
155########################################################################
156#                            clp program                               #
157########################################################################
158
159# Name of the executable compiled in this directory.  We want it to be
160# installed in the 'bin' directory
161bin_PROGRAMS = clp
162
163# List all source files for this executable, including headers
164clp_SOURCES = ClpMain.cpp
165
166# List all additionally required libraries
167clp_LDADD = libClpSolver.la libClp.la $(CLPLIB_LIBS) $(ASL_LIBS)
168
169# List all dependency libraries (similar to LDADD, but without -l, -L flags)
170clp_DEPENDENCIES = libClpSolver.la libClp.la $(CLPLIB_DEPENDENCIES)
171
172########################################################################
173#                            Additional flags                          #
174########################################################################
175
176# CbcOrClpParam seem to require COIN_HAS_CLP so that it knows that it is build within Clp
177AM_CPPFLAGS = $(CLPLIB_CFLAGS) -DCOIN_HAS_CLP
178
179if COIN_HAS_CHOLMOD
180AM_CPPFLAGS += -I`$(CYGPATH_W) $(CHOLMODINCDIR)`
181endif
182
183if COIN_HAS_AMD
184AM_CPPFLAGS += -I`$(CYGPATH_W) $(AMDINCDIR)`
185endif
186
187# This line is necessary to allow VPATH compilation
188DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)`
189
190########################################################################
191#                Headers that need to be installed                     #
192########################################################################
193
194# Here list all the header files that are required by a user of the library,
195# and that therefore should be installed in 'include/coin'
196includecoindir = $(includedir)/coin
197includecoin_HEADERS = \
198        Clp_C_Interface.h \
199        ClpCholeskyBase.hpp \
200        ClpCholeskyDense.hpp \
201        ClpConstraint.hpp \
202        ClpConstraintLinear.hpp \
203        ClpConstraintQuadratic.hpp \
204        ClpDualRowDantzig.hpp \
205        ClpDualRowPivot.hpp \
206        ClpDualRowSteepest.hpp \
207        ClpDummyMatrix.hpp \
208        ClpDynamicExampleMatrix.hpp \
209        ClpDynamicMatrix.hpp \
210        ClpEventHandler.hpp \
211        ClpFactorization.hpp \
212        ClpGubDynamicMatrix.hpp \
213        ClpGubMatrix.hpp \
214        ClpInterior.hpp \
215        ClpLinearObjective.hpp \
216        ClpMatrixBase.hpp \
217        ClpMessage.hpp \
218        ClpModel.hpp \
219        ClpNetworkMatrix.hpp \
220        ClpNonLinearCost.hpp \
221        ClpNode.hpp \
222        ClpObjective.hpp \
223        ClpPackedMatrix.hpp \
224        ClpPdcoBase.hpp \
225        ClpPlusMinusOneMatrix.hpp \
226        ClpParameters.hpp \
227        ClpPresolve.hpp \
228        ClpPrimalColumnDantzig.hpp \
229        ClpPrimalColumnPivot.hpp \
230        ClpPrimalColumnSteepest.hpp \
231        ClpQuadraticObjective.hpp \
232        ClpSimplex.hpp \
233        ClpSimplexNonlinear.hpp \
234        ClpSimplexOther.hpp \
235        ClpSimplexDual.hpp \
236        ClpSimplexPrimal.hpp \
237        ClpSolve.hpp \
238        CbcOrClpParam.hpp \
239        Idiot.hpp
240
241if COIN_HAS_ABC
242includecoin_HEADERS += AbcSimplex.hpp CoinAbcCommon.hpp AbcCommon.hpp AbcNonLinearCost.hpp
243endif
244
245
246# if AMD, CHOLMOD, or GLPK is available, then install ClpCholeskyUfl.hpp (for advanced users)
247if COIN_HAS_AMD
248includecoin_HEADERS += ClpCholeskyUfl.hpp
249else
250if COIN_HAS_CHOLMOD
251includecoin_HEADERS += ClpCholeskyUfl.hpp
252else
253if COIN_HAS_GLPK
254includecoin_HEADERS += ClpCholeskyUfl.hpp
255endif
256endif
257endif
258
259if COIN_HAS_MUMPS
260includecoin_HEADERS += ClpCholeskyMumps.hpp
261endif
262
263if COIN_HAS_WSMP
264includecoin_HEADERS += ClpCholeskyWssmp.hpp ClpCholeskyWssmpKKT.hpp
265endif
266
267# needed by Clp
268includecoin_HEADERS += CbcOrClpParam.cpp
269
270########################################################################
271#                     Installing manifest (MSVC++)                     #
272########################################################################
273
274if COIN_CXX_IS_CL
275install-exec-hook:
276        test -s clp.exe.manifest && \
277        mt -manifest clp.exe.manifest -outputresource:clp.exe;\
278        cp clp.exe $(bindir)/clp.exe
279endif
280
281#######################################################################
282# Create the Config.h file that has all public defines and install it #
283#######################################################################
284
285install-exec-local:
286        $(install_sh_DATA) config_clp.h $(DESTDIR)$(includecoindir)/ClpConfig.h
287
288uninstall-local:
289        rm -f $(DESTDIR)$(includecoindir)/ClpConfig.h
Note: See TracBrowser for help on using the repository browser.