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

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

list Config.h file for distribution

  • Property svn:eol-style set to native
  • Property svn:keywords set to "Author Date Id Revision"
File size: 5.7 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 777 2006-05-22 23:46:17Z 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        ClpDualRowDantzig.hpp \
119        ClpDualRowPivot.hpp \
120        ClpDualRowSteepest.hpp \
121        ClpEventHandler.hpp \
122        ClpFactorization.hpp \
123        ClpInterior.hpp \
124        ClpLinearObjective.hpp \
125        ClpMatrixBase.hpp \
126        ClpMessage.hpp \
127        ClpModel.hpp \
128        ClpNetworkMatrix.hpp \
129        ClpNonLinearCost.hpp \
130        ClpObjective.hpp \
131        ClpPackedMatrix.hpp \
132        ClpPlusMinusOneMatrix.hpp \
133        ClpParameters.hpp \
134        ClpPresolve.hpp \
135        ClpPrimalColumnDantzig.hpp \
136        ClpPrimalColumnPivot.hpp \
137        ClpPrimalColumnSteepest.hpp \
138        ClpSimplex.hpp \
139        ClpSimplexNonlinear.hpp \
140        ClpSimplexOther.hpp \
141        ClpSimplexPrimal.hpp \
142        ClpSolve.hpp \
143        Idiot.hpp
144
145#############################################################################
146# Create the Config.h file that always defines HAVE_CONFIG_H and install it #
147#############################################################################
148
149# You only need to adapt the following line
150ConfigHeader = ClpConfig.h
151
152install-exec-local:
153        echo "#ifndef HAVE_CONFIG_H" >bla
154        echo "#define HAVE_CONFIG_H" >>bla
155        echo "#endif" >> bla
156        cat $(srcdir)/$(ConfigHeader) >> bla
157        $(install_sh_DATA) bla $(DESTDIR)$(includedir)/$(ConfigHeader)
158        rm -f bla
159
160uninstall-local:
161        rm -f $(DESTDIR)$(includedir)/$(ConfigHeader)
Note: See TracBrowser for help on using the repository browser.