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

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

check for Osi in base dir too; fix some comments in Makefile.am

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.3 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 1574 2010-07-18 16:33:34Z 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 (on Windows)
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 COIN libraries
99clp_LDADD = libClp.la $(COINUTILS_LIBS) $(ADDLIBS)
100
101# Finally, the -rpath flag is used by libtool to make sure that the shared
102# library is found (in the lib install directory) when we are using dynamic
103# libraries.
104clp_LDFLAGS = -rpath $(libdir)/coin
105
106########################################################################
107#                            Additional flags                          #
108########################################################################
109
110# CbcOrClpParam seem to require COIN_HAS_CLP so that it knows that it is build within Clp
111AM_CPPFLAGS = $(COINUTILS_CFLAGS) -DCOIN_HAS_CLP
112
113# This line is necessary to allow VPATH compilation with MS compilers
114# on Cygwin
115DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
116
117########################################################################
118#                Headers that need to be installed                     #
119########################################################################
120
121# Here list all the header files that are required by a user of the library,
122# and that therefore should be installed in 'include/coin'
123includecoindir = $(includedir)/coin
124includecoin_HEADERS = \
125        ../inc/config_clp.h \
126        Clp_C_Interface.h \
127        ClpCholeskyBase.hpp \
128        ClpCholeskyDense.hpp \
129        ClpCholeskyWssmp.hpp \
130        ClpConstraint.hpp \
131        ClpConstraintLinear.hpp \
132        ClpConstraintQuadratic.hpp \
133        ClpDualRowDantzig.hpp \
134        ClpDualRowPivot.hpp \
135        ClpDualRowSteepest.hpp \
136        ClpDummyMatrix.hpp \
137        ClpDynamicExampleMatrix.hpp \
138        ClpDynamicMatrix.hpp \
139        ClpEventHandler.hpp \
140        ClpFactorization.hpp \
141        ClpGubDynamicMatrix.hpp \
142        ClpGubMatrix.hpp \
143        ClpInterior.hpp \
144        ClpLinearObjective.hpp \
145        ClpMatrixBase.hpp \
146        ClpMessage.hpp \
147        ClpModel.hpp \
148        ClpNetworkMatrix.hpp \
149        ClpNonLinearCost.hpp \
150        ClpNode.hpp \
151        ClpObjective.hpp \
152        ClpPackedMatrix.hpp \
153        ClpPdcoBase.hpp \
154        ClpPlusMinusOneMatrix.hpp \
155        ClpParameters.hpp \
156        ClpPresolve.hpp \
157        ClpPrimalColumnDantzig.hpp \
158        ClpPrimalColumnPivot.hpp \
159        ClpPrimalColumnSteepest.hpp \
160        ClpQuadraticObjective.hpp \
161        ClpSimplex.hpp \
162        ClpSimplexNonlinear.hpp \
163        ClpSimplexOther.hpp \
164        ClpSimplexPrimal.hpp \
165        ClpSolve.hpp \
166        CbcOrClpParam.hpp \
167        Idiot.hpp
168
169# needed by Cbc
170includecoin_HEADERS += CbcOrClpParam.cpp
171
172#############################################################################
173# Create the Config.h file that always defines HAVE_CONFIG_H and install it #
174#############################################################################
175
176# You only need to adapt the following line
177ConfigHeader = ClpConfig.h
178
179install-exec-local:
180        echo "#ifndef HAVE_CONFIG_H" >bla
181        echo "#define HAVE_CONFIG_H" >>bla
182        echo "#endif" >> bla
183        cat $(srcdir)/$(ConfigHeader) >> bla
184        $(install_sh_DATA) bla $(DESTDIR)$(includecoindir)/$(ConfigHeader)
185        rm -f bla
186
187uninstall-local:
188        rm -f $(DESTDIR)$(includecoindir)/$(ConfigHeader)
Note: See TracBrowser for help on using the repository browser.