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

Last change on this file since 1525 was 1344, checked in by forrest, 11 years ago

changes to simplex and lots of stuff and start Mumps cholesky

  • 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 1344 2009-03-16 10:25:57Z mjs $
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        ClpCholeskyMumps.cpp ClpCholeskyMumps.hpp \
26        ClpCholeskyWssmp.cpp ClpCholeskyWssmp.hpp \
27        ClpCholeskyWssmpKKT.cpp ClpCholeskyWssmpKKT.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# This is for libtool (on Windows)
75libClp_la_LDFLAGS = $(LT_LDFLAGS)
76
77########################################################################
78#                            clp program                               #
79########################################################################
80
81# Name of the executable compiled in this directory.  We want it to be
82# installed in the 'bin' directory
83bin_PROGRAMS = clp
84
85# List all source files for this executable, including headers
86clp_SOURCES = \
87        ClpMain.cpp \
88        CbcOrClpParam.cpp CbcOrClpParam.hpp \
89        MyEventHandler.cpp MyEventHandler.hpp \
90        MyMessageHandler.cpp MyMessageHandler.hpp \
91        unitTest.cpp
92
93# List all additionally required COIN libraries
94clp_LDADD = libClp.la \
95        $(COINUTILSOBJDIR)/src/libCoinUtils.la
96
97# Here we add additional libraries
98LIBS += $(ADDLIBS) `cat $(COINUTILSOBJDIR)/coinutils_addlibs.txt`
99
100# Finally, the -rpath flag is used by libtool to make sure that the shared
101# library is found (in the lib install directory) when we are using dynamic
102# libraries.
103clp_LDFLAGS = -rpath $(libdir)
104
105########################################################################
106#                            Additional flags                          #
107########################################################################
108
109# Here list all include flags, relative to this "srcdir" directory.  This
110# "cygpath" stuff is necessary to compile with native compilers on Windows.
111AM_CPPFLAGS = \
112        -I`$(CYGPATH_W) $(COINUTILSSRCDIR)/src` \
113        -I`$(CYGPATH_W) $(COINUTILSOBJDIR)/inc`
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 'install/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#############################################################################
172# Create the Config.h file that always defines HAVE_CONFIG_H and install it #
173#############################################################################
174
175# You only need to adapt the following line
176ConfigHeader = ClpConfig.h
177
178install-exec-local:
179        echo "#ifndef HAVE_CONFIG_H" >bla
180        echo "#define HAVE_CONFIG_H" >>bla
181        echo "#endif" >> bla
182        cat $(srcdir)/$(ConfigHeader) >> bla
183        $(install_sh_DATA) bla $(DESTDIR)$(includecoindir)/$(ConfigHeader)
184        rm -f bla
185
186uninstall-local:
187        rm -f $(DESTDIR)$(includecoindir)/$(ConfigHeader)
Note: See TracBrowser for help on using the repository browser.