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

Last change on this file since 1156 was 1156, checked in by tkr, 12 years ago

Fixing problems with changes to installation location for addlibs.txt file

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