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

Last change on this file since 1055 was 1055, checked in by forrest, 11 years ago

adding dummy heuristic

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 11.4 KB
Line 
1# Copyright (C) 2006, 2007 International Business Machines and others.
2# All Rights Reserved.
3# This file is distributed under the Common Public License.
4
5## $Id: Makefile.am 1055 2008-09-05 14:31:05Z forrest $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
11########################################################################
12#                               libCbc                                 #
13########################################################################
14
15# Name of the library compiled in this directory.  We want it to be installed
16# in the 'lib' directory
17lib_LTLIBRARIES = libCbc.la libCbcSolver.la
18
19# List all source files for this library, including headers
20libCbc_la_SOURCES = \
21        Cbc_C_Interface.cpp Cbc_C_Interface.h \
22        CbcConfig.h \
23        CbcBranchActual.cpp CbcBranchActual.hpp \
24        CbcBranchBase.cpp CbcBranchBase.hpp \
25        CbcBranchCut.cpp CbcBranchCut.hpp \
26        CbcBranchDynamic.cpp CbcBranchDynamic.hpp \
27        CbcBranchLotsize.cpp CbcBranchLotsize.hpp \
28        CbcCompareActual.cpp CbcCompareActual.hpp \
29        CbcCompareBase.hpp \
30        CbcCountRowCut.cpp CbcCountRowCut.hpp \
31        CbcCutGenerator.cpp CbcCutGenerator.hpp \
32        CbcEventHandler.cpp CbcEventHandler.hpp \
33        CbcFathom.cpp CbcFathom.hpp \
34        CbcFathomDynamicProgramming.cpp CbcFathomDynamicProgramming.hpp \
35        CbcFeasibilityBase.hpp \
36        CbcHeuristic.cpp CbcHeuristic.hpp \
37        CbcHeuristicDive.cpp CbcHeuristicDive.hpp \
38        CbcHeuristicDiveCoefficient.cpp CbcHeuristicDiveCoefficient.hpp \
39        CbcHeuristicDiveFractional.cpp CbcHeuristicDiveFractional.hpp \
40        CbcHeuristicDiveGuided.cpp CbcHeuristicDiveGuided.hpp \
41        CbcHeuristicDiveLineSearch.cpp CbcHeuristicDiveLineSearch.hpp \
42        CbcHeuristicDivePseudoCost.cpp CbcHeuristicDivePseudoCost.hpp \
43        CbcHeuristicDiveVectorLength.cpp CbcHeuristicDiveLength.hpp \
44        CbcHeuristicFPump.cpp CbcHeuristicFPump.hpp \
45        CbcHeuristicGreedy.cpp CbcHeuristicGreedy.hpp \
46        CbcHeuristicLocal.cpp CbcHeuristicLocal.hpp \
47        CbcHeuristicPivotAndFix.cpp CbcHeuristicPivotAndFix.hpp \
48        CbcHeuristicRINS.cpp CbcHeuristicRINS.hpp \
49        CbcMessage.cpp CbcMessage.hpp \
50        CbcModel.cpp CbcModel.hpp \
51        CbcNode.cpp CbcNode.hpp \
52        CbcStatistics.cpp CbcStatistics.hpp \
53        CbcStrategy.cpp CbcStrategy.hpp \
54        CbcTree.cpp CbcTree.hpp \
55        CbcTreeLocal.cpp CbcTreeLocal.hpp
56
57libCbcSolver_la_SOURCES = \
58        CbcCbcParam.cpp \
59        Cbc_ampl.cpp Cbc_ampl.h \
60        ClpConstraintAmpl.hpp ClpAmplObjective.hpp ClpAmplStuff.cpp \
61        CbcLinked.cpp CbcLinked.hpp \
62        unitTestClp.cpp CbcSolver.cpp
63
64#Stefan: added unitTestClp.cpp because CbcSolver defines reference to it
65
66## If we have the Ampl solver library, we need to add additional things
67## also see lower down
68## new idea is to add in source code anyway
69##libCbc_la_SOURCES += Cbc_ampl.cpp Cbc_ampl.h
70
71
72# This is for libtool (on Windows)
73
74libCbc_la_LDFLAGS = $(LT_LDFLAGS)
75libCbcSolver_la_LDFLAGS = $(LT_LDFLAGS)
76
77# Some common setup for cbc and cbc-generic.
78
79bin_PROGRAMS =
80AM_CPPFLAGS =
81
82LIBS += `cat $(CGLOBJDIR)/cgl_addlibs.txt` \
83        `cat $(OSIOBJDIR)/osi_addlibs.txt` \
84        `cat $(COINUTILSOBJDIR)/coinutils_addlibs.txt` $(ADDLIBS)
85
86
87########################################################################
88#                            cbc program                               #
89########################################################################
90
91if COIN_HAS_CLP
92
93# Name of the executable compiled in this directory.  We want it to be
94# installed in the 'bin' directory
95bin_PROGRAMS += cbc
96
97# List all source files for this executable, including headers
98cbc_SOURCES = \
99        CoinSolve.cpp
100
101# Additional COIN libraries
102cbc_LDADD = libCbcSolver.la \
103        libCbc.la \
104        $(CGLOBJDIR)/src/libCgl.la \
105        $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
106        $(OSIOBJDIR)/src/libOsi.la \
107        $(CLPOBJDIR)/src/libClp.la \
108        $(COINUTILSOBJDIR)/src/libCoinUtils.la
109
110# Finally, the -rpath flag is used by libtool to make sure that the shared
111# library is found (in the lib install directory) when we are using dynamic
112# libraries.
113cbc_LDFLAGS = -rpath $(libdir)
114
115# Add locations of include files.
116
117AM_CPPFLAGS += -I`$(CYGPATH_W) $(CLPSRCDIR)/src` \
118        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiClp` \
119        -I`$(CYGPATH_W) $(CLPOBJDIR)/inc`
120LIBS  += `cat $(CLPOBJDIR)/clp_addlibs.txt`
121
122# If we have the Ampl solver library, we need to add additional things
123if COIN_HAS_ASL
124#cbc_SOURCES += Cbc_ampl.cpp Cbc_ampl.h
125cbc_LDADD += $(ASLLIB)
126AM_CPPFLAGS += $(ASL_CPPFLAGS) -DCOIN_HAS_ASL
127endif
128
129endif
130
131
132########################################################################
133#                        cbc-generic program                           #
134########################################################################
135
136if CBC_BUILD_CBC_GENERIC
137
138# Name of the executable compiled in this directory.  We want it to be
139# installed in the 'bin' directory
140
141bin_PROGRAMS += cbc-generic
142
143# List all source files for this executable, including headers
144
145cbc_generic_SOURCES = \
146        CbcGenBaB.cpp \
147        CbcGenCbcParam.cpp CbcGenCbcParam.hpp CbcGenCbcParamUtils.cpp \
148        CbcGenCtlBlk.cpp CbcGenCtlBlk.hpp \
149        CbcGeneric.cpp \
150        CbcGenMessages.cpp CbcGenMessages.hpp \
151        CbcGenOsiParam.cpp CbcGenOsiParam.hpp CbcGenOsiParamUtils.cpp \
152        CbcGenParam.cpp CbcGenParam.hpp CbcGenParamUtils.cpp \
153        CbcGenSolution.cpp \
154        CbcGenSolvers.cpp
155
156cbc_generic_LDADD = libCbcSolver.la \
157        libCbc.la \
158        $(CGLOBJDIR)/src/libCgl.la
159
160# List all additionally required solver and Osi libraries
161
162if COIN_HAS_CLP
163  AM_CPPFLAGS += -I`$(CYGPATH_W) $(CLPSRCDIR)/src` \
164        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiClp` \
165        -I`$(CYGPATH_W) $(CLPOBJDIR)/inc`
166  cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
167        $(CLPOBJDIR)/src/libClp.la
168  LIBS  += `cat $(CLPOBJDIR)/clp_addlibs.txt`
169endif
170
171if COIN_HAS_CPX
172  AM_CPPFLAGS += -I`$(CYGPATH_W) $(CPXINCDIR)` \
173        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCpx`
174  cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiCpx/libOsiCpx.la
175endif
176
177if COIN_HAS_DYLP
178  AM_CPPFLAGS += -I`$(CYGPATH_W) $(DYLPSRCDIR)/src/DylpStdLib` \
179        -I`$(CYGPATH_W) $(DYLPSRCDIR)/src/Dylp` \
180        -I`$(CYGPATH_W) $(DYLPOBJDIR)/inc` \
181        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiDylp`
182  cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiDylp/libOsiDylp.la \
183        $(DYLPOBJDIR)/src/Dylp/libDylp.la
184  LIBS += `cat $(DYLPOBJDIR)/dylp_addlibs.txt`
185endif
186
187if COIN_HAS_FMP
188  AM_CPPFLAGS += -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiFmp`
189  cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiFmp/libOsiFmp.la
190endif
191
192if COIN_HAS_GLPK
193  AM_CPPFLAGS += -I`$(CYGPATH_W) $(GLPKINCDIR)` \
194        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiGlpk`
195  cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiGlpk/libOsiGlpk.la
196endif
197
198if COIN_HAS_MSK
199  AM_CPPFLAGS += -I`$(CYGPATH_W) $(MSKINCDIR)` \
200        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiMsk`
201  cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiMsk/libOsiMsk.la
202endif
203
204if COIN_HAS_OSL
205  AM_CPPFLAGS += -I`$(CYGPATH_W) $(OSLINCDIR)` \
206        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiOsl`
207  cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiOsl/libOsiOsl.la
208endif
209
210if COIN_HAS_SPX
211  AM_CPPFLAGS += -I`$(CYGPATH_W) $(SPXINCDIR)` \
212        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiSpx`
213  cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiSpx/libOsiSpx.la
214endif
215
216if COIN_HAS_SYMPHONY
217  AM_CPPFLAGS += -I`$(CYGPATH_W) $(SYMPHONYSRCDIR)/src` \
218        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiSym`
219  cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiSym/libOsiSym.la \
220        $(SYMPHONYOBJDIR)/src/libSym.la
221  LIBS += `cat $(SYMPHONYOBJDIR)/sym_addlibs.txt`
222endif
223
224if COIN_HAS_VOL
225  AM_CPPFLAGS += -I`$(CYGPATH_W) $(VOLSRCDIR)/src` \
226        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiVol`
227  cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiVol/libOsiVol.la \
228        $(VOLOBJDIR)/src/libVol.la
229  LIBS += `cat $(VOLOBJDIR)/vol_addlibs.txt`
230endif
231
232if COIN_HAS_XPR
233  AM_CPPFLAGS += -I`$(CYGPATH_W) $(XPRINCDIR)` \
234        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiXpr`
235  cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiXpr/libOsiXpr.la
236endif
237
238if COIN_HAS_ASL
239  cbc_generic_LDADD += $(ASLLIB)
240  AM_CPPFLAGS += $(ASL_CPPFLAGS) -DCOIN_HAS_ASL
241endif
242
243# Finally the Osi Coin library (many of the above need it)
244cbc_generic_LDADD += $(OSIOBJDIR)/src/libOsi.la \
245        $(COINUTILSOBJDIR)/src/libCoinUtils.la
246
247# Finally, the -rpath flag is used by libtool to make sure that the shared
248# library is found (in the lib install directory) when we are using dynamic
249# libraries.
250
251cbc_generic_LDFLAGS = -rpath $(libdir)
252
253endif
254
255########################################################################
256#                            Additional flags                          #
257########################################################################
258
259# Here list all include flags, relative to this "srcdir" directory.  This
260# "cygpath" stuff is necessary to compile with native compilers on Windows.
261# "top_srcdir" refers to the basic directory for the main package that is
262# being compiled.
263AM_CPPFLAGS += \
264        -I`$(CYGPATH_W) $(CGLSRCDIR)/src` \
265        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglClique` \
266        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglDuplicateRow` \
267        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglFlowCover` \
268        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglGomory` \
269        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglKnapsackCover` \
270        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglMixedIntegerRounding` \
271        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglMixedIntegerRounding2` \
272        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglOddHole` \
273        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglPreProcess` \
274        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglProbing` \
275        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglRedSplit` \
276        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglTwomir` \
277        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglLandP` \
278        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglResidualCapacity` \
279        -I`$(CYGPATH_W) $(COINUTILSSRCDIR)/src` \
280        -I`$(CYGPATH_W) $(COINUTILSOBJDIR)/inc` \
281        -I`$(CYGPATH_W) $(OSISRCDIR)/src` \
282        -I`$(CYGPATH_W) $(OSIOBJDIR)/inc`
283
284# List additional defines
285AM_CPPFLAGS += -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG
286
287# This line is necessary to allow VPATH compilation with MS compilers
288# on Cygwin
289DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
290
291########################################################################
292#                Headers that need to be installed                     #
293########################################################################
294
295# Here list all the header files that are required by a user of the library,
296# and that therefore should be installed in 'install/coin'
297includecoindir = $(includedir)/coin
298includecoin_HEADERS = \
299        ../inc/config_cbc.h \
300        Cbc_C_Interface.h \
301        CbcBranchActual.hpp \
302        CbcBranchBase.hpp \
303        CbcBranchDynamic.hpp \
304        CbcBranchLotsize.hpp \
305        CbcBranchCut.hpp \
306        CbcCompareActual.hpp \
307        CbcCompareBase.hpp \
308        CbcCutGenerator.hpp \
309        CbcFathom.hpp \
310        CbcEventHandler.hpp \
311        CbcFeasibilityBase.hpp \
312        CbcHeuristic.hpp \
313        CbcHeuristicDive.hpp \
314        CbcHeuristicDiveCoefficient.hpp \
315        CbcHeuristicDiveFractional.hpp \
316        CbcHeuristicDiveGuided.hpp \
317        CbcHeuristicDiveLineSearch.hpp \
318        CbcHeuristicDivePseudoCost.hpp \
319        CbcHeuristicDiveVectorLength.hpp \
320        CbcHeuristicFPump.hpp \
321        CbcHeuristicGreedy.hpp \
322        CbcHeuristicLocal.hpp \
323        CbcHeuristicPivotAndFix.hpp \
324        CbcHeuristicRINS.hpp \
325        CbcMessage.hpp \
326        CbcModel.hpp \
327        CbcNode.hpp \
328        CbcStrategy.hpp \
329        CbcSolver.hpp \
330        CbcTree.hpp \
331        CbcLinked.hpp \
332        CbcTreeLocal.hpp \
333        ClpConstraintAmpl.hpp \
334        ClpAmplObjective.hpp
335
336#############################################################################
337# Create the Config.h file that always defines HAVE_CONFIG_H and install it #
338#############################################################################
339
340# You only need to adapt the following line
341ConfigHeader = CbcConfig.h
342
343install-exec-local:
344        echo "#ifndef HAVE_CONFIG_H" >bla
345        echo "#define HAVE_CONFIG_H" >>bla
346        echo "#endif" >> bla
347        cat $(srcdir)/$(ConfigHeader) >> bla
348        $(install_sh_DATA) bla $(DESTDIR)$(includecoindir)/$(ConfigHeader)
349        rm -f bla
350
351uninstall-local:
352        rm -f $(DESTDIR)$(includecoindir)/$(ConfigHeader)
Note: See TracBrowser for help on using the repository browser.