source: branches/sandbox/Cbc/src/Makefile.am @ 1347

Last change on this file since 1347 was 1347, checked in by EdwinStraver, 10 years ago

Combined CbcSimpleInteger? and CbcIntegerBranchingObject?
Combined CbcSimpleIntegerDynamicPseudoCost? and CbcIntegerPseudoCostBranchingObject?

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 14.2 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 1347 2009-12-03 22:11:02Z EdwinStraver $
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.hpp \
24        CbcBranchAllDifferent.cpp CbcBranchAllDifferent.hpp \
25        CbcBranchBase.hpp \
26        CbcBranchCut.cpp CbcBranchCut.hpp \
27        CbcBranchDecision.cpp CbcBranchDecision.hpp \
28        CbcBranchDefaultDecision.cpp CbcBranchDefaultDecision.hpp \
29        CbcBranchDynamic.cpp CbcBranchDynamic.hpp \
30        CbcBranchingObject.cpp CbcBranchingObject.hpp \
31        CbcBranchLotsize.cpp CbcBranchLotsize.hpp \
32        CbcBranchToFixLots.cpp CbcBranchToFixLots.hpp \
33        CbcCompareActual.hpp \
34        CbcCompareBase.hpp \
35        CbcCompareDefault.cpp CbcCompareDefault.hpp \
36        CbcCompareDepth.cpp CbcCompareDepth.hpp \
37        CbcCompareEstimate.cpp CbcCompareEstimate.hpp \
38        CbcCompareObjective.cpp CbcCompareObjective.hpp \
39        CbcConsequence.cpp CbcConsequence.hpp \
40        CbcChooseVariable.hpp \
41        CbcClique.cpp CbcClique.hpp \
42        CbcCompare.hpp \
43        CbcCountRowCut.cpp CbcCountRowCut.hpp \
44        CbcCutBranchingObject.cpp CbcCutBranchingObject.hpp \
45        CbcCutGenerator.cpp CbcCutGenerator.hpp \
46        CbcCutModifier.cpp CbcCutModifier.hpp \
47        CbcCutSubsetModifier.cpp CbcCutSubsetModifier.hpp \
48        CbcDummyBranchingObject.cpp CbcDummyBranchingObject.hpp \
49        CbcDynamicPseudoCostBranchingObject.cpp CbcDynamicPseudoCostBranchingObject.hpp \
50        CbcEventHandler.cpp CbcEventHandler.hpp \
51        CbcFathom.cpp CbcFathom.hpp \
52        CbcFathomDynamicProgramming.cpp CbcFathomDynamicProgramming.hpp \
53        CbcFeasibilityBase.hpp \
54        CbcFixingBranchingObject.cpp CbcFixingBranchingObject.hpp \
55        CbcFixVariable.cpp CbcFixVariable.hpp \
56        CbcFullNodeInfo.cpp CbcFullNodeInfo.hpp \
57        CbcFollowOn.cpp CbcFollowOn.hpp \
58        CbcGeneral.cpp CbcGeneral.hpp \
59        CbcGeneralDepth.cpp CbcGeneralDepth.hpp \
60        CbcHeuristic.cpp CbcHeuristic.hpp \
61        CbcHeuristicDive.cpp CbcHeuristicDive.hpp \
62        CbcHeuristicDiveCoefficient.cpp CbcHeuristicDiveCoefficient.hpp \
63        CbcHeuristicDiveFractional.cpp CbcHeuristicDiveFractional.hpp \
64        CbcHeuristicDiveGuided.cpp CbcHeuristicDiveGuided.hpp \
65        CbcHeuristicDiveLineSearch.cpp CbcHeuristicDiveLineSearch.hpp \
66        CbcHeuristicDivePseudoCost.cpp CbcHeuristicDivePseudoCost.hpp \
67        CbcHeuristicDiveVectorLength.cpp CbcHeuristicDiveLength.hpp \
68        CbcHeuristicFPump.cpp CbcHeuristicFPump.hpp \
69        CbcHeuristicGreedy.cpp CbcHeuristicGreedy.hpp \
70        CbcHeuristicLocal.cpp CbcHeuristicLocal.hpp \
71        CbcHeuristicPivotAndFix.cpp CbcHeuristicPivotAndFix.hpp \
72        CbcHeuristicRandRound.cpp CbcHeuristicRandRound.hpp \
73        CbcHeuristicRINS.cpp CbcHeuristicRINS.hpp \
74        CbcLotsize.cpp CbcLotsize.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        CbcNWayBranchingObject.cpp CbcNWayBranchingObject.hpp \
81        CbcObject.cpp CbcObject.hpp \
82        CbcObjectUpdateData.cpp CbcObjectUpdateData.hpp \
83        CbcPartialNodeInfo.cpp CbcPartialNodeInfo.hpp \
84        CbcSimpleInteger.cpp CbcSimpleInteger.hpp \
85        CbcSimpleIntegerDynamicPseudoCost.cpp CbcSimpleIntegerDynamicPseudoCost.hpp \
86        CbcSimpleIntegerPseudoCost.cpp CbcSimpleIntegerPseudoCost.hpp \
87        CbcSOS.cpp CbcSOS.hpp \
88        CbcSOSBranchingObject.cpp CbcSOSBranchingObject.hpp \
89        CbcStatistics.cpp CbcStatistics.hpp \
90        CbcStrategy.cpp CbcStrategy.hpp \
91        CbcSubProblem.cpp CbcSubProblem.hpp \
92        CbcTree.cpp CbcTree.hpp \
93        CbcTreeLocal.cpp CbcTreeLocal.hpp
94
95libCbcSolver_la_SOURCES = \
96        CbcCbcParam.cpp \
97        Cbc_ampl.cpp Cbc_ampl.h \
98        ClpConstraintAmpl.hpp ClpAmplObjective.hpp ClpAmplStuff.cpp \
99        CbcLinked.cpp CbcLinked.hpp \
100        unitTestClp.cpp CbcSolver.cpp
101
102#Stefan: added unitTestClp.cpp because CbcSolver defines reference to it
103
104## If we have the Ampl solver library, we need to add additional things
105## also see lower down
106## new idea is to add in source code anyway
107##libCbc_la_SOURCES += Cbc_ampl.cpp Cbc_ampl.h
108
109
110# This is for libtool (on Windows)
111
112libCbc_la_LDFLAGS = $(LT_LDFLAGS)
113libCbcSolver_la_LDFLAGS = $(LT_LDFLAGS)
114
115# Some common setup for cbc and cbc-generic.
116
117bin_PROGRAMS =
118AM_CPPFLAGS =
119
120LIBS += `cat $(CGLOBJDIR)/cgl_addlibs.txt` \
121        `cat $(OSIOBJDIR)/osi_addlibs.txt` \
122        `cat $(COINUTILSOBJDIR)/coinutils_addlibs.txt` $(ADDLIBS)
123
124
125########################################################################
126#                            cbc program                               #
127########################################################################
128
129if COIN_HAS_CLP
130
131# Name of the executable compiled in this directory.  We want it to be
132# installed in the 'bin' directory
133bin_PROGRAMS += cbc
134
135# List all source files for this executable, including headers
136cbc_SOURCES = \
137        CoinSolve.cpp
138
139# Additional COIN libraries
140cbc_LDADD = libCbcSolver.la \
141        libCbc.la \
142        $(CGLOBJDIR)/src/libCgl.la \
143        $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
144        $(OSIOBJDIR)/src/libOsi.la \
145        $(CLPOBJDIR)/src/libClp.la \
146        $(COINUTILSOBJDIR)/src/libCoinUtils.la
147
148# Finally, the -rpath flag is used by libtool to make sure that the shared
149# library is found (in the lib install directory) when we are using dynamic
150# libraries.
151cbc_LDFLAGS = -rpath $(libdir)
152
153# Add locations of include files.
154
155AM_CPPFLAGS += -I`$(CYGPATH_W) $(CLPSRCDIR)/src` \
156        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiClp` \
157        -I`$(CYGPATH_W) $(CLPOBJDIR)/inc`
158LIBS  += `cat $(CLPOBJDIR)/clp_addlibs.txt`
159
160if COIN_HAS_CPX
161  AM_CPPFLAGS += -I`$(CYGPATH_W) $(CPXINCDIR)` \
162        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCpx`
163  cbc_LDADD += $(OSIOBJDIR)/src/OsiCpx/libOsiCpx.la
164endif
165
166# If we have the Ampl solver library, we need to add additional things
167if COIN_HAS_ASL
168#cbc_SOURCES += Cbc_ampl.cpp Cbc_ampl.h
169cbc_LDADD += $(ASLLIB)
170AM_CPPFLAGS += $(ASL_CPPFLAGS) -DCOIN_HAS_ASL
171endif
172
173endif
174
175
176########################################################################
177#                        cbc-generic program                           #
178########################################################################
179
180if CBC_BUILD_CBC_GENERIC
181
182# Name of the executable compiled in this directory.  We want it to be
183# installed in the 'bin' directory
184
185bin_PROGRAMS += cbc-generic
186
187# List all source files for this executable, including headers
188
189cbc_generic_SOURCES = \
190        CbcGenBaB.cpp \
191        CbcGenCbcParam.cpp CbcGenCbcParam.hpp CbcGenCbcParamUtils.cpp \
192        CbcGenCtlBlk.cpp CbcGenCtlBlk.hpp \
193        CbcGeneric.cpp \
194        CbcGenMessages.cpp CbcGenMessages.hpp \
195        CbcGenOsiParam.cpp CbcGenOsiParam.hpp CbcGenOsiParamUtils.cpp \
196        CbcGenParam.cpp CbcGenParam.hpp CbcGenParamUtils.cpp \
197        CbcGenSolution.cpp \
198        CbcGenSolvers.cpp
199
200cbc_generic_LDADD = libCbcSolver.la \
201        libCbc.la \
202        $(CGLOBJDIR)/src/libCgl.la
203
204# List all additionally required solver and Osi libraries
205
206if COIN_HAS_CLP
207  AM_CPPFLAGS += -I`$(CYGPATH_W) $(CLPSRCDIR)/src` \
208        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiClp` \
209        -I`$(CYGPATH_W) $(CLPOBJDIR)/inc`
210  cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
211        $(CLPOBJDIR)/src/libClp.la
212  LIBS  += `cat $(CLPOBJDIR)/clp_addlibs.txt`
213endif
214
215if COIN_HAS_CPX
216  AM_CPPFLAGS += -I`$(CYGPATH_W) $(CPXINCDIR)` \
217        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCpx`
218  cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiCpx/libOsiCpx.la
219endif
220
221if COIN_HAS_DYLP
222  AM_CPPFLAGS += -I`$(CYGPATH_W) $(DYLPSRCDIR)/src/DylpStdLib` \
223        -I`$(CYGPATH_W) $(DYLPSRCDIR)/src/Dylp` \
224        -I`$(CYGPATH_W) $(DYLPOBJDIR)/inc` \
225        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiDylp`
226  cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiDylp/libOsiDylp.la \
227        $(DYLPOBJDIR)/src/Dylp/libDylp.la
228  LIBS += `cat $(DYLPOBJDIR)/dylp_addlibs.txt`
229endif
230
231if COIN_HAS_FMP
232  AM_CPPFLAGS += -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiFmp`
233  cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiFmp/libOsiFmp.la
234endif
235
236if COIN_HAS_GLPK
237  AM_CPPFLAGS += -I`$(CYGPATH_W) $(GLPKINCDIR)` \
238        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiGlpk`
239  cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiGlpk/libOsiGlpk.la
240endif
241
242if COIN_HAS_MSK
243  AM_CPPFLAGS += -I`$(CYGPATH_W) $(MSKINCDIR)` \
244        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiMsk`
245  cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiMsk/libOsiMsk.la
246endif
247
248if COIN_HAS_OSL
249  AM_CPPFLAGS += -I`$(CYGPATH_W) $(OSLINCDIR)` \
250        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiOsl`
251  cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiOsl/libOsiOsl.la
252endif
253
254if COIN_HAS_SPX
255  AM_CPPFLAGS += -I`$(CYGPATH_W) $(SPXINCDIR)` \
256        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiSpx`
257  cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiSpx/libOsiSpx.la
258endif
259
260if COIN_HAS_SYMPHONY
261  AM_CPPFLAGS += -I`$(CYGPATH_W) $(SYMPHONYSRCDIR)/src` \
262        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiSym`
263  cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiSym/libOsiSym.la \
264        $(SYMPHONYOBJDIR)/src/libSym.la
265  LIBS += `cat $(SYMPHONYOBJDIR)/sym_addlibs.txt`
266endif
267
268if COIN_HAS_VOL
269  AM_CPPFLAGS += -I`$(CYGPATH_W) $(VOLSRCDIR)/src` \
270        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiVol`
271  cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiVol/libOsiVol.la \
272        $(VOLOBJDIR)/src/libVol.la
273  LIBS += `cat $(VOLOBJDIR)/vol_addlibs.txt`
274endif
275
276if COIN_HAS_XPR
277  AM_CPPFLAGS += -I`$(CYGPATH_W) $(XPRINCDIR)` \
278        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiXpr`
279  cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiXpr/libOsiXpr.la
280endif
281
282if COIN_HAS_ASL
283  cbc_generic_LDADD += $(ASLLIB)
284  AM_CPPFLAGS += $(ASL_CPPFLAGS) -DCOIN_HAS_ASL
285endif
286
287# Finally the Osi Coin library (many of the above need it)
288cbc_generic_LDADD += $(OSIOBJDIR)/src/libOsi.la \
289        $(COINUTILSOBJDIR)/src/libCoinUtils.la
290
291# Finally, the -rpath flag is used by libtool to make sure that the shared
292# library is found (in the lib install directory) when we are using dynamic
293# libraries.
294
295cbc_generic_LDFLAGS = -rpath $(libdir)
296
297endif
298
299########################################################################
300#                            Additional flags                          #
301########################################################################
302
303# Here list all include flags, relative to this "srcdir" directory.  This
304# "cygpath" stuff is necessary to compile with native compilers on Windows.
305# "top_srcdir" refers to the basic directory for the main package that is
306# being compiled.
307AM_CPPFLAGS += \
308        -I`$(CYGPATH_W) $(CGLSRCDIR)/src` \
309        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglClique` \
310        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglDuplicateRow` \
311        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglFlowCover` \
312        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglGomory` \
313        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglKnapsackCover` \
314        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglMixedIntegerRounding` \
315        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglMixedIntegerRounding2` \
316        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglOddHole` \
317        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglPreProcess` \
318        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglProbing` \
319        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglRedSplit` \
320        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglTwomir` \
321        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglLandP` \
322        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglResidualCapacity` \
323        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglZeroHalf` \
324        -I`$(CYGPATH_W) $(COINUTILSSRCDIR)/src` \
325        -I`$(CYGPATH_W) $(COINUTILSOBJDIR)/inc` \
326        -I`$(CYGPATH_W) $(OSISRCDIR)/src` \
327        -I`$(CYGPATH_W) $(OSIOBJDIR)/inc`
328
329# List additional defines
330AM_CPPFLAGS += -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG
331
332# This line is necessary to allow VPATH compilation with MS compilers
333# on Cygwin
334DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
335
336########################################################################
337#                Headers that need to be installed                     #
338########################################################################
339
340# Here list all the header files that are required by a user of the library,
341# and that therefore should be installed in 'install/coin'
342includecoindir = $(includedir)/coin
343includecoin_HEADERS = \
344        ../inc/config_cbc.h \
345        Cbc_C_Interface.h \
346        CbcBranchActual.hpp \
347        CbcBranchAllDifferent.hpp \
348        CbcBranchBase.hpp \
349        CbcBranchDynamic.hpp \
350        CbcBranchLotsize.hpp \
351        CbcBranchCut.hpp \
352        CbcBranchDecision.hpp \
353        CbcBranchDefaultDecision.hpp \
354        CbcBranchingObject.hpp \
355        CbcBranchToFixLots.hpp \
356        CbcCompareActual.hpp \
357        CbcCompareDefault.hpp \
358        CbcCompareDepth.hpp \
359        CbcCompareEstimate.hpp \
360        CbcCompareObjective.hpp \
361        CbcConsequence.hpp \
362        CbcChooseVariable.hpp \
363        CbcClique.hpp \
364        CbcCompare.hpp \
365        CbcCutBranchingObject.hpp \
366        CbcCutGenerator.hpp \
367        CbcCutModifier.hpp \
368        CbcCutSubsetModifier.hpp \
369        CbcDummyBranchingObject.hpp \
370        CbcDynamicPseudoCostBranchingObject.hpp \
371        CbcFathom.hpp \
372        CbcEventHandler.hpp \
373        CbcFeasibilityBase.hpp \
374        CbcFixingBranchingObject.hpp \
375        CbcFixVariable.hpp \
376        CbcFollowOn.hpp \
377        CbcFullNodeInfo.hpp \
378        CbcGeneral.hpp \
379        CbcGeneralDepth.hpp \
380        CbcHeuristic.hpp \
381        CbcHeuristicDive.hpp \
382        CbcHeuristicDiveCoefficient.hpp \
383        CbcHeuristicDiveFractional.hpp \
384        CbcHeuristicDiveGuided.hpp \
385        CbcHeuristicDiveLineSearch.hpp \
386        CbcHeuristicDivePseudoCost.hpp \
387        CbcHeuristicDiveVectorLength.hpp \
388        CbcHeuristicFPump.hpp \
389        CbcHeuristicGreedy.hpp \
390        CbcHeuristicLocal.hpp \
391        CbcHeuristicPivotAndFix.hpp \
392        CbcHeuristicRandRound.hpp \
393        CbcHeuristicRINS.hpp \
394        CbcLotsize.hpp \
395        CbcMessage.hpp \
396        CbcModel.hpp \
397        CbcNode.hpp \
398        CbcNodeInfo.hpp \
399        CbcNWay.hpp \
400        CbcNWayBranchingObject.hpp \
401        CbcObject.hpp \
402        CbcObjectUpdateData.hpp \
403        CbcPartialNodeInfo.hpp \
404        CbcSimpleInteger.hpp \
405        CbcSimpleIntegerDynamicPseudoCost.hpp \
406        CbcSimpleIntegerPseudoCost.hpp \
407        CbcStrategy.hpp \
408        CbcSolver.hpp \
409        CbcSOS.hpp \
410        CbcSOSBranchingObject.hpp \
411        CbcSubProblem.hpp \
412        CbcTree.hpp \
413        CbcLinked.hpp \
414        CbcTreeLocal.hpp \
415        ClpConstraintAmpl.hpp \
416        ClpAmplObjective.hpp
417
418#############################################################################
419# Create the Config.h file that always defines HAVE_CONFIG_H and install it #
420#############################################################################
421
422# You only need to adapt the following line
423ConfigHeader = CbcConfig.h
424
425install-exec-local:
426        echo "#ifndef HAVE_CONFIG_H" >bla
427        echo "#define HAVE_CONFIG_H" >>bla
428        echo "#endif" >> bla
429        cat $(srcdir)/$(ConfigHeader) >> bla
430        $(install_sh_DATA) bla $(DESTDIR)$(includecoindir)/$(ConfigHeader)
431        rm -f bla
432
433uninstall-local:
434        rm -f $(DESTDIR)$(includecoindir)/$(ConfigHeader)
Note: See TracBrowser for help on using the repository browser.