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

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

Changes for embedding manifest

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 8.9 KB
Line 
1# Copyright (C) 2006 International Business Machines and others.
2# All Rights Reserved.
3# This file is distributed under the Eclipse Public License.
4
5## $Id: Makefile.am 1966 2013-06-27 21:17:27Z tkr $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
11if COIN_HAS_OSI
12  SUBDIRS = OsiClp
13endif
14
15########################################################################
16#                               libClp                                 #
17########################################################################
18
19# Name of the library compiled in this directory.  We want it to be installed
20# in the 'lib' directory
21lib_LTLIBRARIES = libClp.la
22
23# List all source files for this library, including headers
24libClp_la_SOURCES = \
25        ClpConfig.h \
26        ClpCholeskyBase.cpp ClpCholeskyBase.hpp \
27        ClpCholeskyDense.cpp ClpCholeskyDense.hpp \
28        ClpConstraint.cpp ClpConstraint.hpp \
29        ClpConstraintLinear.cpp ClpConstraintLinear.hpp \
30        ClpConstraintQuadratic.cpp ClpConstraintQuadratic.hpp \
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 \
51        ClpNode.cpp ClpNode.hpp \
52        ClpObjective.cpp ClpObjective.hpp \
53        ClpPackedMatrix.cpp ClpPackedMatrix.hpp \
54        ClpParameters.hpp \
55        ClpPlusMinusOneMatrix.cpp ClpPlusMinusOneMatrix.hpp \
56        ClpPredictorCorrector.cpp ClpPredictorCorrector.hpp \
57        ClpPdco.cpp ClpPdco.hpp \
58        ClpPdcoBase.cpp ClpPdcoBase.hpp \
59        ClpLsqr.cpp ClpLsqr.hpp \
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 \
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 \
90        AbcWarmStart.cpp AbcWarmStart.hpp \
91        CoinAbcBaseFactorization.hpp \
92        CoinAbcBaseFactorization1.cpp \
93        CoinAbcBaseFactorization2.cpp \
94        CoinAbcBaseFactorization3.cpp \
95        CoinAbcBaseFactorization4.cpp \
96        CoinAbcBaseFactorization5.cpp \
97        CoinAbcCommonFactorization.hpp \
98        CoinAbcCommon.hpp \
99        CoinAbcDenseFactorization.cpp \
100        CoinAbcDenseFactorization.hpp \
101        CoinAbcFactorization.hpp \
102        CoinAbcFactorization1.cpp \
103        CoinAbcFactorization2.cpp \
104        CoinAbcFactorization3.cpp \
105        CoinAbcFactorization4.cpp \
106        CoinAbcFactorization5.cpp \
107        CoinAbcHelperFunctions.cpp CoinAbcHelperFunctions.hpp \
108        CoinAbcOrderedFactorization1.cpp \
109        CoinAbcOrderedFactorization2.cpp \
110        CoinAbcOrderedFactorization3.cpp \
111        CoinAbcOrderedFactorization4.cpp \
112        CoinAbcOrderedFactorization5.cpp \
113        CoinAbcSmallFactorization1.cpp \
114        CoinAbcSmallFactorization2.cpp \
115        CoinAbcSmallFactorization3.cpp \
116        CoinAbcSmallFactorization4.cpp \
117        CoinAbcSmallFactorization5.cpp
118endif
119
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
133if COIN_HAS_MUMPS
134libClp_la_SOURCES += ClpCholeskyMumps.cpp ClpCholeskyMumps.hpp
135endif
136
137if COIN_HAS_WSMP
138libClp_la_SOURCES += ClpCholeskyWssmp.cpp ClpCholeskyWssmp.hpp ClpCholeskyWssmpKKT.cpp ClpCholeskyWssmpKKT.hpp
139endif
140
141# This is for libtool
142libClp_la_LDFLAGS = $(LT_LDFLAGS)
143
144########################################################################
145#                            clp program                               #
146########################################################################
147
148# Name of the executable compiled in this directory.  We want it to be
149# installed in the 'bin' directory
150bin_PROGRAMS = clp
151
152# List all source files for this executable, including headers
153clp_SOURCES = \
154        ClpMain.cpp \
155        CbcOrClpParam.cpp CbcOrClpParam.hpp \
156        Clp_ampl.cpp Clp_ampl.h \
157        MyEventHandler.cpp MyEventHandler.hpp \
158        MyMessageHandler.cpp MyMessageHandler.hpp \
159        unitTest.cpp
160
161# List all additionally required libraries
162clp_LDADD = libClp.la $(CLPLIB_LIBS) $(ASL_LIBS)
163
164# List all dependency libraries (similar to LDADD, but without -l, -L flags)
165clp_DEPENDENCIES = libClp.la $(CLPLIB_DEPENDENCIES)
166
167########################################################################
168#                            Additional flags                          #
169########################################################################
170
171# CbcOrClpParam seem to require COIN_HAS_CLP so that it knows that it is build within Clp
172AM_CPPFLAGS = $(CLPLIB_CFLAGS) -DCOIN_HAS_CLP
173
174if COIN_HAS_CHOLMOD
175AM_CPPFLAGS += -I`$(CYGPATH_W) $(CHOLMODINCDIR)`
176endif
177
178if COIN_HAS_AMD
179AM_CPPFLAGS += -I`$(CYGPATH_W) $(AMDINCDIR)`
180endif
181
182# This line is necessary to allow VPATH compilation
183DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)`
184
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,
190# and that therefore should be installed in 'include/coin'
191includecoindir = $(includedir)/coin
192includecoin_HEADERS = \
193        Clp_C_Interface.h \
194        ClpCholeskyBase.hpp \
195        ClpCholeskyDense.hpp \
196        ClpConstraint.hpp \
197        ClpConstraintLinear.hpp \
198        ClpConstraintQuadratic.hpp \
199        ClpDualRowDantzig.hpp \
200        ClpDualRowPivot.hpp \
201        ClpDualRowSteepest.hpp \
202        ClpDummyMatrix.hpp \
203        ClpDynamicExampleMatrix.hpp \
204        ClpDynamicMatrix.hpp \
205        ClpEventHandler.hpp \
206        ClpFactorization.hpp \
207        ClpGubDynamicMatrix.hpp \
208        ClpGubMatrix.hpp \
209        ClpInterior.hpp \
210        ClpLinearObjective.hpp \
211        ClpMatrixBase.hpp \
212        ClpMessage.hpp \
213        ClpModel.hpp \
214        ClpNetworkMatrix.hpp \
215        ClpNonLinearCost.hpp \
216        ClpNode.hpp \
217        ClpObjective.hpp \
218        ClpPackedMatrix.hpp \
219        ClpPdcoBase.hpp \
220        ClpPlusMinusOneMatrix.hpp \
221        ClpParameters.hpp \
222        ClpPresolve.hpp \
223        ClpPrimalColumnDantzig.hpp \
224        ClpPrimalColumnPivot.hpp \
225        ClpPrimalColumnSteepest.hpp \
226        ClpQuadraticObjective.hpp \
227        ClpSimplex.hpp \
228        ClpSimplexNonlinear.hpp \
229        ClpSimplexOther.hpp \
230        ClpSimplexDual.hpp \
231        ClpSimplexPrimal.hpp \
232        ClpSolve.hpp \
233        CbcOrClpParam.hpp \
234        Idiot.hpp
235
236if COIN_HAS_ABC
237includecoin_HEADERS += AbcSimplex.hpp CoinAbcCommon.hpp AbcCommon.hpp
238endif
239
240
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
262# needed by Cbc
263includecoin_HEADERS += CbcOrClpParam.cpp
264
265########################################################################
266#                     Installing manifest (MSVC++)                     #
267########################################################################
268
269install-exec-hook:
270        if COIN_CXX_IS_CL
271                test -s clp.exe.manifest && \
272                mt -manifest clp.exe.manifest -outputresource:clp.exe;\
273                cp clp.exe $(bindir)/clp.exe
274        endif
275
276#######################################################################
277# Create the Config.h file that has all public defines and install it #
278#######################################################################
279
280install-exec-local:
281        $(install_sh_DATA) config_clp.h $(DESTDIR)$(includecoindir)/ClpConfig.h
282
283uninstall-local:
284        rm -f $(DESTDIR)$(includecoindir)/ClpConfig.h
Note: See TracBrowser for help on using the repository browser.