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

Last change on this file since 1878 was 1878, checked in by forrest, 7 years ago

minor changes to implement Aboca

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 8.2 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 1878 2012-08-30 15:43:19Z forrest $
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        AbcWarmStart.cpp AbcWarmStart.hpp \
72        CoinAbcBaseFactorization.hpp \
73        CoinAbcCommonFactorization.hpp \
74        CoinAbcCommon.hpp \
75        AbcDualRowDantzig.hpp \
76        AbcDualRowPivot.hpp \
77        AbcDualRowSteepest.hpp \
78        CoinAbcFactorization.hpp \
79        CoinAbcHelperFunctions.hpp \
80        AbcMatrix.hpp \
81        AbcCommon.hpp \
82        AbcSimplexDual.hpp \
83        AbcSimplexPrimal.hpp \
84        AbcSimplex.hpp \
85        CoinAbcBaseFactorization1.cpp \
86        CoinAbcBaseFactorization2.cpp \
87        CoinAbcBaseFactorization3.cpp \
88        CoinAbcBaseFactorization4.cpp \
89        CoinAbcBaseFactorization5.cpp \
90        CoinAbcDenseFactorization.cpp \
91        CoinAbcDenseFactorization.hpp \
92        AbcDualRowDantzig.cpp \
93        AbcDualRowPivot.cpp \
94        AbcDualRowSteepest.cpp \
95        CoinAbcFactorization1.cpp \
96        CoinAbcFactorization2.cpp \
97        CoinAbcFactorization3.cpp \
98        CoinAbcFactorization4.cpp \
99        CoinAbcFactorization5.cpp \
100        CoinAbcHelperFunctions.cpp \
101        AbcMatrix.cpp \
102        AbcSimplex.cpp \
103        AbcSimplexDual.cpp \
104        AbcSimplexPrimal.cpp \
105        AbcSimplexParallel.cpp \
106        AbcPrimalColumnDantzig.cpp AbcPrimalColumnDantzig.hpp \
107        AbcPrimalColumnPivot.cpp AbcPrimalColumnPivot.hpp \
108        AbcPrimalColumnSteepest.cpp AbcPrimalColumnSteepest.hpp \
109        CoinAbcSmallFactorization1.cpp \
110        CoinAbcSmallFactorization2.cpp \
111        CoinAbcSmallFactorization3.cpp \
112        CoinAbcSmallFactorization4.cpp \
113        CoinAbcSmallFactorization5.cpp \
114        CoinAbcOrderedFactorization1.cpp \
115        CoinAbcOrderedFactorization2.cpp \
116        CoinAbcOrderedFactorization3.cpp \
117        CoinAbcOrderedFactorization4.cpp \
118        CoinAbcOrderedFactorization5.cpp \
119        AbcSimplexFactorization.cpp \
120        AbcSimplexFactorization.hpp \
121        AbcNonLinearCost.cpp AbcNonLinearCost.hpp \
122        Idiot.cpp Idiot.hpp \
123        IdiSolve.cpp
124
125# if AMD, CHOLMOD, or GLPK is available, then compile ClpCholeskyUfl.cpp
126if COIN_HAS_AMD
127libClp_la_SOURCES += ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp
128else
129if COIN_HAS_CHOLMOD
130libClp_la_SOURCES += ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp
131else
132if COIN_HAS_GLPK
133libClp_la_SOURCES += ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp
134endif
135endif
136endif
137
138if COIN_HAS_MUMPS
139libClp_la_SOURCES += ClpCholeskyMumps.cpp ClpCholeskyMumps.hpp
140endif
141
142if COIN_HAS_WSMP
143libClp_la_SOURCES += ClpCholeskyWssmp.cpp ClpCholeskyWssmp.hpp ClpCholeskyWssmpKKT.cpp ClpCholeskyWssmpKKT.hpp
144endif
145
146# This is for libtool
147libClp_la_LDFLAGS = $(LT_LDFLAGS)
148
149########################################################################
150#                            clp program                               #
151########################################################################
152
153# Name of the executable compiled in this directory.  We want it to be
154# installed in the 'bin' directory
155bin_PROGRAMS = clp
156
157# List all source files for this executable, including headers
158clp_SOURCES = \
159        ClpMain.cpp \
160        CbcOrClpParam.cpp CbcOrClpParam.hpp \
161        MyEventHandler.cpp MyEventHandler.hpp \
162        MyMessageHandler.cpp MyMessageHandler.hpp \
163        unitTest.cpp
164
165# List all additionally required libraries
166clp_LDADD = libClp.la $(CLPLIB_LIBS)
167
168# List all dependency libraries (similar to LDADD, but without -l, -L flags)
169clp_DEPENDENCIES = libClp.la $(CLPLIB_DEPENDENCIES)
170
171########################################################################
172#                            Additional flags                          #
173########################################################################
174
175# CbcOrClpParam seem to require COIN_HAS_CLP so that it knows that it is build within Clp
176AM_CPPFLAGS = $(CLPLIB_CFLAGS) -DCOIN_HAS_CLP
177
178if COIN_HAS_CHOLMOD
179AM_CPPFLAGS += -I`$(CYGPATH_W) $(CHOLMODINCDIR)`
180endif
181
182if COIN_HAS_AMD
183AM_CPPFLAGS += -I`$(CYGPATH_W) $(AMDINCDIR)`
184endif
185
186# This line is necessary to allow VPATH compilation
187DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)`
188
189########################################################################
190#                Headers that need to be installed                     #
191########################################################################
192
193# Here list all the header files that are required by a user of the library,
194# and that therefore should be installed in 'include/coin'
195includecoindir = $(includedir)/coin
196includecoin_HEADERS = \
197        Clp_C_Interface.h \
198        ClpCholeskyBase.hpp \
199        ClpCholeskyDense.hpp \
200        ClpConstraint.hpp \
201        ClpConstraintLinear.hpp \
202        ClpConstraintQuadratic.hpp \
203        ClpDualRowDantzig.hpp \
204        ClpDualRowPivot.hpp \
205        ClpDualRowSteepest.hpp \
206        ClpDummyMatrix.hpp \
207        ClpDynamicExampleMatrix.hpp \
208        ClpDynamicMatrix.hpp \
209        ClpEventHandler.hpp \
210        ClpFactorization.hpp \
211        ClpGubDynamicMatrix.hpp \
212        ClpGubMatrix.hpp \
213        ClpInterior.hpp \
214        ClpLinearObjective.hpp \
215        ClpMatrixBase.hpp \
216        ClpMessage.hpp \
217        ClpModel.hpp \
218        ClpNetworkMatrix.hpp \
219        ClpNonLinearCost.hpp \
220        ClpNode.hpp \
221        ClpObjective.hpp \
222        ClpPackedMatrix.hpp \
223        ClpPdcoBase.hpp \
224        ClpPlusMinusOneMatrix.hpp \
225        ClpParameters.hpp \
226        ClpPresolve.hpp \
227        ClpPrimalColumnDantzig.hpp \
228        ClpPrimalColumnPivot.hpp \
229        ClpPrimalColumnSteepest.hpp \
230        ClpQuadraticObjective.hpp \
231        ClpSimplex.hpp \
232        ClpSimplexNonlinear.hpp \
233        ClpSimplexOther.hpp \
234        ClpSimplexDual.hpp \
235        ClpSimplexPrimal.hpp \
236        ClpSolve.hpp \
237        CbcOrClpParam.hpp \
238        AbcSimplex.hpp CoinAbcCommon.hpp AbcCommon.hpp \
239        Idiot.hpp
240
241
242# if AMD, CHOLMOD, or GLPK is available, then install ClpCholeskyUfl.hpp (for advanced users)
243if COIN_HAS_AMD
244includecoin_HEADERS += ClpCholeskyUfl.hpp
245else
246if COIN_HAS_CHOLMOD
247includecoin_HEADERS += ClpCholeskyUfl.hpp
248else
249if COIN_HAS_GLPK
250includecoin_HEADERS += ClpCholeskyUfl.hpp
251endif
252endif
253endif
254
255if COIN_HAS_MUMPS
256includecoin_HEADERS += ClpCholeskyMumps.hpp
257endif
258
259if COIN_HAS_WSMP
260includecoin_HEADERS += ClpCholeskyWssmp.hpp ClpCholeskyWssmpKKT.hpp
261endif
262
263# needed by Cbc
264includecoin_HEADERS += CbcOrClpParam.cpp
265
266install-exec-local:
267        $(install_sh_DATA) config_clp.h $(DESTDIR)$(includecoindir)/ClpConfig.h
268
269uninstall-local:
270        rm -f $(DESTDIR)$(includecoindir)/ClpConfig.h
Note: See TracBrowser for help on using the repository browser.