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

Last change on this file since 1568 was 1568, checked in by stefan, 9 years ago

change library installation directory back to

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 9.6 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 1568 2011-01-02 15:05:27Z 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        CbcChooseVariable.hpp \
43        CbcClique.cpp CbcClique.hpp \
44        CbcCompare.hpp \
45        CbcCountRowCut.cpp CbcCountRowCut.hpp \
46        CbcCutGenerator.cpp CbcCutGenerator.hpp \
47        CbcCutModifier.cpp CbcCutModifier.hpp \
48        CbcCutSubsetModifier.cpp CbcCutSubsetModifier.hpp \
49        CbcDummyBranchingObject.cpp CbcDummyBranchingObject.hpp \
50        CbcEventHandler.cpp CbcEventHandler.hpp \
51        CbcFathom.cpp CbcFathom.hpp \
52        CbcFathomDynamicProgramming.cpp CbcFathomDynamicProgramming.hpp \
53        CbcFeasibilityBase.hpp \
54        CbcFixVariable.cpp CbcFixVariable.hpp \
55        CbcFullNodeInfo.cpp CbcFullNodeInfo.hpp \
56        CbcFollowOn.cpp CbcFollowOn.hpp \
57        CbcGeneral.cpp CbcGeneral.hpp \
58        CbcGeneralDepth.cpp CbcGeneralDepth.hpp \
59        CbcHeuristic.cpp CbcHeuristic.hpp \
60        CbcHeuristicDINS.cpp CbcHeuristicDINS.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        CbcHeuristicRENS.cpp CbcHeuristicRENS.hpp \
74        CbcHeuristicRINS.cpp CbcHeuristicRINS.hpp \
75        CbcHeuristicVND.cpp CbcHeuristicVND.hpp \
76        CbcMessage.cpp CbcMessage.hpp \
77        CbcModel.cpp CbcModel.hpp \
78        CbcNode.cpp CbcNode.hpp \
79        CbcNodeInfo.cpp CbcNodeInfo.hpp \
80        CbcNWay.cpp CbcNWay.hpp \
81        CbcObject.cpp CbcObject.hpp \
82        CbcObjectUpdateData.cpp CbcObjectUpdateData.hpp \
83        CbcPartialNodeInfo.cpp CbcPartialNodeInfo.hpp \
84        CbcSimpleInteger.cpp CbcSimpleInteger.hpp \
85        CbcSimpleIntegerDynamicPseudoCost.cpp \
86        CbcSimpleIntegerDynamicPseudoCost.hpp \
87        CbcSimpleIntegerPseudoCost.cpp \
88        CbcSimpleIntegerPseudoCost.hpp \
89        CbcSOS.cpp CbcSOS.hpp \
90        CbcStatistics.cpp CbcStatistics.hpp \
91        CbcStrategy.cpp CbcStrategy.hpp \
92        CbcSubProblem.cpp CbcSubProblem.hpp \
93        CbcThread.cpp CbcThread.hpp \
94        CbcTree.cpp CbcTree.hpp \
95        CbcTreeLocal.cpp CbcTreeLocal.hpp
96
97libCbcSolver_la_SOURCES = \
98        CbcCbcParam.cpp \
99        Cbc_ampl.cpp Cbc_ampl.h \
100        CbcLinked.cpp CbcLinked.hpp CbcLinkedUtils.cpp \
101        unitTestClp.cpp CbcSolver.cpp \
102        CbcSolverHeuristics.cpp CbcSolverHeuristics.hpp \
103        CbcSolverAnalyze.cpp CbcSolverAnalyze.hpp \
104        CbcSolverExpandKnapsack.cpp CbcSolverExpandKnapsack.hpp
105
106# This is for libtool
107
108libCbc_la_LDFLAGS = $(LT_LDFLAGS)
109libCbcSolver_la_LDFLAGS = $(LT_LDFLAGS)
110
111# Some common setup for cbc and cbc-generic.
112
113bin_PROGRAMS =
114AM_CPPFLAGS = $(COINDEPEND_CFLAGS) $(CLP_CFLAGS) $(CPX_CFLAGS) $(ASL_CFLAGS)
115
116########################################################################
117#                            cbc program                               #
118########################################################################
119
120if COIN_HAS_CLP
121
122# Name of the executable compiled in this directory.  We want it to be
123# installed in the 'bin' directory
124bin_PROGRAMS += cbc
125
126# List all source files for this executable, including headers
127cbc_SOURCES = CoinSolve.cpp
128
129# Additional libraries
130cbc_LDADD = libCbcSolver.la libCbc.la $(CBCLIB_LIBS) $(ASL_LIBS)
131cbc_DEPENDENCIES = libCbcSolver.la libCbc.la $(CBCLIB_DEPENDENCIES) $(ASL_DEPENDENCIES)
132
133# Finally, the -rpath flag is used by libtool to make sure that the shared
134# library is found (in the lib install directory) when we are using dynamic
135# libraries.
136cbc_LDFLAGS = -rpath $(libdir)
137
138endif
139
140
141########################################################################
142#                        cbc-generic program                           #
143########################################################################
144
145if CBC_BUILD_CBC_GENERIC
146
147# Name of the executable compiled in this directory.  We want it to be
148# installed in the 'bin' directory
149
150bin_PROGRAMS += cbc-generic
151
152# List all source files for this executable, including headers
153
154cbc_generic_SOURCES = \
155        CbcGenBaB.cpp \
156        CbcGenCbcParam.cpp CbcGenCbcParam.hpp CbcGenCbcParamUtils.cpp \
157        CbcGenCtlBlk.cpp CbcGenCtlBlk.hpp \
158        CbcGeneric.cpp \
159        CbcGenMessages.cpp CbcGenMessages.hpp \
160        CbcGenOsiParam.cpp CbcGenOsiParam.hpp CbcGenOsiParamUtils.cpp \
161        CbcGenParam.cpp CbcGenParam.hpp CbcGenParamUtils.cpp \
162        CbcGenSolution.cpp \
163        CbcGenSolvers.cpp
164
165cbc_generic_LDADD = libCbcSolver.la libCbc.la $(CBCGENERIC_LIBS)
166cbc_generic_DEPENDENCIES = libCbcSolver.la libCbc.la $(CBCGENERIC_DEPENDENCIES)
167
168# List all additionally required solver and Osi libraries
169# the linker flags for all available LP solvers should already be included in $CBCGENERIC_LIBS,
170# so just add compiler flags here (all we can think of)
171
172AM_CPPFLAGS += $(DYLP_CFLAGS) $(GLPK_CFLAGS) $(MSK_CFLAGS) $(SPX_CFLAGS) $(VOL_CFLAGS) $(XPR_CFLAGS)
173
174# Finally, the -rpath flag is used by libtool to make sure that the shared
175# library is found (in the lib install directory) when we are using dynamic
176# libraries.
177
178cbc_generic_LDFLAGS = -rpath $(libdir)
179
180endif
181
182########################################################################
183#                            Additional flags                          #
184########################################################################
185
186# List additional defines
187AM_CPPFLAGS += -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG
188
189# This line is necessary to allow VPATH compilation with MS compilers
190# on Cygwin
191DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
192
193########################################################################
194#                Headers that need to be installed                     #
195########################################################################
196
197# Here list all the header files that are required by a user of the library,
198# and that therefore should be installed in 'include/coin'
199includecoindir = $(includedir)/coin
200includecoin_HEADERS = \
201        ../inc/config_cbc.h \
202        Cbc_C_Interface.h \
203        CbcBranchActual.hpp \
204        CbcBranchAllDifferent.hpp \
205        CbcBranchBase.hpp \
206        CbcBranchDynamic.hpp \
207        CbcBranchCut.hpp \
208        CbcBranchDecision.hpp \
209        CbcBranchDefaultDecision.hpp \
210        CbcBranchingObject.hpp \
211        CbcBranchLotsize.hpp \
212        CbcBranchToFixLots.hpp \
213        CbcCompareActual.hpp \
214        CbcCompareBase.hpp \
215        CbcCompareDefault.hpp \
216        CbcCompareDepth.hpp \
217        CbcCompareEstimate.hpp \
218        CbcCompareObjective.hpp \
219        CbcConsequence.hpp \
220        CbcChooseVariable.hpp \
221        CbcClique.hpp \
222        CbcCompare.hpp \
223        CbcCutGenerator.hpp \
224        CbcCutModifier.hpp \
225        CbcCutSubsetModifier.hpp \
226        CbcDummyBranchingObject.hpp \
227        CbcFathom.hpp \
228        CbcEventHandler.hpp \
229        CbcFeasibilityBase.hpp \
230        CbcFixVariable.hpp \
231        CbcFollowOn.hpp \
232        CbcFullNodeInfo.hpp \
233        CbcGeneral.hpp \
234        CbcGeneralDepth.hpp \
235        CbcHeuristic.hpp \
236        CbcHeuristicDINS.hpp \
237        CbcHeuristicDive.hpp \
238        CbcHeuristicDiveCoefficient.hpp \
239        CbcHeuristicDiveFractional.hpp \
240        CbcHeuristicDiveGuided.hpp \
241        CbcHeuristicDiveLineSearch.hpp \
242        CbcHeuristicDivePseudoCost.hpp \
243        CbcHeuristicDiveVectorLength.hpp \
244        CbcHeuristicFPump.hpp \
245        CbcHeuristicGreedy.hpp \
246        CbcHeuristicLocal.hpp \
247        CbcHeuristicPivotAndFix.hpp \
248        CbcHeuristicRandRound.hpp \
249        CbcHeuristicRENS.hpp \
250        CbcHeuristicRINS.hpp \
251        CbcHeuristicVND.hpp \
252        CbcMessage.hpp \
253        CbcModel.hpp \
254        CbcNode.hpp \
255        CbcNodeInfo.hpp \
256        CbcNWay.hpp \
257        CbcObject.hpp \
258        CbcObjectUpdateData.hpp \
259        CbcPartialNodeInfo.hpp \
260        CbcSimpleInteger.hpp \
261        CbcSimpleIntegerDynamicPseudoCost.hpp \
262        CbcSimpleIntegerPseudoCost.hpp \
263        CbcStrategy.hpp \
264        CbcSolver.hpp \
265        CbcSOS.hpp \
266        CbcSubProblem.hpp \
267        CbcTree.hpp \
268        CbcLinked.hpp \
269        CbcTreeLocal.hpp \
270        ClpConstraintAmpl.hpp \
271        ClpAmplObjective.hpp
272
273#############################################################################
274# Create the Config.h file that always defines HAVE_CONFIG_H and install it #
275#############################################################################
276
277# You only need to adapt the following line
278ConfigHeader = CbcConfig.h
279
280install-exec-local:
281        echo "#ifndef HAVE_CONFIG_H" >bla
282        echo "#define HAVE_CONFIG_H" >>bla
283        echo "#endif" >> bla
284        cat $(srcdir)/$(ConfigHeader) >> bla
285        $(install_sh_DATA) bla $(DESTDIR)$(includecoindir)/$(ConfigHeader)
286        rm -f bla
287
288uninstall-local:
289        rm -f $(DESTDIR)$(includecoindir)/$(ConfigHeader)
Note: See TracBrowser for help on using the repository browser.