source: stable/2.8/Cbc/src/Makefile.am @ 1936

Last change on this file since 1936 was 1936, checked in by stefan, 5 years ago

merge r1933, r1934, r1935 from trunk

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