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

Last change on this file since 2048 was 2048, checked in by forrest, 4 years ago

First try at orbital branching

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