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

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

change library installation directory back to

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