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

Last change on this file since 1396 was 1396, checked in by bjarni, 10 years ago

Update Makefile.am to add CbcSolverAnalyze?.cpp (and .hpp)

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