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

Last change on this file since 2395 was 2395, checked in by stefan, 12 months ago

add get.dependencies.sh and compile; remove check for DEPENDENCY_LINKING; rerun autotools

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