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

Last change on this file since 1170 was 1170, checked in by forrest, 14 years ago

add ClpNode? to include

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