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

Last change on this file since 1644 was 1644, checked in by stefan, 9 years ago

list .la files in xxx-uninstalled.pc files; setup binary dependencies with _DEPENDENCIES variable; rerun autotools

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.4 KB
Line 
1# Copyright (C) 2006 International Business Machines and others.
2# All Rights Reserved.
3# This file is distributed under the Common Public License.
4
5## $Id: Makefile.am 1644 2010-12-04 15:53:25Z 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/coin' directory
21coinlibdir = ${libdir}/coin
22coinlib_LTLIBRARIES = libClp.la
23
24# List all source files for this library, including headers
25libClp_la_SOURCES = \
26        ClpConfig.h \
27        ClpCholeskyBase.cpp ClpCholeskyBase.hpp \
28        ClpCholeskyDense.cpp ClpCholeskyDense.hpp \
29        ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp \
30        ClpCholeskyMumps.cpp ClpCholeskyMumps.hpp \
31        ClpCholeskyWssmp.cpp ClpCholeskyWssmp.hpp \
32        ClpCholeskyWssmpKKT.cpp ClpCholeskyWssmpKKT.hpp \
33        ClpConstraint.cpp ClpConstraint.hpp \
34        ClpConstraintLinear.cpp ClpConstraintLinear.hpp \
35        ClpConstraintQuadratic.cpp ClpConstraintQuadratic.hpp \
36        Clp_C_Interface.cpp Clp_C_Interface.h \
37        ClpDualRowDantzig.cpp ClpDualRowDantzig.hpp \
38        ClpDualRowPivot.cpp ClpDualRowPivot.hpp \
39        ClpDualRowSteepest.cpp ClpDualRowSteepest.hpp \
40        ClpDummyMatrix.cpp ClpDummyMatrix.hpp \
41        ClpDynamicExampleMatrix.cpp ClpDynamicExampleMatrix.hpp \
42        ClpDynamicMatrix.cpp ClpDynamicMatrix.hpp \
43        ClpEventHandler.cpp ClpEventHandler.hpp \
44        ClpFactorization.cpp ClpFactorization.hpp \
45        ClpGubDynamicMatrix.cpp ClpGubDynamicMatrix.hpp \
46        ClpGubMatrix.cpp ClpGubMatrix.hpp \
47        ClpHelperFunctions.cpp ClpHelperFunctions.hpp \
48        ClpInterior.cpp ClpInterior.hpp \
49        ClpLinearObjective.cpp ClpLinearObjective.hpp \
50        ClpMatrixBase.cpp ClpMatrixBase.hpp \
51        ClpMessage.cpp ClpMessage.hpp \
52        ClpModel.cpp ClpModel.hpp \
53        ClpNetworkBasis.cpp ClpNetworkBasis.hpp \
54        ClpNetworkMatrix.cpp ClpNetworkMatrix.hpp \
55        ClpNonLinearCost.cpp ClpNonLinearCost.hpp \
56        ClpNode.cpp ClpNode.hpp \
57        ClpObjective.cpp ClpObjective.hpp \
58        ClpPackedMatrix.cpp ClpPackedMatrix.hpp \
59        ClpParameters.hpp \
60        ClpPlusMinusOneMatrix.cpp ClpPlusMinusOneMatrix.hpp \
61        ClpPredictorCorrector.cpp ClpPredictorCorrector.hpp \
62        ClpPdco.cpp ClpPdco.hpp \
63        ClpPdcoBase.cpp ClpPdcoBase.hpp \
64        ClpLsqr.cpp ClpLsqr.hpp \
65        ClpPresolve.cpp ClpPresolve.hpp \
66        ClpPrimalColumnDantzig.cpp ClpPrimalColumnDantzig.hpp \
67        ClpPrimalColumnPivot.cpp ClpPrimalColumnPivot.hpp \
68        ClpPrimalColumnSteepest.cpp ClpPrimalColumnSteepest.hpp \
69        ClpQuadraticObjective.cpp ClpQuadraticObjective.hpp \
70        ClpSimplex.cpp ClpSimplex.hpp \
71        ClpSimplexDual.cpp ClpSimplexDual.hpp \
72        ClpSimplexNonlinear.cpp ClpSimplexNonlinear.hpp \
73        ClpSimplexOther.cpp ClpSimplexOther.hpp \
74        ClpSimplexPrimal.cpp ClpSimplexPrimal.hpp \
75        ClpSolve.cpp ClpSolve.hpp \
76        Idiot.cpp Idiot.hpp \
77        IdiSolve.cpp
78
79# This is for libtool
80libClp_la_LDFLAGS = $(LT_LDFLAGS)
81
82########################################################################
83#                            clp program                               #
84########################################################################
85
86# Name of the executable compiled in this directory.  We want it to be
87# installed in the 'bin' directory
88bin_PROGRAMS = clp
89
90# List all source files for this executable, including headers
91clp_SOURCES = \
92        ClpMain.cpp \
93        CbcOrClpParam.cpp CbcOrClpParam.hpp \
94        MyEventHandler.cpp MyEventHandler.hpp \
95        MyMessageHandler.cpp MyMessageHandler.hpp \
96        unitTest.cpp
97
98# List all additionally required libraries
99clp_LDADD = libClp.la $(CLPLIB_LIBS)
100
101# List all dependency libraries (similar to LDADD, but without -l, -L flags)
102clp_DEPENDENCIES = libClp.la $(CLPLIB_DEPENDENCIES)
103
104# Finally, the -rpath flag is used by libtool to make sure that the shared
105# library is found (in the lib install directory) when we are using dynamic
106# libraries.
107clp_LDFLAGS = -rpath $(coinlibdir)
108
109########################################################################
110#                            Additional flags                          #
111########################################################################
112
113# CbcOrClpParam seem to require COIN_HAS_CLP so that it knows that it is build within Clp
114AM_CPPFLAGS = $(COINUTILS_CFLAGS) -DCOIN_HAS_CLP
115
116# This line is necessary to allow VPATH compilation with MS compilers
117# on Cygwin
118DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
119
120########################################################################
121#                Headers that need to be installed                     #
122########################################################################
123
124# Here list all the header files that are required by a user of the library,
125# and that therefore should be installed in 'include/coin'
126includecoindir = $(includedir)/coin
127includecoin_HEADERS = \
128        ../inc/config_clp.h \
129        Clp_C_Interface.h \
130        ClpCholeskyBase.hpp \
131        ClpCholeskyDense.hpp \
132        ClpCholeskyWssmp.hpp \
133        ClpConstraint.hpp \
134        ClpConstraintLinear.hpp \
135        ClpConstraintQuadratic.hpp \
136        ClpDualRowDantzig.hpp \
137        ClpDualRowPivot.hpp \
138        ClpDualRowSteepest.hpp \
139        ClpDummyMatrix.hpp \
140        ClpDynamicExampleMatrix.hpp \
141        ClpDynamicMatrix.hpp \
142        ClpEventHandler.hpp \
143        ClpFactorization.hpp \
144        ClpGubDynamicMatrix.hpp \
145        ClpGubMatrix.hpp \
146        ClpInterior.hpp \
147        ClpLinearObjective.hpp \
148        ClpMatrixBase.hpp \
149        ClpMessage.hpp \
150        ClpModel.hpp \
151        ClpNetworkMatrix.hpp \
152        ClpNonLinearCost.hpp \
153        ClpNode.hpp \
154        ClpObjective.hpp \
155        ClpPackedMatrix.hpp \
156        ClpPdcoBase.hpp \
157        ClpPlusMinusOneMatrix.hpp \
158        ClpParameters.hpp \
159        ClpPresolve.hpp \
160        ClpPrimalColumnDantzig.hpp \
161        ClpPrimalColumnPivot.hpp \
162        ClpPrimalColumnSteepest.hpp \
163        ClpQuadraticObjective.hpp \
164        ClpSimplex.hpp \
165        ClpSimplexNonlinear.hpp \
166        ClpSimplexOther.hpp \
167        ClpSimplexPrimal.hpp \
168        ClpSolve.hpp \
169        CbcOrClpParam.hpp \
170        Idiot.hpp
171
172# needed by Cbc
173includecoin_HEADERS += CbcOrClpParam.cpp
174
175#############################################################################
176# Create the Config.h file that always defines HAVE_CONFIG_H and install it #
177#############################################################################
178
179# You only need to adapt the following line
180ConfigHeader = ClpConfig.h
181
182install-exec-local:
183        echo "#ifndef HAVE_CONFIG_H" >bla
184        echo "#define HAVE_CONFIG_H" >>bla
185        echo "#endif" >> bla
186        cat $(srcdir)/$(ConfigHeader) >> bla
187        $(install_sh_DATA) bla $(DESTDIR)$(includecoindir)/$(ConfigHeader)
188        rm -f bla
189
190uninstall-local:
191        rm -f $(DESTDIR)$(includecoindir)/$(ConfigHeader)
Note: See TracBrowser for help on using the repository browser.