source: trunk/Clp/src/Makefile.am @ 1967

Last change on this file since 1967 was 1967, checked in by tkr, 6 years ago

Updates to allow installig of manifest (sorry for the multiple commits)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 8.9 KB
RevLine 
[754]1# Copyright (C) 2006 International Business Machines and others.
2# All Rights Reserved.
[1655]3# This file is distributed under the Eclipse Public License.
[754]4
5## $Id: Makefile.am 1967 2013-06-28 13:50:25Z tkr $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
[1559]11if COIN_HAS_OSI
12  SUBDIRS = OsiClp
13endif
14
[754]15########################################################################
16#                               libClp                                 #
17########################################################################
18
19# Name of the library compiled in this directory.  We want it to be installed
[1659]20# in the 'lib' directory
21lib_LTLIBRARIES = libClp.la
[754]22
23# List all source files for this library, including headers
24libClp_la_SOURCES = \
[777]25        ClpConfig.h \
[754]26        ClpCholeskyBase.cpp ClpCholeskyBase.hpp \
27        ClpCholeskyDense.cpp ClpCholeskyDense.hpp \
[1035]28        ClpConstraint.cpp ClpConstraint.hpp \
29        ClpConstraintLinear.cpp ClpConstraintLinear.hpp \
30        ClpConstraintQuadratic.cpp ClpConstraintQuadratic.hpp \
[754]31        Clp_C_Interface.cpp Clp_C_Interface.h \
32        ClpDualRowDantzig.cpp ClpDualRowDantzig.hpp \
33        ClpDualRowPivot.cpp ClpDualRowPivot.hpp \
34        ClpDualRowSteepest.cpp ClpDualRowSteepest.hpp \
35        ClpDummyMatrix.cpp ClpDummyMatrix.hpp \
36        ClpDynamicExampleMatrix.cpp ClpDynamicExampleMatrix.hpp \
37        ClpDynamicMatrix.cpp ClpDynamicMatrix.hpp \
38        ClpEventHandler.cpp ClpEventHandler.hpp \
39        ClpFactorization.cpp ClpFactorization.hpp \
40        ClpGubDynamicMatrix.cpp ClpGubDynamicMatrix.hpp \
41        ClpGubMatrix.cpp ClpGubMatrix.hpp \
42        ClpHelperFunctions.cpp ClpHelperFunctions.hpp \
43        ClpInterior.cpp ClpInterior.hpp \
44        ClpLinearObjective.cpp ClpLinearObjective.hpp \
45        ClpMatrixBase.cpp ClpMatrixBase.hpp \
46        ClpMessage.cpp ClpMessage.hpp \
47        ClpModel.cpp ClpModel.hpp \
48        ClpNetworkBasis.cpp ClpNetworkBasis.hpp \
49        ClpNetworkMatrix.cpp ClpNetworkMatrix.hpp \
50        ClpNonLinearCost.cpp ClpNonLinearCost.hpp \
[1163]51        ClpNode.cpp ClpNode.hpp \
[754]52        ClpObjective.cpp ClpObjective.hpp \
53        ClpPackedMatrix.cpp ClpPackedMatrix.hpp \
54        ClpParameters.hpp \
55        ClpPlusMinusOneMatrix.cpp ClpPlusMinusOneMatrix.hpp \
56        ClpPredictorCorrector.cpp ClpPredictorCorrector.hpp \
[1171]57        ClpPdco.cpp ClpPdco.hpp \
58        ClpPdcoBase.cpp ClpPdcoBase.hpp \
59        ClpLsqr.cpp ClpLsqr.hpp \
[754]60        ClpPresolve.cpp ClpPresolve.hpp \
61        ClpPrimalColumnDantzig.cpp ClpPrimalColumnDantzig.hpp \
62        ClpPrimalColumnPivot.cpp ClpPrimalColumnPivot.hpp \
63        ClpPrimalColumnSteepest.cpp ClpPrimalColumnSteepest.hpp \
64        ClpQuadraticObjective.cpp ClpQuadraticObjective.hpp \
65        ClpSimplex.cpp ClpSimplex.hpp \
66        ClpSimplexDual.cpp ClpSimplexDual.hpp \
67        ClpSimplexNonlinear.cpp ClpSimplexNonlinear.hpp \
68        ClpSimplexOther.cpp ClpSimplexOther.hpp \
69        ClpSimplexPrimal.cpp ClpSimplexPrimal.hpp \
70        ClpSolve.cpp ClpSolve.hpp \
[1910]71        Idiot.cpp Idiot.hpp \
72        IdiSolve.cpp
73
74if COIN_HAS_ABC
75libClp_la_SOURCES += \
76        AbcCommon.hpp \
77        AbcDualRowDantzig.cpp AbcDualRowDantzig.hpp \
78        AbcDualRowPivot.cpp AbcDualRowPivot.hpp \
79        AbcDualRowSteepest.cpp AbcDualRowSteepest.hpp \
80        AbcMatrix.cpp AbcMatrix.hpp \
81        AbcNonLinearCost.cpp AbcNonLinearCost.hpp \
82        AbcPrimalColumnDantzig.cpp AbcPrimalColumnDantzig.hpp \
83        AbcPrimalColumnPivot.cpp AbcPrimalColumnPivot.hpp \
84        AbcPrimalColumnSteepest.cpp AbcPrimalColumnSteepest.hpp \
85        AbcSimplex.cpp AbcSimplex.hpp \
86        AbcSimplexDual.cpp AbcSimplexDual.hpp \
87        AbcSimplexPrimal.cpp AbcSimplexPrimal.hpp \
88        AbcSimplexParallel.cpp \
89        AbcSimplexFactorization.cpp AbcSimplexFactorization.hpp \
[1878]90        AbcWarmStart.cpp AbcWarmStart.hpp \
91        CoinAbcBaseFactorization.hpp \
92        CoinAbcBaseFactorization1.cpp \
93        CoinAbcBaseFactorization2.cpp \
94        CoinAbcBaseFactorization3.cpp \
95        CoinAbcBaseFactorization4.cpp \
96        CoinAbcBaseFactorization5.cpp \
[1910]97        CoinAbcCommonFactorization.hpp \
98        CoinAbcCommon.hpp \
[1878]99        CoinAbcDenseFactorization.cpp \
100        CoinAbcDenseFactorization.hpp \
[1910]101        CoinAbcFactorization.hpp \
[1878]102        CoinAbcFactorization1.cpp \
103        CoinAbcFactorization2.cpp \
104        CoinAbcFactorization3.cpp \
105        CoinAbcFactorization4.cpp \
106        CoinAbcFactorization5.cpp \
[1910]107        CoinAbcHelperFunctions.cpp CoinAbcHelperFunctions.hpp \
[1878]108        CoinAbcOrderedFactorization1.cpp \
109        CoinAbcOrderedFactorization2.cpp \
110        CoinAbcOrderedFactorization3.cpp \
111        CoinAbcOrderedFactorization4.cpp \
112        CoinAbcOrderedFactorization5.cpp \
[1910]113        CoinAbcSmallFactorization1.cpp \
114        CoinAbcSmallFactorization2.cpp \
115        CoinAbcSmallFactorization3.cpp \
116        CoinAbcSmallFactorization4.cpp \
117        CoinAbcSmallFactorization5.cpp
118endif
[754]119
[1691]120# if AMD, CHOLMOD, or GLPK is available, then compile ClpCholeskyUfl.cpp
121if COIN_HAS_AMD
122libClp_la_SOURCES += ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp
123else
124if COIN_HAS_CHOLMOD
125libClp_la_SOURCES += ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp
126else
127if COIN_HAS_GLPK
128libClp_la_SOURCES += ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp
129endif
130endif
131endif
132
[1692]133if COIN_HAS_MUMPS
134libClp_la_SOURCES += ClpCholeskyMumps.cpp ClpCholeskyMumps.hpp
135endif
136
[1693]137if COIN_HAS_WSMP
138libClp_la_SOURCES += ClpCholeskyWssmp.cpp ClpCholeskyWssmp.hpp ClpCholeskyWssmpKKT.cpp ClpCholeskyWssmpKKT.hpp
139endif
140
[1644]141# This is for libtool
[806]142libClp_la_LDFLAGS = $(LT_LDFLAGS)
[754]143
[755]144########################################################################
[762]145#                            clp program                               #
[755]146########################################################################
147
148# Name of the executable compiled in this directory.  We want it to be
149# installed in the 'bin' directory
[762]150bin_PROGRAMS = clp
[755]151
152# List all source files for this executable, including headers
[762]153clp_SOURCES = \
[755]154        ClpMain.cpp \
155        CbcOrClpParam.cpp CbcOrClpParam.hpp \
[1946]156        Clp_ampl.cpp Clp_ampl.h \
[755]157        MyEventHandler.cpp MyEventHandler.hpp \
158        MyMessageHandler.cpp MyMessageHandler.hpp \
159        unitTest.cpp
160
[1644]161# List all additionally required libraries
[1946]162clp_LDADD = libClp.la $(CLPLIB_LIBS) $(ASL_LIBS)
[755]163
[1644]164# List all dependency libraries (similar to LDADD, but without -l, -L flags)
165clp_DEPENDENCIES = libClp.la $(CLPLIB_DEPENDENCIES)
166
[755]167########################################################################
168#                            Additional flags                          #
169########################################################################
170
[1559]171# CbcOrClpParam seem to require COIN_HAS_CLP so that it knows that it is build within Clp
[1691]172AM_CPPFLAGS = $(CLPLIB_CFLAGS) -DCOIN_HAS_CLP
[754]173
[1691]174if COIN_HAS_CHOLMOD
175AM_CPPFLAGS += -I`$(CYGPATH_W) $(CHOLMODINCDIR)`
176endif
177
178if COIN_HAS_AMD
179AM_CPPFLAGS += -I`$(CYGPATH_W) $(AMDINCDIR)`
180endif
181
[1734]182# This line is necessary to allow VPATH compilation
183DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)`
[771]184
[754]185########################################################################
186#                Headers that need to be installed                     #
187########################################################################
188
189# Here list all the header files that are required by a user of the library,
[1574]190# and that therefore should be installed in 'include/coin'
[1146]191includecoindir = $(includedir)/coin
192includecoin_HEADERS = \
[778]193        Clp_C_Interface.h \
194        ClpCholeskyBase.hpp \
195        ClpCholeskyDense.hpp \
[1035]196        ClpConstraint.hpp \
197        ClpConstraintLinear.hpp \
198        ClpConstraintQuadratic.hpp \
[754]199        ClpDualRowDantzig.hpp \
200        ClpDualRowPivot.hpp \
201        ClpDualRowSteepest.hpp \
[1171]202        ClpDummyMatrix.hpp \
[778]203        ClpDynamicExampleMatrix.hpp \
204        ClpDynamicMatrix.hpp \
[754]205        ClpEventHandler.hpp \
206        ClpFactorization.hpp \
[778]207        ClpGubDynamicMatrix.hpp \
208        ClpGubMatrix.hpp \
[754]209        ClpInterior.hpp \
210        ClpLinearObjective.hpp \
211        ClpMatrixBase.hpp \
212        ClpMessage.hpp \
213        ClpModel.hpp \
214        ClpNetworkMatrix.hpp \
215        ClpNonLinearCost.hpp \
[1170]216        ClpNode.hpp \
[754]217        ClpObjective.hpp \
218        ClpPackedMatrix.hpp \
[1171]219        ClpPdcoBase.hpp \
[754]220        ClpPlusMinusOneMatrix.hpp \
221        ClpParameters.hpp \
222        ClpPresolve.hpp \
223        ClpPrimalColumnDantzig.hpp \
224        ClpPrimalColumnPivot.hpp \
225        ClpPrimalColumnSteepest.hpp \
[778]226        ClpQuadraticObjective.hpp \
[754]227        ClpSimplex.hpp \
228        ClpSimplexNonlinear.hpp \
229        ClpSimplexOther.hpp \
[1763]230        ClpSimplexDual.hpp \
[754]231        ClpSimplexPrimal.hpp \
232        ClpSolve.hpp \
[1104]233        CbcOrClpParam.hpp \
[754]234        Idiot.hpp
235
[1910]236if COIN_HAS_ABC
237includecoin_HEADERS += AbcSimplex.hpp CoinAbcCommon.hpp AbcCommon.hpp
238endif
[1701]239
[1910]240
[1701]241# if AMD, CHOLMOD, or GLPK is available, then install ClpCholeskyUfl.hpp (for advanced users)
242if COIN_HAS_AMD
243includecoin_HEADERS += ClpCholeskyUfl.hpp
244else
245if COIN_HAS_CHOLMOD
246includecoin_HEADERS += ClpCholeskyUfl.hpp
247else
248if COIN_HAS_GLPK
249includecoin_HEADERS += ClpCholeskyUfl.hpp
250endif
251endif
252endif
253
254if COIN_HAS_MUMPS
255includecoin_HEADERS += ClpCholeskyMumps.hpp
256endif
257
258if COIN_HAS_WSMP
259includecoin_HEADERS += ClpCholeskyWssmp.hpp ClpCholeskyWssmpKKT.hpp
260endif
261
[1559]262# needed by Cbc
263includecoin_HEADERS += CbcOrClpParam.cpp
264
[1965]265########################################################################
266#                     Installing manifest (MSVC++)                     #
267########################################################################
268
[1967]269if COIN_CXX_IS_CL
[1965]270install-exec-hook:
[1967]271        test -s clp.exe.manifest && \
272        mt -manifest clp.exe.manifest -outputresource:clp.exe;\
273        cp clp.exe $(bindir)/clp.exe
274endif
[1965]275
276#######################################################################
277# Create the Config.h file that has all public defines and install it #
278#######################################################################
279
[772]280install-exec-local:
[1734]281        $(install_sh_DATA) config_clp.h $(DESTDIR)$(includecoindir)/ClpConfig.h
[754]282
[772]283uninstall-local:
[1734]284        rm -f $(DESTDIR)$(includecoindir)/ClpConfig.h
Note: See TracBrowser for help on using the repository browser.