source: branches/autotools-update/Cbc/src/Makefile.am @ 2391

Last change on this file since 2391 was 2391, checked in by lou, 12 months ago

Fix up handling of nauty now that COIN_CHK_LIB has a functioning link check.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 9.5 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 2391 2018-10-13 02:49:50Z lou $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
11include $(top_srcdir)/BuildTools/Makemain.inc
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        CbcConfig.h \
24        CbcBranchActual.hpp \
25        CbcBranchAllDifferent.cpp CbcBranchAllDifferent.hpp \
26        CbcBranchBase.hpp \
27        CbcBranchCut.cpp CbcBranchCut.hpp \
28        CbcBranchDecision.cpp CbcBranchDecision.hpp \
29        CbcBranchDefaultDecision.cpp CbcBranchDefaultDecision.hpp \
30        CbcBranchDynamic.cpp CbcBranchDynamic.hpp \
31        CbcBranchingObject.cpp CbcBranchingObject.hpp \
32        CbcBranchLotsize.cpp CbcBranchLotsize.hpp \
33        CbcBranchToFixLots.cpp CbcBranchToFixLots.hpp \
34        CbcCompareActual.hpp \
35        CbcCompareBase.hpp \
36        CbcCompareDefault.cpp CbcCompareDefault.hpp \
37        CbcCompareDepth.cpp CbcCompareDepth.hpp \
38        CbcCompareEstimate.cpp CbcCompareEstimate.hpp \
39        CbcCompareObjective.cpp CbcCompareObjective.hpp \
40        CbcConsequence.cpp CbcConsequence.hpp \
41        CbcClique.cpp CbcClique.hpp \
42        CbcCompare.hpp \
43        CbcCountRowCut.cpp CbcCountRowCut.hpp \
44        CbcCutGenerator.cpp CbcCutGenerator.hpp \
45        CbcCutModifier.cpp CbcCutModifier.hpp \
46        CbcCutSubsetModifier.cpp CbcCutSubsetModifier.hpp \
47        CbcDummyBranchingObject.cpp CbcDummyBranchingObject.hpp \
48        CbcEventHandler.cpp CbcEventHandler.hpp \
49        CbcFathom.cpp CbcFathom.hpp \
50        CbcFathomDynamicProgramming.cpp CbcFathomDynamicProgramming.hpp \
51        CbcFeasibilityBase.hpp \
52        CbcFixVariable.cpp CbcFixVariable.hpp \
53        CbcFullNodeInfo.cpp CbcFullNodeInfo.hpp \
54        CbcFollowOn.cpp CbcFollowOn.hpp \
55        CbcGeneral.cpp CbcGeneral.hpp \
56        CbcGeneralDepth.cpp CbcGeneralDepth.hpp \
57        CbcHeuristic.cpp CbcHeuristic.hpp \
58        CbcHeuristicDINS.cpp CbcHeuristicDINS.hpp \
59        CbcHeuristicDive.cpp CbcHeuristicDive.hpp \
60        CbcHeuristicDiveCoefficient.cpp CbcHeuristicDiveCoefficient.hpp \
61        CbcHeuristicDiveFractional.cpp CbcHeuristicDiveFractional.hpp \
62        CbcHeuristicDiveGuided.cpp CbcHeuristicDiveGuided.hpp \
63        CbcHeuristicDiveLineSearch.cpp CbcHeuristicDiveLineSearch.hpp \
64        CbcHeuristicDivePseudoCost.cpp CbcHeuristicDivePseudoCost.hpp \
65        CbcHeuristicDiveVectorLength.cpp CbcHeuristicDiveLength.hpp \
66        CbcHeuristicFPump.cpp CbcHeuristicFPump.hpp \
67        CbcHeuristicGreedy.cpp CbcHeuristicGreedy.hpp \
68        CbcHeuristicLocal.cpp CbcHeuristicLocal.hpp \
69        CbcHeuristicPivotAndFix.cpp CbcHeuristicPivotAndFix.hpp \
70        CbcHeuristicRandRound.cpp CbcHeuristicRandRound.hpp \
71        CbcHeuristicRENS.cpp CbcHeuristicRENS.hpp \
72        CbcHeuristicRINS.cpp CbcHeuristicRINS.hpp \
73        CbcHeuristicVND.cpp CbcHeuristicVND.hpp \
74        CbcHeuristicDW.cpp CbcHeuristicDW.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        CbcSymmetry.cpp CbcSymmetry.hpp \
93        CbcThread.cpp CbcThread.hpp \
94        CbcTree.cpp CbcTree.hpp \
95        CbcTreeLocal.cpp CbcTreeLocal.hpp
96
97libCbcSolver_la_SOURCES = \
98        Cbc_C_Interface.cpp Cbc_C_Interface.h \
99        CbcCbcParam.cpp \
100        Cbc_ampl.cpp Cbc_ampl.h \
101        CbcLinked.cpp CbcLinked.hpp CbcLinkedUtils.cpp \
102        unitTestClp.cpp CbcSolver.cpp \
103        CbcSolverHeuristics.cpp CbcSolverHeuristics.hpp \
104        CbcSolverAnalyze.cpp CbcSolverAnalyze.hpp \
105        CbcMipStartIO.cpp CbcMipStartIO.hpp \
106        CbcSolverExpandKnapsack.cpp CbcSolverExpandKnapsack.hpp
107
108# List all additionally required libraries
109
110if DEPENDENCY_LINKING
111  libCbc_la_LIBADD = $(CBCLIB_LFLAGS)
112  libCbcSolver_la_LIBADD = $(CBCLIB_LFLAGS) libCbc.la
113endif
114
115# This is for libtool
116
117libCbc_la_LDFLAGS = $(LT_LDFLAGS)
118libCbcSolver_la_LDFLAGS = $(LT_LDFLAGS)
119
120# Some common setup for cbc and cbc-generic.
121
122bin_PROGRAMS =
123AM_CPPFLAGS = -DCBC_BUILD $(CBCLIB_CFLAGS)
124
125if COIN_HAS_NAUTY
126  AM_CPPFLAGS += -DCOIN_HAS_NTY $(NAUTY_CFLAGS)
127endif
128
129########################################################################
130#                            cbc program                               #
131########################################################################
132
133if COIN_HAS_CLP
134
135# Name of the executable compiled in this directory.  We want it to be
136# installed in the 'bin' directory
137bin_PROGRAMS += cbc
138
139# List all source files for this executable, including headers
140cbc_SOURCES = CoinSolve.cpp
141
142# Additional libraries
143cbc_LDADD = libCbcSolver.la libCbc.la $(CBCLIB_LFLAGS)
144#cbc_DEPENDENCIES = libCbcSolver.la libCbc.la $(CBCLIB_DEPENDENCIES) $(ASL_DEPENDENCIES)
145
146endif
147
148
149########################################################################
150#                        cbc-generic program                           #
151########################################################################
152
153if CBC_BUILD_CBC_GENERIC
154
155# Name of the executable compiled in this directory.  We want it to be
156# installed in the 'bin' directory
157
158bin_PROGRAMS += cbc-generic
159
160# List all source files for this executable, including headers
161
162cbc_generic_SOURCES = \
163        CbcGenBaB.cpp \
164        CbcGenCbcParam.cpp CbcGenCbcParam.hpp CbcGenCbcParamUtils.cpp \
165        CbcGenCtlBlk.cpp CbcGenCtlBlk.hpp \
166        CbcGeneric.cpp \
167        CbcGenMessages.cpp CbcGenMessages.hpp \
168        CbcGenOsiParam.cpp CbcGenOsiParam.hpp CbcGenOsiParamUtils.cpp \
169        CbcGenParam.cpp CbcGenParam.hpp CbcGenParamUtils.cpp \
170        CbcGenSolution.cpp \
171        CbcGenSolvers.cpp
172
173cbc_generic_LDADD = libCbcSolver.la libCbc.la $(CBCGENERIC_LFLAGS)
174# cbc_generic_DEPENDENCIES = libCbcSolver.la libCbc.la $(CBCGENERIC_DEPENDENCIES)
175
176# List all additionally required solver and Osi libraries
177# the linker flags for all available LP solvers should already be included in $CBCGENERIC_LIBS,
178# so just add compiler flags here (all we can think of)
179
180AM_CPPFLAGS += $(CBCGENERIC_CFLAGS)
181
182endif
183
184########################################################################
185#                            Additional flags                          #
186########################################################################
187
188# List additional defines
189
190AM_CPPFLAGS += -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG
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-or'
198includecoindir = $(pkgincludedir)
199includecoin_HEADERS = \
200        Cbc_C_Interface.h \
201        CbcBranchActual.hpp \
202        CbcBranchAllDifferent.hpp \
203        CbcBranchBase.hpp \
204        CbcBranchDynamic.hpp \
205        CbcBranchCut.hpp \
206        CbcBranchDecision.hpp \
207        CbcBranchDefaultDecision.hpp \
208        CbcBranchingObject.hpp \
209        CbcBranchLotsize.hpp \
210        CbcBranchToFixLots.hpp \
211        CbcCompareActual.hpp \
212        CbcCompareBase.hpp \
213        CbcCompareDefault.hpp \
214        CbcCompareDepth.hpp \
215        CbcCompareEstimate.hpp \
216        CbcCompareObjective.hpp \
217        CbcConsequence.hpp \
218        CbcClique.hpp \
219        CbcCompare.hpp \
220        CbcCountRowCut.hpp \
221        CbcCutGenerator.hpp \
222        CbcCutModifier.hpp \
223        CbcCutSubsetModifier.hpp \
224        CbcDummyBranchingObject.hpp \
225        CbcFathom.hpp \
226        CbcEventHandler.hpp \
227        CbcFathomDynamicProgramming.hpp \
228        CbcFeasibilityBase.hpp \
229        CbcFixVariable.hpp \
230        CbcFollowOn.hpp \
231        CbcFullNodeInfo.hpp \
232        CbcGeneral.hpp \
233        CbcGeneralDepth.hpp \
234        CbcHeuristic.hpp \
235        CbcHeuristicDINS.hpp \
236        CbcHeuristicDive.hpp \
237        CbcHeuristicDiveCoefficient.hpp \
238        CbcHeuristicDiveFractional.hpp \
239        CbcHeuristicDiveGuided.hpp \
240        CbcHeuristicDiveLineSearch.hpp \
241        CbcHeuristicDivePseudoCost.hpp \
242        CbcHeuristicDiveVectorLength.hpp \
243        CbcHeuristicFPump.hpp \
244        CbcHeuristicGreedy.hpp \
245        CbcHeuristicLocal.hpp \
246        CbcHeuristicPivotAndFix.hpp \
247        CbcHeuristicRandRound.hpp \
248        CbcHeuristicRENS.hpp \
249        CbcHeuristicRINS.hpp \
250        CbcHeuristicVND.hpp \
251        CbcHeuristicDW.hpp \
252        CbcMessage.hpp \
253        CbcModel.hpp \
254        CbcNode.hpp \
255        CbcNodeInfo.hpp \
256        CbcNWay.hpp \
257        CbcObject.hpp \
258        CbcObjectUpdateData.hpp \
259        CbcParam.hpp \
260        CbcPartialNodeInfo.hpp \
261        CbcSimpleInteger.hpp \
262        CbcSimpleIntegerDynamicPseudoCost.hpp \
263        CbcSimpleIntegerPseudoCost.hpp \
264        CbcStrategy.hpp \
265        CbcSolver.hpp \
266        CbcMipStartIO.hpp \
267        CbcSOS.hpp \
268        CbcSubProblem.hpp \
269        CbcTree.hpp \
270        CbcLinked.hpp \
271        CbcTreeLocal.hpp \
272        ClpConstraintAmpl.hpp \
273        ClpAmplObjective.hpp
274
275########################################################################
276#                     Installing manifest (MSVC++)                     #
277########################################################################
278
279if COIN_CXX_IS_CL
280install-exec-hook:
281        test -s cbc.exe.manifest && \
282        mt -manifest cbc.exe.manifest -outputresource:cbc.exe;\
283        cp cbc.exe $(bindir)/cbc.exe
284endif
285
286#######################################################################
287# Create the Config.h file that has all public defines and install it #
288#######################################################################
289
290install-exec-local:
291        $(install_sh_DATA) config_cbc.h $(DESTDIR)$(includecoindir)/CbcConfig.h
292
293uninstall-local:
294        rm -f $(DESTDIR)$(includecoindir)/CbcConfig.h
Note: See TracBrowser for help on using the repository browser.