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

Last change on this file since 1763 was 1763, checked in by forrest, 9 years ago

add ClpSimplexDual?.hpp to list of published hpp files

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.6 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 1763 2011-07-10 08:06:23Z 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        Idiot.cpp Idiot.hpp \
72        IdiSolve.cpp
73
74# if AMD, CHOLMOD, or GLPK is available, then compile ClpCholeskyUfl.cpp
75if COIN_HAS_AMD
76libClp_la_SOURCES += ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp
77else
78if COIN_HAS_CHOLMOD
79libClp_la_SOURCES += ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp
80else
81if COIN_HAS_GLPK
82libClp_la_SOURCES += ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp
83endif
84endif
85endif
86
87if COIN_HAS_MUMPS
88libClp_la_SOURCES += ClpCholeskyMumps.cpp ClpCholeskyMumps.hpp
89endif
90
91if COIN_HAS_WSMP
92libClp_la_SOURCES += ClpCholeskyWssmp.cpp ClpCholeskyWssmp.hpp ClpCholeskyWssmpKKT.cpp ClpCholeskyWssmpKKT.hpp
93endif
94
95# This is for libtool
96libClp_la_LDFLAGS = $(LT_LDFLAGS)
97
98########################################################################
99#                            clp program                               #
100########################################################################
101
102# Name of the executable compiled in this directory.  We want it to be
103# installed in the 'bin' directory
104bin_PROGRAMS = clp
105
106# List all source files for this executable, including headers
107clp_SOURCES = \
108        ClpMain.cpp \
109        CbcOrClpParam.cpp CbcOrClpParam.hpp \
110        MyEventHandler.cpp MyEventHandler.hpp \
111        MyMessageHandler.cpp MyMessageHandler.hpp \
112        unitTest.cpp
113
114# List all additionally required libraries
115clp_LDADD = libClp.la $(CLPLIB_LIBS)
116
117# List all dependency libraries (similar to LDADD, but without -l, -L flags)
118clp_DEPENDENCIES = libClp.la $(CLPLIB_DEPENDENCIES)
119
120########################################################################
121#                            Additional flags                          #
122########################################################################
123
124# CbcOrClpParam seem to require COIN_HAS_CLP so that it knows that it is build within Clp
125AM_CPPFLAGS = $(CLPLIB_CFLAGS) -DCOIN_HAS_CLP
126
127if COIN_HAS_CHOLMOD
128AM_CPPFLAGS += -I`$(CYGPATH_W) $(CHOLMODINCDIR)`
129endif
130
131if COIN_HAS_AMD
132AM_CPPFLAGS += -I`$(CYGPATH_W) $(AMDINCDIR)`
133endif
134
135# This line is necessary to allow VPATH compilation
136DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)`
137
138########################################################################
139#                Headers that need to be installed                     #
140########################################################################
141
142# Here list all the header files that are required by a user of the library,
143# and that therefore should be installed in 'include/coin'
144includecoindir = $(includedir)/coin
145includecoin_HEADERS = \
146        Clp_C_Interface.h \
147        ClpCholeskyBase.hpp \
148        ClpCholeskyDense.hpp \
149        ClpConstraint.hpp \
150        ClpConstraintLinear.hpp \
151        ClpConstraintQuadratic.hpp \
152        ClpDualRowDantzig.hpp \
153        ClpDualRowPivot.hpp \
154        ClpDualRowSteepest.hpp \
155        ClpDummyMatrix.hpp \
156        ClpDynamicExampleMatrix.hpp \
157        ClpDynamicMatrix.hpp \
158        ClpEventHandler.hpp \
159        ClpFactorization.hpp \
160        ClpGubDynamicMatrix.hpp \
161        ClpGubMatrix.hpp \
162        ClpInterior.hpp \
163        ClpLinearObjective.hpp \
164        ClpMatrixBase.hpp \
165        ClpMessage.hpp \
166        ClpModel.hpp \
167        ClpNetworkMatrix.hpp \
168        ClpNonLinearCost.hpp \
169        ClpNode.hpp \
170        ClpObjective.hpp \
171        ClpPackedMatrix.hpp \
172        ClpPdcoBase.hpp \
173        ClpPlusMinusOneMatrix.hpp \
174        ClpParameters.hpp \
175        ClpPresolve.hpp \
176        ClpPrimalColumnDantzig.hpp \
177        ClpPrimalColumnPivot.hpp \
178        ClpPrimalColumnSteepest.hpp \
179        ClpQuadraticObjective.hpp \
180        ClpSimplex.hpp \
181        ClpSimplexNonlinear.hpp \
182        ClpSimplexOther.hpp \
183        ClpSimplexDual.hpp \
184        ClpSimplexPrimal.hpp \
185        ClpSolve.hpp \
186        CbcOrClpParam.hpp \
187        Idiot.hpp
188
189
190# if AMD, CHOLMOD, or GLPK is available, then install ClpCholeskyUfl.hpp (for advanced users)
191if COIN_HAS_AMD
192includecoin_HEADERS += ClpCholeskyUfl.hpp
193else
194if COIN_HAS_CHOLMOD
195includecoin_HEADERS += ClpCholeskyUfl.hpp
196else
197if COIN_HAS_GLPK
198includecoin_HEADERS += ClpCholeskyUfl.hpp
199endif
200endif
201endif
202
203if COIN_HAS_MUMPS
204includecoin_HEADERS += ClpCholeskyMumps.hpp
205endif
206
207if COIN_HAS_WSMP
208includecoin_HEADERS += ClpCholeskyWssmp.hpp ClpCholeskyWssmpKKT.hpp
209endif
210
211# needed by Cbc
212includecoin_HEADERS += CbcOrClpParam.cpp
213
214install-exec-local:
215        $(install_sh_DATA) config_clp.h $(DESTDIR)$(includecoindir)/ClpConfig.h
216
217uninstall-local:
218        rm -f $(DESTDIR)$(includecoindir)/ClpConfig.h
Note: See TracBrowser for help on using the repository browser.