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

Last change on this file since 1623 was 1598, checked in by lou, 9 years ago

CbcChooseVariable? appears to be unused and unfinished. No need to keep it.

  • 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 1598 2011-02-19 18:38:43Z forrest $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
11SUBDIRS = OsiCbc
12
13########################################################################
14#                               libCbc                                 #
15########################################################################
16
17# Name of the library compiled in this directory.  We want it to be installed
18# in the 'lib' directory
19lib_LTLIBRARIES = libCbc.la libCbcSolver.la
20
21# List all source files for this library, including headers
22libCbc_la_SOURCES = \
23        Cbc_C_Interface.cpp Cbc_C_Interface.h \
24        CbcConfig.h \
25        CbcBranchActual.hpp \
26        CbcBranchAllDifferent.cpp CbcBranchAllDifferent.hpp \
27        CbcBranchBase.hpp \
28        CbcBranchCut.cpp CbcBranchCut.hpp \
29        CbcBranchDecision.cpp CbcBranchDecision.hpp \
30        CbcBranchDefaultDecision.cpp CbcBranchDefaultDecision.hpp \
31        CbcBranchDynamic.cpp CbcBranchDynamic.hpp \
32        CbcBranchingObject.cpp CbcBranchingObject.hpp \
33        CbcBranchLotsize.cpp CbcBranchLotsize.hpp \
34        CbcBranchToFixLots.cpp CbcBranchToFixLots.hpp \
35        CbcCompareActual.hpp \
36        CbcCompareBase.hpp \
37        CbcCompareDefault.cpp CbcCompareDefault.hpp \
38        CbcCompareDepth.cpp CbcCompareDepth.hpp \
39        CbcCompareEstimate.cpp CbcCompareEstimate.hpp \
40        CbcCompareObjective.cpp CbcCompareObjective.hpp \
41        CbcConsequence.cpp CbcConsequence.hpp \
42        CbcClique.cpp CbcClique.hpp \
43        CbcCompare.hpp \
44        CbcCountRowCut.cpp CbcCountRowCut.hpp \
45        CbcCutGenerator.cpp CbcCutGenerator.hpp \
46        CbcCutModifier.cpp CbcCutModifier.hpp \
47        CbcCutSubsetModifier.cpp CbcCutSubsetModifier.hpp \
48        CbcDummyBranchingObject.cpp CbcDummyBranchingObject.hpp \
49        CbcEventHandler.cpp CbcEventHandler.hpp \
50        CbcFathom.cpp CbcFathom.hpp \
51        CbcFathomDynamicProgramming.cpp CbcFathomDynamicProgramming.hpp \
52        CbcFeasibilityBase.hpp \
53        CbcFixVariable.cpp CbcFixVariable.hpp \
54        CbcFullNodeInfo.cpp CbcFullNodeInfo.hpp \
55        CbcFollowOn.cpp CbcFollowOn.hpp \
56        CbcGeneral.cpp CbcGeneral.hpp \
57        CbcGeneralDepth.cpp CbcGeneralDepth.hpp \
58        CbcHeuristic.cpp CbcHeuristic.hpp \
59        CbcHeuristicDINS.cpp CbcHeuristicDINS.hpp \
60        CbcHeuristicDive.cpp CbcHeuristicDive.hpp \
61        CbcHeuristicDiveCoefficient.cpp CbcHeuristicDiveCoefficient.hpp \
62        CbcHeuristicDiveFractional.cpp CbcHeuristicDiveFractional.hpp \
63        CbcHeuristicDiveGuided.cpp CbcHeuristicDiveGuided.hpp \
64        CbcHeuristicDiveLineSearch.cpp CbcHeuristicDiveLineSearch.hpp \
65        CbcHeuristicDivePseudoCost.cpp CbcHeuristicDivePseudoCost.hpp \
66        CbcHeuristicDiveVectorLength.cpp CbcHeuristicDiveLength.hpp \
67        CbcHeuristicFPump.cpp CbcHeuristicFPump.hpp \
68        CbcHeuristicGreedy.cpp CbcHeuristicGreedy.hpp \
69        CbcHeuristicLocal.cpp CbcHeuristicLocal.hpp \
70        CbcHeuristicPivotAndFix.cpp CbcHeuristicPivotAndFix.hpp \
71        CbcHeuristicRandRound.cpp CbcHeuristicRandRound.hpp \
72        CbcHeuristicRENS.cpp CbcHeuristicRENS.hpp \
73        CbcHeuristicRINS.cpp CbcHeuristicRINS.hpp \
74        CbcHeuristicVND.cpp CbcHeuristicVND.hpp \
75        CbcMessage.cpp CbcMessage.hpp \
76        CbcModel.cpp CbcModel.hpp \
77        CbcNode.cpp CbcNode.hpp \
78        CbcNodeInfo.cpp CbcNodeInfo.hpp \
79        CbcNWay.cpp CbcNWay.hpp \
80        CbcObject.cpp CbcObject.hpp \
81        CbcObjectUpdateData.cpp CbcObjectUpdateData.hpp \
82        CbcPartialNodeInfo.cpp CbcPartialNodeInfo.hpp \
83        CbcSimpleInteger.cpp CbcSimpleInteger.hpp \
84        CbcSimpleIntegerDynamicPseudoCost.cpp \
85        CbcSimpleIntegerDynamicPseudoCost.hpp \
86        CbcSimpleIntegerPseudoCost.cpp \
87        CbcSimpleIntegerPseudoCost.hpp \
88        CbcSOS.cpp CbcSOS.hpp \
89        CbcStatistics.cpp CbcStatistics.hpp \
90        CbcStrategy.cpp CbcStrategy.hpp \
91        CbcSubProblem.cpp CbcSubProblem.hpp \
92        CbcThread.cpp CbcThread.hpp \
93        CbcTree.cpp CbcTree.hpp \
94        CbcTreeLocal.cpp CbcTreeLocal.hpp
95
96libCbcSolver_la_SOURCES = \
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        CbcSolverExpandKnapsack.cpp CbcSolverExpandKnapsack.hpp
104
105# This is for libtool
106
107libCbc_la_LDFLAGS = $(LT_LDFLAGS)
108libCbcSolver_la_LDFLAGS = $(LT_LDFLAGS)
109
110# Some common setup for cbc and cbc-generic.
111
112bin_PROGRAMS =
113AM_CPPFLAGS = $(COINDEPEND_CFLAGS) $(CLP_CFLAGS) $(CPX_CFLAGS) $(ASL_CFLAGS)
114
115########################################################################
116#                            cbc program                               #
117########################################################################
118
119if COIN_HAS_CLP
120
121# Name of the executable compiled in this directory.  We want it to be
122# installed in the 'bin' directory
123bin_PROGRAMS += cbc
124
125# List all source files for this executable, including headers
126cbc_SOURCES = CoinSolve.cpp
127
128# Additional libraries
129cbc_LDADD = libCbcSolver.la libCbc.la $(CBCLIB_LIBS) $(ASL_LIBS)
130cbc_DEPENDENCIES = libCbcSolver.la libCbc.la $(CBCLIB_DEPENDENCIES) $(ASL_DEPENDENCIES)
131
132# Finally, the -rpath flag is used by libtool to make sure that the shared
133# library is found (in the lib install directory) when we are using dynamic
134# libraries.
135cbc_LDFLAGS = -rpath $(libdir)
136
137endif
138
139
140########################################################################
141#                        cbc-generic program                           #
142########################################################################
143
144if CBC_BUILD_CBC_GENERIC
145
146# Name of the executable compiled in this directory.  We want it to be
147# installed in the 'bin' directory
148
149bin_PROGRAMS += cbc-generic
150
151# List all source files for this executable, including headers
152
153cbc_generic_SOURCES = \
154        CbcGenBaB.cpp \
155        CbcGenCbcParam.cpp CbcGenCbcParam.hpp CbcGenCbcParamUtils.cpp \
156        CbcGenCtlBlk.cpp CbcGenCtlBlk.hpp \
157        CbcGeneric.cpp \
158        CbcGenMessages.cpp CbcGenMessages.hpp \
159        CbcGenOsiParam.cpp CbcGenOsiParam.hpp CbcGenOsiParamUtils.cpp \
160        CbcGenParam.cpp CbcGenParam.hpp CbcGenParamUtils.cpp \
161        CbcGenSolution.cpp \
162        CbcGenSolvers.cpp
163
164cbc_generic_LDADD = libCbcSolver.la libCbc.la $(CBCGENERIC_LIBS)
165cbc_generic_DEPENDENCIES = libCbcSolver.la libCbc.la $(CBCGENERIC_DEPENDENCIES)
166
167# List all additionally required solver and Osi libraries
168# the linker flags for all available LP solvers should already be included in $CBCGENERIC_LIBS,
169# so just add compiler flags here (all we can think of)
170
171AM_CPPFLAGS += $(DYLP_CFLAGS) $(GLPK_CFLAGS) $(MSK_CFLAGS) $(SPX_CFLAGS) $(VOL_CFLAGS) $(XPR_CFLAGS)
172
173# Finally, the -rpath flag is used by libtool to make sure that the shared
174# library is found (in the lib install directory) when we are using dynamic
175# libraries.
176
177cbc_generic_LDFLAGS = -rpath $(libdir)
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 with MS compilers
189# on Cygwin
190DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
191
192########################################################################
193#                Headers that need to be installed                     #
194########################################################################
195
196# Here list all the header files that are required by a user of the library,
197# and that therefore should be installed in 'include/coin'
198includecoindir = $(includedir)/coin
199includecoin_HEADERS = \
200        ../inc/config_cbc.h \
201        Cbc_C_Interface.h \
202        CbcBranchActual.hpp \
203        CbcBranchAllDifferent.hpp \
204        CbcBranchBase.hpp \
205        CbcBranchDynamic.hpp \
206        CbcBranchCut.hpp \
207        CbcBranchDecision.hpp \
208        CbcBranchDefaultDecision.hpp \
209        CbcBranchingObject.hpp \
210        CbcBranchLotsize.hpp \
211        CbcBranchToFixLots.hpp \
212        CbcCompareActual.hpp \
213        CbcCompareBase.hpp \
214        CbcCompareDefault.hpp \
215        CbcCompareDepth.hpp \
216        CbcCompareEstimate.hpp \
217        CbcCompareObjective.hpp \
218        CbcConsequence.hpp \
219        CbcClique.hpp \
220        CbcCompare.hpp \
221        CbcCutGenerator.hpp \
222        CbcCutModifier.hpp \
223        CbcCutSubsetModifier.hpp \
224        CbcDummyBranchingObject.hpp \
225        CbcFathom.hpp \
226        CbcEventHandler.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        CbcMessage.hpp \
251        CbcModel.hpp \
252        CbcNode.hpp \
253        CbcNodeInfo.hpp \
254        CbcNWay.hpp \
255        CbcObject.hpp \
256        CbcObjectUpdateData.hpp \
257        CbcPartialNodeInfo.hpp \
258        CbcSimpleInteger.hpp \
259        CbcSimpleIntegerDynamicPseudoCost.hpp \
260        CbcSimpleIntegerPseudoCost.hpp \
261        CbcStrategy.hpp \
262        CbcSolver.hpp \
263        CbcSOS.hpp \
264        CbcSubProblem.hpp \
265        CbcTree.hpp \
266        CbcLinked.hpp \
267        CbcTreeLocal.hpp \
268        ClpConstraintAmpl.hpp \
269        ClpAmplObjective.hpp
270
271#############################################################################
272# Create the Config.h file that always defines HAVE_CONFIG_H and install it #
273#############################################################################
274
275# You only need to adapt the following line
276ConfigHeader = CbcConfig.h
277
278install-exec-local:
279        echo "#ifndef HAVE_CONFIG_H" >bla
280        echo "#define HAVE_CONFIG_H" >>bla
281        echo "#endif" >> bla
282        cat $(srcdir)/$(ConfigHeader) >> bla
283        $(install_sh_DATA) bla $(DESTDIR)$(includecoindir)/$(ConfigHeader)
284        rm -f bla
285
286uninstall-local:
287        rm -f $(DESTDIR)$(includecoindir)/$(ConfigHeader)
Note: See TracBrowser for help on using the repository browser.