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

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

correct svn:keywords property for configure.ac and Makefile.am files

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