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

Last change on this file since 1531 was 1531, checked in by tkr, 10 years ago

Merging r1530 from stable/2.6

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 9.8 KB
RevLine 
[765]1# Copyright (C) 2006, 2007 International Business Machines and others.
[311]2# All Rights Reserved.
3# This file is distributed under the Common Public License.
4
5## $Id: Makefile.am 1531 2010-11-13 19:04:20Z tkr $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
[1464]11SUBDIRS = OsiCbc
12
[311]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
[1464]19coinlibdir = ${libdir}/coin
20coinlib_LTLIBRARIES = libCbc.la libCbcSolver.la
[311]21
22# List all source files for this library, including headers
23libCbc_la_SOURCES = \
[454]24        Cbc_C_Interface.cpp Cbc_C_Interface.h \
[331]25        CbcConfig.h \
[1295]26        CbcBranchActual.hpp \
[1306]27        CbcBranchAllDifferent.cpp CbcBranchAllDifferent.hpp \
[1301]28        CbcBranchBase.hpp \
[311]29        CbcBranchCut.cpp CbcBranchCut.hpp \
[1301]30        CbcBranchDecision.cpp CbcBranchDecision.hpp \
[1293]31        CbcBranchDefaultDecision.cpp CbcBranchDefaultDecision.hpp \
[311]32        CbcBranchDynamic.cpp CbcBranchDynamic.hpp \
[1301]33        CbcBranchingObject.cpp CbcBranchingObject.hpp \
[311]34        CbcBranchLotsize.cpp CbcBranchLotsize.hpp \
[1306]35        CbcBranchToFixLots.cpp CbcBranchToFixLots.hpp \
[1314]36        CbcCompareActual.hpp \
[311]37        CbcCompareBase.hpp \
[1314]38        CbcCompareDefault.cpp CbcCompareDefault.hpp \
39        CbcCompareDepth.cpp CbcCompareDepth.hpp \
40        CbcCompareEstimate.cpp CbcCompareEstimate.hpp \
41        CbcCompareObjective.cpp CbcCompareObjective.hpp \
[1301]42        CbcConsequence.cpp CbcConsequence.hpp \
[1292]43        CbcChooseVariable.hpp \
[1298]44        CbcClique.cpp CbcClique.hpp \
[1292]45        CbcCompare.hpp \
[311]46        CbcCountRowCut.cpp CbcCountRowCut.hpp \
47        CbcCutGenerator.cpp CbcCutGenerator.hpp \
[1314]48        CbcCutModifier.cpp CbcCutModifier.hpp \
49        CbcCutSubsetModifier.cpp CbcCutSubsetModifier.hpp \
[1293]50        CbcDummyBranchingObject.cpp CbcDummyBranchingObject.hpp \
[311]51        CbcEventHandler.cpp CbcEventHandler.hpp \
52        CbcFathom.cpp CbcFathom.hpp \
53        CbcFathomDynamicProgramming.cpp CbcFathomDynamicProgramming.hpp \
54        CbcFeasibilityBase.hpp \
[1293]55        CbcFixVariable.cpp CbcFixVariable.hpp \
[1313]56        CbcFullNodeInfo.cpp CbcFullNodeInfo.hpp \
[1293]57        CbcFollowOn.cpp CbcFollowOn.hpp \
58        CbcGeneral.cpp CbcGeneral.hpp \
59        CbcGeneralDepth.cpp CbcGeneralDepth.hpp \
[311]60        CbcHeuristic.cpp CbcHeuristic.hpp \
[1368]61        CbcHeuristicDINS.cpp CbcHeuristicDINS.hpp \
[912]62        CbcHeuristicDive.cpp CbcHeuristicDive.hpp \
[871]63        CbcHeuristicDiveCoefficient.cpp CbcHeuristicDiveCoefficient.hpp \
64        CbcHeuristicDiveFractional.cpp CbcHeuristicDiveFractional.hpp \
65        CbcHeuristicDiveGuided.cpp CbcHeuristicDiveGuided.hpp \
[945]66        CbcHeuristicDiveLineSearch.cpp CbcHeuristicDiveLineSearch.hpp \
67        CbcHeuristicDivePseudoCost.cpp CbcHeuristicDivePseudoCost.hpp \
[871]68        CbcHeuristicDiveVectorLength.cpp CbcHeuristicDiveLength.hpp \
[311]69        CbcHeuristicFPump.cpp CbcHeuristicFPump.hpp \
70        CbcHeuristicGreedy.cpp CbcHeuristicGreedy.hpp \
71        CbcHeuristicLocal.cpp CbcHeuristicLocal.hpp \
[1055]72        CbcHeuristicPivotAndFix.cpp CbcHeuristicPivotAndFix.hpp \
[1057]73        CbcHeuristicRandRound.cpp CbcHeuristicRandRound.hpp \
[1368]74        CbcHeuristicRENS.cpp CbcHeuristicRENS.hpp \
[640]75        CbcHeuristicRINS.cpp CbcHeuristicRINS.hpp \
[1368]76        CbcHeuristicVND.cpp CbcHeuristicVND.hpp \
[311]77        CbcMessage.cpp CbcMessage.hpp \
78        CbcModel.cpp CbcModel.hpp \
79        CbcNode.cpp CbcNode.hpp \
[1313]80        CbcNodeInfo.cpp CbcNodeInfo.hpp \
[1293]81        CbcNWay.cpp CbcNWay.hpp \
[1301]82        CbcObject.cpp CbcObject.hpp \
83        CbcObjectUpdateData.cpp CbcObjectUpdateData.hpp \
[1313]84        CbcPartialNodeInfo.cpp CbcPartialNodeInfo.hpp \
[1293]85        CbcSimpleInteger.cpp CbcSimpleInteger.hpp \
[1387]86        CbcSimpleIntegerDynamicPseudoCost.cpp \
87        CbcSimpleIntegerDynamicPseudoCost.hpp \
88        CbcSimpleIntegerPseudoCost.cpp \
89        CbcSimpleIntegerPseudoCost.hpp \
[1293]90        CbcSOS.cpp CbcSOS.hpp \
[311]91        CbcStatistics.cpp CbcStatistics.hpp \
92        CbcStrategy.cpp CbcStrategy.hpp \
[1293]93        CbcSubProblem.cpp CbcSubProblem.hpp \
[1404]94        CbcThread.cpp CbcThread.hpp \
[311]95        CbcTree.cpp CbcTree.hpp \
[765]96        CbcTreeLocal.cpp CbcTreeLocal.hpp
97
98libCbcSolver_la_SOURCES = \
99        CbcCbcParam.cpp \
100        Cbc_ampl.cpp Cbc_ampl.h \
[1387]101        CbcLinked.cpp CbcLinked.hpp CbcLinkedUtils.cpp \
[1385]102        unitTestClp.cpp CbcSolver.cpp \
[1396]103        CbcSolverHeuristics.cpp CbcSolverHeuristics.hpp \
[1399]104        CbcSolverAnalyze.cpp CbcSolverAnalyze.hpp \
105        CbcSolverExpandKnapsack.cpp CbcSolverExpandKnapsack.hpp
[311]106
107# This is for libtool (on Windows)
[640]108
[328]109libCbc_la_LDFLAGS = $(LT_LDFLAGS)
[765]110libCbcSolver_la_LDFLAGS = $(LT_LDFLAGS)
[311]111
[640]112# Some common setup for cbc and cbc-generic.
[1501]113#   ($(CPX_LIBS) should resolve in an empty string if there is no cplex)
[640]114
115bin_PROGRAMS =
[1531]116AM_CPPFLAGS = $(COINDEPEND_CFLAGS) $(CLP_CFLAGS) $(CPX_CFLAGS)
[640]117
[312]118########################################################################
[640]119#                            cbc program                               #
120########################################################################
121
122if COIN_HAS_CLP
123
124# Name of the executable compiled in this directory.  We want it to be
125# installed in the 'bin' directory
126bin_PROGRAMS += cbc
127
128# List all source files for this executable, including headers
[1464]129cbc_SOURCES = CoinSolve.cpp
[640]130
131# Additional COIN libraries
[1501]132cbc_LDADD = libCbcSolver.la libCbc.la $(CBCLIB_LIBS)
[640]133
134# Finally, the -rpath flag is used by libtool to make sure that the shared
135# library is found (in the lib install directory) when we are using dynamic
136# libraries.
137cbc_LDFLAGS = -rpath $(libdir)
138
139# Add locations of include files.
140
141if COIN_HAS_ASL
[1464]142  AM_CPPFLAGS += $(ASL_CFLAGS)
143  cbc_LDADD += $(ASL_LIBS)
[640]144endif
145
146endif
147
148
149########################################################################
[372]150#                        cbc-generic program                           #
[312]151########################################################################
152
[640]153if CBC_BUILD_CBC_GENERIC
154
[312]155# Name of the executable compiled in this directory.  We want it to be
156# installed in the 'bin' directory
157
[640]158bin_PROGRAMS += cbc-generic
159
[312]160# List all source files for this executable, including headers
[640]161
[372]162cbc_generic_SOURCES = \
[640]163        CbcGenBaB.cpp \
164        CbcGenCbcParam.cpp CbcGenCbcParam.hpp CbcGenCbcParamUtils.cpp \
165        CbcGenCtlBlk.cpp CbcGenCtlBlk.hpp \
166        CbcGeneric.cpp \
167        CbcGenMessages.cpp CbcGenMessages.hpp \
168        CbcGenOsiParam.cpp CbcGenOsiParam.hpp CbcGenOsiParamUtils.cpp \
169        CbcGenParam.cpp CbcGenParam.hpp CbcGenParamUtils.cpp \
170        CbcGenSolution.cpp \
171        CbcGenSolvers.cpp
[312]172
[1501]173cbc_generic_LDADD = libCbcSolver.la libCbc.la $(CBCGENERIC_LIBS)
[312]174
175# List all additionally required solver and Osi libraries
[1501]176# the linker flags for all available LP solvers should already be included in $CBCGENERIC_LIBS,
177# so just add compiler flags here (all we can think of)
[640]178
[1501]179AM_CPPFLAGS += $(CLP_CFLAGS) $(CPX_CFLAGS) $(DYLP_CFLAGS) $(GLPK_CFLAGS) $(MSK_CFLAGS) $(SPX_CFLAGS) $(VOL_CFLAGS) $(XPR_CFLAGS)
[312]180
[765]181if COIN_HAS_ASL
[1464]182  AM_CPPFLAGS += $(ASL_CFLAGS)
183  cbc_generic_LDADD += $(ASL_LIBS)
[765]184endif
185
[312]186# Finally, the -rpath flag is used by libtool to make sure that the shared
187# library is found (in the lib install directory) when we are using dynamic
188# libraries.
[640]189
[372]190cbc_generic_LDFLAGS = -rpath $(libdir)
[312]191
[369]192endif
193
[312]194########################################################################
195#                            Additional flags                          #
196########################################################################
197
198# List additional defines
[345]199AM_CPPFLAGS += -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG
[311]200
[324]201# This line is necessary to allow VPATH compilation with MS compilers
202# on Cygwin
203DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
204
[311]205########################################################################
206#                Headers that need to be installed                     #
207########################################################################
208
209# Here list all the header files that are required by a user of the library,
[846]210# and that therefore should be installed in 'install/coin'
211includecoindir = $(includedir)/coin
212includecoin_HEADERS = \
[333]213        ../inc/config_cbc.h \
[454]214        Cbc_C_Interface.h \
[311]215        CbcBranchActual.hpp \
[1306]216        CbcBranchAllDifferent.hpp \
[311]217        CbcBranchBase.hpp \
[387]218        CbcBranchDynamic.hpp \
[333]219        CbcBranchCut.hpp \
[1301]220        CbcBranchDecision.hpp \
[1293]221        CbcBranchDefaultDecision.hpp \
[1301]222        CbcBranchingObject.hpp \
[1351]223        CbcBranchLotsize.hpp \
[1306]224        CbcBranchToFixLots.hpp \
[311]225        CbcCompareActual.hpp \
[1455]226        CbcCompareBase.hpp \
[1314]227        CbcCompareDefault.hpp \
228        CbcCompareDepth.hpp \
229        CbcCompareEstimate.hpp \
230        CbcCompareObjective.hpp \
[1301]231        CbcConsequence.hpp \
[1292]232        CbcChooseVariable.hpp \
[1293]233        CbcClique.hpp \
[1292]234        CbcCompare.hpp \
[311]235        CbcCutGenerator.hpp \
[1314]236        CbcCutModifier.hpp \
237        CbcCutSubsetModifier.hpp \
[1293]238        CbcDummyBranchingObject.hpp \
[687]239        CbcFathom.hpp \
[311]240        CbcEventHandler.hpp \
[640]241        CbcFeasibilityBase.hpp \
[1293]242        CbcFixVariable.hpp \
243        CbcFollowOn.hpp \
[1313]244        CbcFullNodeInfo.hpp \
[1293]245        CbcGeneral.hpp \
246        CbcGeneralDepth.hpp \
[311]247        CbcHeuristic.hpp \
[1368]248        CbcHeuristicDINS.hpp \
[912]249        CbcHeuristicDive.hpp \
[871]250        CbcHeuristicDiveCoefficient.hpp \
251        CbcHeuristicDiveFractional.hpp \
252        CbcHeuristicDiveGuided.hpp \
[945]253        CbcHeuristicDiveLineSearch.hpp \
254        CbcHeuristicDivePseudoCost.hpp \
[871]255        CbcHeuristicDiveVectorLength.hpp \
[311]256        CbcHeuristicFPump.hpp \
257        CbcHeuristicGreedy.hpp \
258        CbcHeuristicLocal.hpp \
[1055]259        CbcHeuristicPivotAndFix.hpp \
[1057]260        CbcHeuristicRandRound.hpp \
[1368]261        CbcHeuristicRENS.hpp \
[640]262        CbcHeuristicRINS.hpp \
[1368]263        CbcHeuristicVND.hpp \
[311]264        CbcMessage.hpp \
265        CbcModel.hpp \
266        CbcNode.hpp \
[1313]267        CbcNodeInfo.hpp \
[1293]268        CbcNWay.hpp \
[1301]269        CbcObject.hpp \
270        CbcObjectUpdateData.hpp \
[1313]271        CbcPartialNodeInfo.hpp \
[1293]272        CbcSimpleInteger.hpp \
[1308]273        CbcSimpleIntegerDynamicPseudoCost.hpp \
[1293]274        CbcSimpleIntegerPseudoCost.hpp \
[311]275        CbcStrategy.hpp \
[783]276        CbcSolver.hpp \
[1293]277        CbcSOS.hpp \
278        CbcSubProblem.hpp \
[311]279        CbcTree.hpp \
[640]280        CbcLinked.hpp \
[687]281        CbcTreeLocal.hpp \
282        ClpConstraintAmpl.hpp \
283        ClpAmplObjective.hpp
[311]284
[325]285#############################################################################
286# Create the Config.h file that always defines HAVE_CONFIG_H and install it #
287#############################################################################
[311]288
[325]289# You only need to adapt the following line
290ConfigHeader = CbcConfig.h
[311]291
[325]292install-exec-local:
293        echo "#ifndef HAVE_CONFIG_H" >bla
294        echo "#define HAVE_CONFIG_H" >>bla
295        echo "#endif" >> bla
296        cat $(srcdir)/$(ConfigHeader) >> bla
[846]297        $(install_sh_DATA) bla $(DESTDIR)$(includecoindir)/$(ConfigHeader)
[325]298        rm -f bla
[311]299
[325]300uninstall-local:
[846]301        rm -f $(DESTDIR)$(includecoindir)/$(ConfigHeader)
Note: See TracBrowser for help on using the repository browser.