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

Last change on this file since 994 was 994, checked in by andreasw, 13 years ago

reran autotools; added support for WSMP (--with-wsmp as configure option)

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