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

Last change on this file since 761 was 761, checked in by andreasw, 15 years ago

renamed CoinBase? to CoinUtils?

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