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

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