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

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

use AM_CPPFLAGS

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.8 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 790 2006-06-03 03:20:11Z 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.
101AM_CPPFLAGS = \
102        -I`$(CYGPATH_W) $(COINUTILSSRCDIR)/src`
103
104# This line is necessary to allow VPATH compilation with MS compilers
105# on Cygwin
106DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
107
108########################################################################
109#                Headers that need to be installed                     #
110########################################################################
111
112# Here list all the header files that are required by a user of the library,
113# and that therefore should be installed in 'install'
114include_HEADERS = \
115        ../inc/config_clp.h \
116        Clp_C_Interface.h \
117        ClpCholeskyBase.hpp \
118        ClpCholeskyDense.hpp \
119        ClpCholeskyWssmp.hpp \
120        ClpDualRowDantzig.hpp \
121        ClpDualRowPivot.hpp \
122        ClpDualRowSteepest.hpp \
123        ClpDynamicExampleMatrix.hpp \
124        ClpDynamicMatrix.hpp \
125        ClpEventHandler.hpp \
126        ClpFactorization.hpp \
127        ClpGubDynamicMatrix.hpp \
128        ClpGubMatrix.hpp \
129        ClpInterior.hpp \
130        ClpLinearObjective.hpp \
131        ClpMatrixBase.hpp \
132        ClpMessage.hpp \
133        ClpModel.hpp \
134        ClpNetworkMatrix.hpp \
135        ClpNonLinearCost.hpp \
136        ClpObjective.hpp \
137        ClpPackedMatrix.hpp \
138        ClpPlusMinusOneMatrix.hpp \
139        ClpParameters.hpp \
140        ClpPresolve.hpp \
141        ClpPrimalColumnDantzig.hpp \
142        ClpPrimalColumnPivot.hpp \
143        ClpPrimalColumnSteepest.hpp \
144        ClpQuadraticObjective.hpp \
145        ClpSimplex.hpp \
146        ClpSimplexNonlinear.hpp \
147        ClpSimplexOther.hpp \
148        ClpSimplexPrimal.hpp \
149        ClpSolve.hpp \
150        Idiot.hpp
151
152#############################################################################
153# Create the Config.h file that always defines HAVE_CONFIG_H and install it #
154#############################################################################
155
156# You only need to adapt the following line
157ConfigHeader = ClpConfig.h
158
159install-exec-local:
160        echo "#ifndef HAVE_CONFIG_H" >bla
161        echo "#define HAVE_CONFIG_H" >>bla
162        echo "#endif" >> bla
163        cat $(srcdir)/$(ConfigHeader) >> bla
164        $(install_sh_DATA) bla $(DESTDIR)$(includedir)/$(ConfigHeader)
165        rm -f bla
166
167uninstall-local:
168        rm -f $(DESTDIR)$(includedir)/$(ConfigHeader)
Note: See TracBrowser for help on using the repository browser.