source: stable/2.9/Cbc/src/Makefile.am @ 2206

Last change on this file since 2206 was 2206, checked in by stefan, 3 years ago

merge r2204,r2205 from trunk

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 9.7 KB
Line 
1# Copyright (C) 2006, 2007 International Business Machines and others.
2# All Rights Reserved.
3# This file is distributed under the Eclipse Public License.
4
5## $Id: Makefile.am 2206 2015-07-07 20:44:40Z stefan $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
11########################################################################
12#                               libCbc                                 #
13########################################################################
14
15# Name of the library compiled in this directory.  We want it to be installed
16# in the 'lib' directory
17lib_LTLIBRARIES = libCbc.la libCbcSolver.la
18
19# List all source files for this library, including headers
20libCbc_la_SOURCES = \
21        CbcConfig.h \
22        CbcBranchActual.hpp \
23        CbcBranchAllDifferent.cpp CbcBranchAllDifferent.hpp \
24        CbcBranchBase.hpp \
25        CbcBranchCut.cpp CbcBranchCut.hpp \
26        CbcBranchDecision.cpp CbcBranchDecision.hpp \
27        CbcBranchDefaultDecision.cpp CbcBranchDefaultDecision.hpp \
28        CbcBranchDynamic.cpp CbcBranchDynamic.hpp \
29        CbcBranchingObject.cpp CbcBranchingObject.hpp \
30        CbcBranchLotsize.cpp CbcBranchLotsize.hpp \
31        CbcBranchToFixLots.cpp CbcBranchToFixLots.hpp \
32        CbcCompareActual.hpp \
33        CbcCompareBase.hpp \
34        CbcCompareDefault.cpp CbcCompareDefault.hpp \
35        CbcCompareDepth.cpp CbcCompareDepth.hpp \
36        CbcCompareEstimate.cpp CbcCompareEstimate.hpp \
37        CbcCompareObjective.cpp CbcCompareObjective.hpp \
38        CbcConsequence.cpp CbcConsequence.hpp \
39        CbcClique.cpp CbcClique.hpp \
40        CbcCompare.hpp \
41        CbcCountRowCut.cpp CbcCountRowCut.hpp \
42        CbcCutGenerator.cpp CbcCutGenerator.hpp \
43        CbcCutModifier.cpp CbcCutModifier.hpp \
44        CbcCutSubsetModifier.cpp CbcCutSubsetModifier.hpp \
45        CbcDummyBranchingObject.cpp CbcDummyBranchingObject.hpp \
46        CbcEventHandler.cpp CbcEventHandler.hpp \
47        CbcFathom.cpp CbcFathom.hpp \
48        CbcFathomDynamicProgramming.cpp CbcFathomDynamicProgramming.hpp \
49        CbcFeasibilityBase.hpp \
50        CbcFixVariable.cpp CbcFixVariable.hpp \
51        CbcFullNodeInfo.cpp CbcFullNodeInfo.hpp \
52        CbcFollowOn.cpp CbcFollowOn.hpp \
53        CbcGeneral.cpp CbcGeneral.hpp \
54        CbcGeneralDepth.cpp CbcGeneralDepth.hpp \
55        CbcHeuristic.cpp CbcHeuristic.hpp \
56        CbcHeuristicDINS.cpp CbcHeuristicDINS.hpp \
57        CbcHeuristicDive.cpp CbcHeuristicDive.hpp \
58        CbcHeuristicDiveCoefficient.cpp CbcHeuristicDiveCoefficient.hpp \
59        CbcHeuristicDiveFractional.cpp CbcHeuristicDiveFractional.hpp \
60        CbcHeuristicDiveGuided.cpp CbcHeuristicDiveGuided.hpp \
61        CbcHeuristicDiveLineSearch.cpp CbcHeuristicDiveLineSearch.hpp \
62        CbcHeuristicDivePseudoCost.cpp CbcHeuristicDivePseudoCost.hpp \
63        CbcHeuristicDiveVectorLength.cpp CbcHeuristicDiveLength.hpp \
64        CbcHeuristicFPump.cpp CbcHeuristicFPump.hpp \
65        CbcHeuristicGreedy.cpp CbcHeuristicGreedy.hpp \
66        CbcHeuristicLocal.cpp CbcHeuristicLocal.hpp \
67        CbcHeuristicPivotAndFix.cpp CbcHeuristicPivotAndFix.hpp \
68        CbcHeuristicRandRound.cpp CbcHeuristicRandRound.hpp \
69        CbcHeuristicRENS.cpp CbcHeuristicRENS.hpp \
70        CbcHeuristicRINS.cpp CbcHeuristicRINS.hpp \
71        CbcHeuristicVND.cpp CbcHeuristicVND.hpp \
72        CbcHeuristicDW.cpp CbcHeuristicDW.hpp \
73        CbcMessage.cpp CbcMessage.hpp \
74        CbcModel.cpp CbcModel.hpp \
75        CbcNode.cpp CbcNode.hpp \
76        CbcNodeInfo.cpp CbcNodeInfo.hpp \
77        CbcNWay.cpp CbcNWay.hpp \
78        CbcObject.cpp CbcObject.hpp \
79        CbcObjectUpdateData.cpp CbcObjectUpdateData.hpp \
80        CbcPartialNodeInfo.cpp CbcPartialNodeInfo.hpp \
81        CbcSimpleInteger.cpp CbcSimpleInteger.hpp \
82        CbcSimpleIntegerDynamicPseudoCost.cpp \
83        CbcSimpleIntegerDynamicPseudoCost.hpp \
84        CbcSimpleIntegerPseudoCost.cpp \
85        CbcSimpleIntegerPseudoCost.hpp \
86        CbcSOS.cpp CbcSOS.hpp \
87        CbcStatistics.cpp CbcStatistics.hpp \
88        CbcStrategy.cpp CbcStrategy.hpp \
89        CbcSubProblem.cpp CbcSubProblem.hpp \
90        CbcSymmetry.cpp CbcSymmetry.hpp \
91        CbcThread.cpp CbcThread.hpp \
92        CbcTree.cpp CbcTree.hpp \
93        CbcTreeLocal.cpp CbcTreeLocal.hpp
94
95libCbcSolver_la_SOURCES = \
96        Cbc_C_Interface.cpp Cbc_C_Interface.h \
97        CbcCbcParam.cpp \
98        Cbc_ampl.cpp Cbc_ampl.h \
99        CbcLinked.cpp CbcLinked.hpp CbcLinkedUtils.cpp \
100        unitTestClp.cpp CbcSolver.cpp \
101        CbcSolverHeuristics.cpp CbcSolverHeuristics.hpp \
102        CbcSolverAnalyze.cpp CbcSolverAnalyze.hpp \
103        CbcMipStartIO.cpp CbcMipStartIO.hpp \
104        CbcSolverExpandKnapsack.cpp CbcSolverExpandKnapsack.hpp
105
106# List all additionally required libraries
107if DEPENDENCY_LINKING
108libCbc_la_LIBADD = $(CBCLIB_LIBS)
109libCbcSolver_la_LIBADD = $(CBCLIB_LIBS) libCbc.la
110endif
111
112# This is for libtool
113
114libCbc_la_LDFLAGS = $(LT_LDFLAGS)
115libCbcSolver_la_LDFLAGS = $(LT_LDFLAGS)
116
117# Some common setup for cbc and cbc-generic.
118
119bin_PROGRAMS =
120AM_CPPFLAGS = $(COINDEPEND_CFLAGS) $(CLP_CFLAGS) $(CPX_CFLAGS) $(ASL_CFLAGS)
121
122if COIN_HAS_NTY
123AM_CPPFLAGS += -I$(NTYINCDIR)
124endif
125
126########################################################################
127#                            cbc program                               #
128########################################################################
129
130if COIN_HAS_CLP
131
132# Name of the executable compiled in this directory.  We want it to be
133# installed in the 'bin' directory
134bin_PROGRAMS += cbc
135
136# List all source files for this executable, including headers
137cbc_SOURCES = CoinSolve.cpp
138
139# Additional libraries
140cbc_LDADD = libCbcSolver.la libCbc.la $(CBCLIB_LIBS) $(ASL_LIBS)
141cbc_DEPENDENCIES = libCbcSolver.la libCbc.la $(CBCLIB_DEPENDENCIES) $(ASL_DEPENDENCIES)
142
143endif
144
145
146########################################################################
147#                        cbc-generic program                           #
148########################################################################
149
150if CBC_BUILD_CBC_GENERIC
151
152# Name of the executable compiled in this directory.  We want it to be
153# installed in the 'bin' directory
154
155bin_PROGRAMS += cbc-generic
156
157# List all source files for this executable, including headers
158
159cbc_generic_SOURCES = \
160        CbcGenBaB.cpp \
161        CbcGenCbcParam.cpp CbcGenCbcParam.hpp CbcGenCbcParamUtils.cpp \
162        CbcGenCtlBlk.cpp CbcGenCtlBlk.hpp \
163        CbcGeneric.cpp \
164        CbcGenMessages.cpp CbcGenMessages.hpp \
165        CbcGenOsiParam.cpp CbcGenOsiParam.hpp CbcGenOsiParamUtils.cpp \
166        CbcGenParam.cpp CbcGenParam.hpp CbcGenParamUtils.cpp \
167        CbcGenSolution.cpp \
168        CbcGenSolvers.cpp
169
170cbc_generic_LDADD = libCbcSolver.la libCbc.la $(CBCGENERIC_LIBS)
171cbc_generic_DEPENDENCIES = libCbcSolver.la libCbc.la $(CBCGENERIC_DEPENDENCIES)
172
173# List all additionally required solver and Osi libraries
174# the linker flags for all available LP solvers should already be included in $CBCGENERIC_LIBS,
175# so just add compiler flags here (all we can think of)
176
177AM_CPPFLAGS += $(DYLP_CFLAGS) $(GLPK_CFLAGS) $(MSK_CFLAGS) $(SPX_CFLAGS) $(VOL_CFLAGS) $(XPR_CFLAGS)
178
179endif
180
181########################################################################
182#                            Additional flags                          #
183########################################################################
184
185# List additional defines
186AM_CPPFLAGS += -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG
187
188# This line is necessary to allow VPATH compilation
189DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/src
190
191########################################################################
192#                Headers that need to be installed                     #
193########################################################################
194
195# Here list all the header files that are required by a user of the library,
196# and that therefore should be installed in 'include/coin'
197includecoindir = $(includedir)/coin
198includecoin_HEADERS = \
199        Cbc_C_Interface.h \
200        CbcBranchActual.hpp \
201        CbcBranchAllDifferent.hpp \
202        CbcBranchBase.hpp \
203        CbcBranchDynamic.hpp \
204        CbcBranchCut.hpp \
205        CbcBranchDecision.hpp \
206        CbcBranchDefaultDecision.hpp \
207        CbcBranchingObject.hpp \
208        CbcBranchLotsize.hpp \
209        CbcBranchToFixLots.hpp \
210        CbcCompareActual.hpp \
211        CbcCompareBase.hpp \
212        CbcCompareDefault.hpp \
213        CbcCompareDepth.hpp \
214        CbcCompareEstimate.hpp \
215        CbcCompareObjective.hpp \
216        CbcConsequence.hpp \
217        CbcClique.hpp \
218        CbcCompare.hpp \
219        CbcCountRowCut.hpp \
220        CbcCutGenerator.hpp \
221        CbcCutModifier.hpp \
222        CbcCutSubsetModifier.hpp \
223        CbcDummyBranchingObject.hpp \
224        CbcFathom.hpp \
225        CbcEventHandler.hpp \
226        CbcFathomDynamicProgramming.hpp \
227        CbcFeasibilityBase.hpp \
228        CbcFixVariable.hpp \
229        CbcFollowOn.hpp \
230        CbcFullNodeInfo.hpp \
231        CbcGeneral.hpp \
232        CbcGeneralDepth.hpp \
233        CbcHeuristic.hpp \
234        CbcHeuristicDINS.hpp \
235        CbcHeuristicDive.hpp \
236        CbcHeuristicDiveCoefficient.hpp \
237        CbcHeuristicDiveFractional.hpp \
238        CbcHeuristicDiveGuided.hpp \
239        CbcHeuristicDiveLineSearch.hpp \
240        CbcHeuristicDivePseudoCost.hpp \
241        CbcHeuristicDiveVectorLength.hpp \
242        CbcHeuristicFPump.hpp \
243        CbcHeuristicGreedy.hpp \
244        CbcHeuristicLocal.hpp \
245        CbcHeuristicPivotAndFix.hpp \
246        CbcHeuristicRandRound.hpp \
247        CbcHeuristicRENS.hpp \
248        CbcHeuristicRINS.hpp \
249        CbcHeuristicVND.hpp \
250        CbcHeuristicDW.hpp \
251        CbcMessage.hpp \
252        CbcModel.hpp \
253        CbcNode.hpp \
254        CbcNodeInfo.hpp \
255        CbcNWay.hpp \
256        CbcObject.hpp \
257        CbcObjectUpdateData.hpp \
258        CbcParam.hpp \
259        CbcPartialNodeInfo.hpp \
260        CbcSimpleInteger.hpp \
261        CbcSimpleIntegerDynamicPseudoCost.hpp \
262        CbcSimpleIntegerPseudoCost.hpp \
263        CbcStrategy.hpp \
264        CbcSolver.hpp \
265        CbcMipStartIO.hpp \
266        CbcSOS.hpp \
267        CbcSubProblem.hpp \
268        CbcTree.hpp \
269        CbcLinked.hpp \
270        CbcTreeLocal.hpp \
271        ClpConstraintAmpl.hpp \
272        ClpAmplObjective.hpp
273
274########################################################################
275#                     Installing manifest (MSVC++)                     #
276########################################################################
277
278if COIN_CXX_IS_CL
279install-exec-hook:
280        test -s cbc.exe.manifest && \
281        mt -manifest cbc.exe.manifest -outputresource:cbc.exe;\
282        cp cbc.exe $(bindir)/cbc.exe
283endif
284
285#######################################################################
286# Create the Config.h file that has all public defines and install it #
287#######################################################################
288
289install-exec-local:
290        $(install_sh_DATA) config_cbc.h $(DESTDIR)$(includecoindir)/CbcConfig.h
291
292uninstall-local:
293        rm -f $(DESTDIR)$(includecoindir)/CbcConfig.h
Note: See TracBrowser for help on using the repository browser.