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

Last change on this file since 1734 was 1734, checked in by stefan, 8 years ago

change to new way on how to use and install configuration header files

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.8 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 1734 2011-06-08 17:28:29Z stefan $
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# Finally, the -rpath flag is used by libtool to make sure that the shared
121# library is found (in the lib install directory) when we are using dynamic
122# libraries.
123clp_LDFLAGS = -rpath $(libdir)
124
125########################################################################
126#                            Additional flags                          #
127########################################################################
128
129# CbcOrClpParam seem to require COIN_HAS_CLP so that it knows that it is build within Clp
130AM_CPPFLAGS = $(CLPLIB_CFLAGS) -DCOIN_HAS_CLP
131
132if COIN_HAS_CHOLMOD
133AM_CPPFLAGS += -I`$(CYGPATH_W) $(CHOLMODINCDIR)`
134endif
135
136if COIN_HAS_AMD
137AM_CPPFLAGS += -I`$(CYGPATH_W) $(AMDINCDIR)`
138endif
139
140# This line is necessary to allow VPATH compilation
141DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)`
142
143########################################################################
144#                Headers that need to be installed                     #
145########################################################################
146
147# Here list all the header files that are required by a user of the library,
148# and that therefore should be installed in 'include/coin'
149includecoindir = $(includedir)/coin
150includecoin_HEADERS = \
151        Clp_C_Interface.h \
152        ClpCholeskyBase.hpp \
153        ClpCholeskyDense.hpp \
154        ClpConstraint.hpp \
155        ClpConstraintLinear.hpp \
156        ClpConstraintQuadratic.hpp \
157        ClpDualRowDantzig.hpp \
158        ClpDualRowPivot.hpp \
159        ClpDualRowSteepest.hpp \
160        ClpDummyMatrix.hpp \
161        ClpDynamicExampleMatrix.hpp \
162        ClpDynamicMatrix.hpp \
163        ClpEventHandler.hpp \
164        ClpFactorization.hpp \
165        ClpGubDynamicMatrix.hpp \
166        ClpGubMatrix.hpp \
167        ClpInterior.hpp \
168        ClpLinearObjective.hpp \
169        ClpMatrixBase.hpp \
170        ClpMessage.hpp \
171        ClpModel.hpp \
172        ClpNetworkMatrix.hpp \
173        ClpNonLinearCost.hpp \
174        ClpNode.hpp \
175        ClpObjective.hpp \
176        ClpPackedMatrix.hpp \
177        ClpPdcoBase.hpp \
178        ClpPlusMinusOneMatrix.hpp \
179        ClpParameters.hpp \
180        ClpPresolve.hpp \
181        ClpPrimalColumnDantzig.hpp \
182        ClpPrimalColumnPivot.hpp \
183        ClpPrimalColumnSteepest.hpp \
184        ClpQuadraticObjective.hpp \
185        ClpSimplex.hpp \
186        ClpSimplexNonlinear.hpp \
187        ClpSimplexOther.hpp \
188        ClpSimplexPrimal.hpp \
189        ClpSolve.hpp \
190        CbcOrClpParam.hpp \
191        Idiot.hpp
192
193
194# if AMD, CHOLMOD, or GLPK is available, then install ClpCholeskyUfl.hpp (for advanced users)
195if COIN_HAS_AMD
196includecoin_HEADERS += ClpCholeskyUfl.hpp
197else
198if COIN_HAS_CHOLMOD
199includecoin_HEADERS += ClpCholeskyUfl.hpp
200else
201if COIN_HAS_GLPK
202includecoin_HEADERS += ClpCholeskyUfl.hpp
203endif
204endif
205endif
206
207if COIN_HAS_MUMPS
208includecoin_HEADERS += ClpCholeskyMumps.hpp
209endif
210
211if COIN_HAS_WSMP
212includecoin_HEADERS += ClpCholeskyWssmp.hpp ClpCholeskyWssmpKKT.hpp
213endif
214
215# needed by Cbc
216includecoin_HEADERS += CbcOrClpParam.cpp
217
218install-exec-local:
219        $(install_sh_DATA) config_clp.h $(DESTDIR)$(includecoindir)/ClpConfig.h
220
221uninstall-local:
222        rm -f $(DESTDIR)$(includecoindir)/ClpConfig.h
Note: See TracBrowser for help on using the repository browser.