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

Last change on this file since 1304 was 1171, checked in by forrest, 12 years ago

put back pdco in case wanted

  • 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 1171 2008-03-04 16:31:56Z forrest $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
11########################################################################
12#                               libClp                                 #
13########################################################################
14
15# Name of the library compiled in this directory.  We want it to be installed
16# in the 'lib' directory
17lib_LTLIBRARIES = libClp.la
18
19# List all source files for this library, including headers
20libClp_la_SOURCES = \
21        ClpConfig.h \
22        ClpCholeskyBase.cpp ClpCholeskyBase.hpp \
23        ClpCholeskyDense.cpp ClpCholeskyDense.hpp \
24        ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp \
25        ClpConstraint.cpp ClpConstraint.hpp \
26        ClpConstraintLinear.cpp ClpConstraintLinear.hpp \
27        ClpConstraintQuadratic.cpp ClpConstraintQuadratic.hpp \
28        Clp_C_Interface.cpp Clp_C_Interface.h \
29        ClpDualRowDantzig.cpp ClpDualRowDantzig.hpp \
30        ClpDualRowPivot.cpp ClpDualRowPivot.hpp \
31        ClpDualRowSteepest.cpp ClpDualRowSteepest.hpp \
32        ClpDummyMatrix.cpp ClpDummyMatrix.hpp \
33        ClpDynamicExampleMatrix.cpp ClpDynamicExampleMatrix.hpp \
34        ClpDynamicMatrix.cpp ClpDynamicMatrix.hpp \
35        ClpEventHandler.cpp ClpEventHandler.hpp \
36        ClpFactorization.cpp ClpFactorization.hpp \
37        ClpGubDynamicMatrix.cpp ClpGubDynamicMatrix.hpp \
38        ClpGubMatrix.cpp ClpGubMatrix.hpp \
39        ClpHelperFunctions.cpp ClpHelperFunctions.hpp \
40        ClpInterior.cpp ClpInterior.hpp \
41        ClpLinearObjective.cpp ClpLinearObjective.hpp \
42        ClpMatrixBase.cpp ClpMatrixBase.hpp \
43        ClpMessage.cpp ClpMessage.hpp \
44        ClpModel.cpp ClpModel.hpp \
45        ClpNetworkBasis.cpp ClpNetworkBasis.hpp \
46        ClpNetworkMatrix.cpp ClpNetworkMatrix.hpp \
47        ClpNonLinearCost.cpp ClpNonLinearCost.hpp \
48        ClpNode.cpp ClpNode.hpp \
49        ClpObjective.cpp ClpObjective.hpp \
50        ClpPackedMatrix.cpp ClpPackedMatrix.hpp \
51        ClpParameters.hpp \
52        ClpPlusMinusOneMatrix.cpp ClpPlusMinusOneMatrix.hpp \
53        ClpPredictorCorrector.cpp ClpPredictorCorrector.hpp \
54        ClpPdco.cpp ClpPdco.hpp \
55        ClpPdcoBase.cpp ClpPdcoBase.hpp \
56        ClpLsqr.cpp ClpLsqr.hpp \
57        ClpPresolve.cpp ClpPresolve.hpp \
58        ClpPrimalColumnDantzig.cpp ClpPrimalColumnDantzig.hpp \
59        ClpPrimalColumnPivot.cpp ClpPrimalColumnPivot.hpp \
60        ClpPrimalColumnSteepest.cpp ClpPrimalColumnSteepest.hpp \
61        ClpQuadraticObjective.cpp ClpQuadraticObjective.hpp \
62        ClpSimplex.cpp ClpSimplex.hpp \
63        ClpSimplexDual.cpp ClpSimplexDual.hpp \
64        ClpSimplexNonlinear.cpp ClpSimplexNonlinear.hpp \
65        ClpSimplexOther.cpp ClpSimplexOther.hpp \
66        ClpSimplexPrimal.cpp ClpSimplexPrimal.hpp \
67        ClpSolve.cpp ClpSolve.hpp \
68        Idiot.cpp Idiot.hpp \
69        IdiSolve.cpp
70
71# This is for libtool (on Windows)
72libClp_la_LDFLAGS = $(LT_LDFLAGS)
73
74########################################################################
75#                            clp program                               #
76########################################################################
77
78# Name of the executable compiled in this directory.  We want it to be
79# installed in the 'bin' directory
80bin_PROGRAMS = clp
81
82# List all source files for this executable, including headers
83clp_SOURCES = \
84        ClpMain.cpp \
85        CbcOrClpParam.cpp CbcOrClpParam.hpp \
86        MyEventHandler.cpp MyEventHandler.hpp \
87        MyMessageHandler.cpp MyMessageHandler.hpp \
88        unitTest.cpp
89
90# List all additionally required COIN libraries
91clp_LDADD = libClp.la \
92        $(COINUTILSOBJDIR)/src/libCoinUtils.la
93
94# Here we add additional libraries
95LIBS += $(ADDLIBS) `cat $(COINUTILSOBJDIR)/coinutils_addlibs.txt`
96
97# Finally, the -rpath flag is used by libtool to make sure that the shared
98# library is found (in the lib install directory) when we are using dynamic
99# libraries.
100clp_LDFLAGS = -rpath $(libdir)
101
102########################################################################
103#                            Additional flags                          #
104########################################################################
105
106# Here list all include flags, relative to this "srcdir" directory.  This
107# "cygpath" stuff is necessary to compile with native compilers on Windows.
108AM_CPPFLAGS = \
109        -I`$(CYGPATH_W) $(COINUTILSSRCDIR)/src` \
110        -I`$(CYGPATH_W) $(COINUTILSOBJDIR)/inc`
111
112# This line is necessary to allow VPATH compilation with MS compilers
113# on Cygwin
114DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
115
116########################################################################
117#                Headers that need to be installed                     #
118########################################################################
119
120# Here list all the header files that are required by a user of the library,
121# and that therefore should be installed in 'install/coin'
122includecoindir = $(includedir)/coin
123includecoin_HEADERS = \
124        ../inc/config_clp.h \
125        Clp_C_Interface.h \
126        ClpCholeskyBase.hpp \
127        ClpCholeskyDense.hpp \
128        ClpCholeskyWssmp.hpp \
129        ClpConstraint.hpp \
130        ClpConstraintLinear.hpp \
131        ClpConstraintQuadratic.hpp \
132        ClpDualRowDantzig.hpp \
133        ClpDualRowPivot.hpp \
134        ClpDualRowSteepest.hpp \
135        ClpDummyMatrix.hpp \
136        ClpDynamicExampleMatrix.hpp \
137        ClpDynamicMatrix.hpp \
138        ClpEventHandler.hpp \
139        ClpFactorization.hpp \
140        ClpGubDynamicMatrix.hpp \
141        ClpGubMatrix.hpp \
142        ClpInterior.hpp \
143        ClpLinearObjective.hpp \
144        ClpMatrixBase.hpp \
145        ClpMessage.hpp \
146        ClpModel.hpp \
147        ClpNetworkMatrix.hpp \
148        ClpNonLinearCost.hpp \
149        ClpNode.hpp \
150        ClpObjective.hpp \
151        ClpPackedMatrix.hpp \
152        ClpPdcoBase.hpp \
153        ClpPlusMinusOneMatrix.hpp \
154        ClpParameters.hpp \
155        ClpPresolve.hpp \
156        ClpPrimalColumnDantzig.hpp \
157        ClpPrimalColumnPivot.hpp \
158        ClpPrimalColumnSteepest.hpp \
159        ClpQuadraticObjective.hpp \
160        ClpSimplex.hpp \
161        ClpSimplexNonlinear.hpp \
162        ClpSimplexOther.hpp \
163        ClpSimplexPrimal.hpp \
164        ClpSolve.hpp \
165        CbcOrClpParam.hpp \
166        Idiot.hpp
167
168#############################################################################
169# Create the Config.h file that always defines HAVE_CONFIG_H and install it #
170#############################################################################
171
172# You only need to adapt the following line
173ConfigHeader = ClpConfig.h
174
175install-exec-local:
176        echo "#ifndef HAVE_CONFIG_H" >bla
177        echo "#define HAVE_CONFIG_H" >>bla
178        echo "#endif" >> bla
179        cat $(srcdir)/$(ConfigHeader) >> bla
180        $(install_sh_DATA) bla $(DESTDIR)$(includecoindir)/$(ConfigHeader)
181        rm -f bla
182
183uninstall-local:
184        rm -f $(DESTDIR)$(includecoindir)/$(ConfigHeader)
Note: See TracBrowser for help on using the repository browser.