source: trunk/Cbc/src/Makefile.am @ 2016

Last change on this file since 2016 was 2016, checked in by mlubin, 5 years ago

More C interface work. Move C interface to libCbcSolver so that we can use CbcMain0 and CbcMain1.

  • 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, 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 2016 2014-03-10 21:58:20Z mlubin $
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        CbcThread.cpp CbcThread.hpp \
91        CbcTree.cpp CbcTree.hpp \
92        CbcTreeLocal.cpp CbcTreeLocal.hpp
93
94libCbcSolver_la_SOURCES = \
95        Cbc_C_Interface.cpp Cbc_C_Interface.h \
96        CbcCbcParam.cpp \
97        Cbc_ampl.cpp Cbc_ampl.h \
98        CbcLinked.cpp CbcLinked.hpp CbcLinkedUtils.cpp \
99        unitTestClp.cpp CbcSolver.cpp \
100        CbcSolverHeuristics.cpp CbcSolverHeuristics.hpp \
101        CbcSolverAnalyze.cpp CbcSolverAnalyze.hpp \
102        CbcMipStartIO.cpp CbcMipStartIO.hpp \
103        CbcSolverExpandKnapsack.cpp CbcSolverExpandKnapsack.hpp
104
105# List all additionally required libraries
106if DEPENDENCY_LINKING
107libCbc_la_LIBADD = $(CBCLIB_LIBS)
108libCbcSolver_la_LIBADD = $(CBCLIB_LIBS) libCbc.la
109endif
110
111# This is for libtool
112
113libCbc_la_LDFLAGS = $(LT_LDFLAGS)
114libCbcSolver_la_LDFLAGS = $(LT_LDFLAGS)
115
116# Some common setup for cbc and cbc-generic.
117
118bin_PROGRAMS =
119AM_CPPFLAGS = $(COINDEPEND_CFLAGS) $(CLP_CFLAGS) $(CPX_CFLAGS) $(ASL_CFLAGS)
120
121########################################################################
122#                            cbc program                               #
123########################################################################
124
125if COIN_HAS_CLP
126
127# Name of the executable compiled in this directory.  We want it to be
128# installed in the 'bin' directory
129bin_PROGRAMS += cbc
130
131# List all source files for this executable, including headers
132cbc_SOURCES = CoinSolve.cpp
133
134# Additional libraries
135cbc_LDADD = libCbcSolver.la libCbc.la $(CBCLIB_LIBS) $(ASL_LIBS)
136cbc_DEPENDENCIES = libCbcSolver.la libCbc.la $(CBCLIB_DEPENDENCIES) $(ASL_DEPENDENCIES)
137
138endif
139
140
141########################################################################
142#                        cbc-generic program                           #
143########################################################################
144
145if CBC_BUILD_CBC_GENERIC
146
147# Name of the executable compiled in this directory.  We want it to be
148# installed in the 'bin' directory
149
150bin_PROGRAMS += cbc-generic
151
152# List all source files for this executable, including headers
153
154cbc_generic_SOURCES = \
155        CbcGenBaB.cpp \
156        CbcGenCbcParam.cpp CbcGenCbcParam.hpp CbcGenCbcParamUtils.cpp \
157        CbcGenCtlBlk.cpp CbcGenCtlBlk.hpp \
158        CbcGeneric.cpp \
159        CbcGenMessages.cpp CbcGenMessages.hpp \
160        CbcGenOsiParam.cpp CbcGenOsiParam.hpp CbcGenOsiParamUtils.cpp \
161        CbcGenParam.cpp CbcGenParam.hpp CbcGenParamUtils.cpp \
162        CbcGenSolution.cpp \
163        CbcGenSolvers.cpp
164
165cbc_generic_LDADD = libCbcSolver.la libCbc.la $(CBCGENERIC_LIBS)
166cbc_generic_DEPENDENCIES = libCbcSolver.la libCbc.la $(CBCGENERIC_DEPENDENCIES)
167
168# List all additionally required solver and Osi libraries
169# the linker flags for all available LP solvers should already be included in $CBCGENERIC_LIBS,
170# so just add compiler flags here (all we can think of)
171
172AM_CPPFLAGS += $(DYLP_CFLAGS) $(GLPK_CFLAGS) $(MSK_CFLAGS) $(SPX_CFLAGS) $(VOL_CFLAGS) $(XPR_CFLAGS)
173
174endif
175
176########################################################################
177#                            Additional flags                          #
178########################################################################
179
180# List additional defines
181AM_CPPFLAGS += -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG
182
183# This line is necessary to allow VPATH compilation
184DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/src
185
186########################################################################
187#                Headers that need to be installed                     #
188########################################################################
189
190# Here list all the header files that are required by a user of the library,
191# and that therefore should be installed in 'include/coin'
192includecoindir = $(includedir)/coin
193includecoin_HEADERS = \
194        Cbc_C_Interface.h \
195        CbcBranchActual.hpp \
196        CbcBranchAllDifferent.hpp \
197        CbcBranchBase.hpp \
198        CbcBranchDynamic.hpp \
199        CbcBranchCut.hpp \
200        CbcBranchDecision.hpp \
201        CbcBranchDefaultDecision.hpp \
202        CbcBranchingObject.hpp \
203        CbcBranchLotsize.hpp \
204        CbcBranchToFixLots.hpp \
205        CbcCompareActual.hpp \
206        CbcCompareBase.hpp \
207        CbcCompareDefault.hpp \
208        CbcCompareDepth.hpp \
209        CbcCompareEstimate.hpp \
210        CbcCompareObjective.hpp \
211        CbcConsequence.hpp \
212        CbcClique.hpp \
213        CbcCompare.hpp \
214        CbcCountRowCut.hpp \
215        CbcCutGenerator.hpp \
216        CbcCutModifier.hpp \
217        CbcCutSubsetModifier.hpp \
218        CbcDummyBranchingObject.hpp \
219        CbcFathom.hpp \
220        CbcEventHandler.hpp \
221        CbcFathomDynamicProgramming.hpp \
222        CbcFeasibilityBase.hpp \
223        CbcFixVariable.hpp \
224        CbcFollowOn.hpp \
225        CbcFullNodeInfo.hpp \
226        CbcGeneral.hpp \
227        CbcGeneralDepth.hpp \
228        CbcHeuristic.hpp \
229        CbcHeuristicDINS.hpp \
230        CbcHeuristicDive.hpp \
231        CbcHeuristicDiveCoefficient.hpp \
232        CbcHeuristicDiveFractional.hpp \
233        CbcHeuristicDiveGuided.hpp \
234        CbcHeuristicDiveLineSearch.hpp \
235        CbcHeuristicDivePseudoCost.hpp \
236        CbcHeuristicDiveVectorLength.hpp \
237        CbcHeuristicFPump.hpp \
238        CbcHeuristicGreedy.hpp \
239        CbcHeuristicLocal.hpp \
240        CbcHeuristicPivotAndFix.hpp \
241        CbcHeuristicRandRound.hpp \
242        CbcHeuristicRENS.hpp \
243        CbcHeuristicRINS.hpp \
244        CbcHeuristicVND.hpp \
245        CbcHeuristicDW.hpp \
246        CbcMessage.hpp \
247        CbcModel.hpp \
248        CbcNode.hpp \
249        CbcNodeInfo.hpp \
250        CbcNWay.hpp \
251        CbcObject.hpp \
252        CbcObjectUpdateData.hpp \
253        CbcPartialNodeInfo.hpp \
254        CbcSimpleInteger.hpp \
255        CbcSimpleIntegerDynamicPseudoCost.hpp \
256        CbcSimpleIntegerPseudoCost.hpp \
257        CbcStrategy.hpp \
258        CbcSolver.hpp \
259        CbcMipStartIO.hpp \
260        CbcSOS.hpp \
261        CbcSubProblem.hpp \
262        CbcTree.hpp \
263        CbcLinked.hpp \
264        CbcTreeLocal.hpp \
265        ClpConstraintAmpl.hpp \
266        ClpAmplObjective.hpp
267
268########################################################################
269#                     Installing manifest (MSVC++)                     #
270########################################################################
271
272if COIN_CXX_IS_CL
273install-exec-hook:
274        test -s cbc.exe.manifest && \
275        mt -manifest cbc.exe.manifest -outputresource:cbc.exe;\
276        cp cbc.exe $(bindir)/cbc.exe
277endif
278
279#######################################################################
280# Create the Config.h file that has all public defines and install it #
281#######################################################################
282
283install-exec-local:
284        $(install_sh_DATA) config_cbc.h $(DESTDIR)$(includecoindir)/CbcConfig.h
285
286uninstall-local:
287        rm -f $(DESTDIR)$(includecoindir)/CbcConfig.h
Note: See TracBrowser for help on using the repository browser.