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

Last change on this file since 1733 was 1713, checked in by tkr, 8 years ago

Small fixes to build files

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