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 1404 2009-07-28 12:25:35Z tkr $ |
---|
6 | |
---|
7 | # Author: Andreas Waechter IBM 2006-04-13 |
---|
8 | |
---|
9 | AUTOMAKE_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 |
---|
17 | lib_LTLIBRARIES = libClp.la |
---|
18 | |
---|
19 | # List all source files for this library, including headers |
---|
20 | libClp_la_SOURCES = \ |
---|
21 | ClpConfig.h \ |
---|
22 | ClpCholeskyBase.cpp ClpCholeskyBase.hpp \ |
---|
23 | ClpCholeskyDense.cpp ClpCholeskyDense.hpp \ |
---|
24 | ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp \ |
---|
25 | ClpCholeskyMumps.cpp ClpCholeskyMumps.hpp \ |
---|
26 | ClpCholeskyWssmp.cpp ClpCholeskyWssmp.hpp \ |
---|
27 | ClpCholeskyWssmpKKT.cpp ClpCholeskyWssmpKKT.hpp \ |
---|
28 | ClpConstraint.cpp ClpConstraint.hpp \ |
---|
29 | ClpConstraintLinear.cpp ClpConstraintLinear.hpp \ |
---|
30 | ClpConstraintQuadratic.cpp ClpConstraintQuadratic.hpp \ |
---|
31 | Clp_C_Interface.cpp Clp_C_Interface.h \ |
---|
32 | ClpDualRowDantzig.cpp ClpDualRowDantzig.hpp \ |
---|
33 | ClpDualRowPivot.cpp ClpDualRowPivot.hpp \ |
---|
34 | ClpDualRowSteepest.cpp ClpDualRowSteepest.hpp \ |
---|
35 | ClpDummyMatrix.cpp ClpDummyMatrix.hpp \ |
---|
36 | ClpDynamicExampleMatrix.cpp ClpDynamicExampleMatrix.hpp \ |
---|
37 | ClpDynamicMatrix.cpp ClpDynamicMatrix.hpp \ |
---|
38 | ClpEventHandler.cpp ClpEventHandler.hpp \ |
---|
39 | ClpFactorization.cpp ClpFactorization.hpp \ |
---|
40 | ClpGubDynamicMatrix.cpp ClpGubDynamicMatrix.hpp \ |
---|
41 | ClpGubMatrix.cpp ClpGubMatrix.hpp \ |
---|
42 | ClpHelperFunctions.cpp ClpHelperFunctions.hpp \ |
---|
43 | ClpInterior.cpp ClpInterior.hpp \ |
---|
44 | ClpLinearObjective.cpp ClpLinearObjective.hpp \ |
---|
45 | ClpMatrixBase.cpp ClpMatrixBase.hpp \ |
---|
46 | ClpMessage.cpp ClpMessage.hpp \ |
---|
47 | ClpModel.cpp ClpModel.hpp \ |
---|
48 | ClpNetworkBasis.cpp ClpNetworkBasis.hpp \ |
---|
49 | ClpNetworkMatrix.cpp ClpNetworkMatrix.hpp \ |
---|
50 | ClpNonLinearCost.cpp ClpNonLinearCost.hpp \ |
---|
51 | ClpNode.cpp ClpNode.hpp \ |
---|
52 | ClpObjective.cpp ClpObjective.hpp \ |
---|
53 | ClpPackedMatrix.cpp ClpPackedMatrix.hpp \ |
---|
54 | ClpParameters.hpp \ |
---|
55 | ClpPlusMinusOneMatrix.cpp ClpPlusMinusOneMatrix.hpp \ |
---|
56 | ClpPredictorCorrector.cpp ClpPredictorCorrector.hpp \ |
---|
57 | ClpPdco.cpp ClpPdco.hpp \ |
---|
58 | ClpPdcoBase.cpp ClpPdcoBase.hpp \ |
---|
59 | ClpLsqr.cpp ClpLsqr.hpp \ |
---|
60 | ClpPresolve.cpp ClpPresolve.hpp \ |
---|
61 | ClpPrimalColumnDantzig.cpp ClpPrimalColumnDantzig.hpp \ |
---|
62 | ClpPrimalColumnPivot.cpp ClpPrimalColumnPivot.hpp \ |
---|
63 | ClpPrimalColumnSteepest.cpp ClpPrimalColumnSteepest.hpp \ |
---|
64 | ClpQuadraticObjective.cpp ClpQuadraticObjective.hpp \ |
---|
65 | ClpSimplex.cpp ClpSimplex.hpp \ |
---|
66 | ClpSimplexDual.cpp ClpSimplexDual.hpp \ |
---|
67 | ClpSimplexNonlinear.cpp ClpSimplexNonlinear.hpp \ |
---|
68 | ClpSimplexOther.cpp ClpSimplexOther.hpp \ |
---|
69 | ClpSimplexPrimal.cpp ClpSimplexPrimal.hpp \ |
---|
70 | ClpSolve.cpp ClpSolve.hpp \ |
---|
71 | Idiot.cpp Idiot.hpp \ |
---|
72 | IdiSolve.cpp |
---|
73 | |
---|
74 | # This is for libtool (on Windows) |
---|
75 | libClp_la_LDFLAGS = $(LT_LDFLAGS) |
---|
76 | |
---|
77 | ######################################################################## |
---|
78 | # clp program # |
---|
79 | ######################################################################## |
---|
80 | |
---|
81 | # Name of the executable compiled in this directory. We want it to be |
---|
82 | # installed in the 'bin' directory |
---|
83 | bin_PROGRAMS = clp |
---|
84 | |
---|
85 | # List all source files for this executable, including headers |
---|
86 | clp_SOURCES = \ |
---|
87 | ClpMain.cpp \ |
---|
88 | CbcOrClpParam.cpp CbcOrClpParam.hpp \ |
---|
89 | MyEventHandler.cpp MyEventHandler.hpp \ |
---|
90 | MyMessageHandler.cpp MyMessageHandler.hpp \ |
---|
91 | unitTest.cpp |
---|
92 | |
---|
93 | # List all additionally required COIN libraries |
---|
94 | clp_LDADD = libClp.la \ |
---|
95 | $(COINUTILSOBJDIR)/src/libCoinUtils.la |
---|
96 | |
---|
97 | # Here we add additional libraries |
---|
98 | LIBS += $(ADDLIBS) `cat $(COINUTILSOBJDIR)/coinutils_addlibs.txt` |
---|
99 | |
---|
100 | # Finally, the -rpath flag is used by libtool to make sure that the shared |
---|
101 | # library is found (in the lib install directory) when we are using dynamic |
---|
102 | # libraries. |
---|
103 | clp_LDFLAGS = -rpath $(libdir) |
---|
104 | |
---|
105 | ######################################################################## |
---|
106 | # Additional flags # |
---|
107 | ######################################################################## |
---|
108 | |
---|
109 | # Here list all include flags, relative to this "srcdir" directory. This |
---|
110 | # "cygpath" stuff is necessary to compile with native compilers on Windows. |
---|
111 | AM_CPPFLAGS = \ |
---|
112 | -I`$(CYGPATH_W) $(COINUTILSSRCDIR)/src` \ |
---|
113 | -I`$(CYGPATH_W) $(COINUTILSOBJDIR)/inc` |
---|
114 | |
---|
115 | # This line is necessary to allow VPATH compilation with MS compilers |
---|
116 | # on Cygwin |
---|
117 | DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc |
---|
118 | |
---|
119 | ######################################################################## |
---|
120 | # Headers that need to be installed # |
---|
121 | ######################################################################## |
---|
122 | |
---|
123 | # Here list all the header files that are required by a user of the library, |
---|
124 | # and that therefore should be installed in 'install/coin' |
---|
125 | includecoindir = $(includedir)/coin |
---|
126 | includecoin_HEADERS = \ |
---|
127 | ../inc/config_clp.h \ |
---|
128 | Clp_C_Interface.h \ |
---|
129 | ClpCholeskyBase.hpp \ |
---|
130 | ClpCholeskyDense.hpp \ |
---|
131 | ClpCholeskyWssmp.hpp \ |
---|
132 | ClpConstraint.hpp \ |
---|
133 | ClpConstraintLinear.hpp \ |
---|
134 | ClpConstraintQuadratic.hpp \ |
---|
135 | ClpDualRowDantzig.hpp \ |
---|
136 | ClpDualRowPivot.hpp \ |
---|
137 | ClpDualRowSteepest.hpp \ |
---|
138 | ClpDummyMatrix.hpp \ |
---|
139 | ClpDynamicExampleMatrix.hpp \ |
---|
140 | ClpDynamicMatrix.hpp \ |
---|
141 | ClpEventHandler.hpp \ |
---|
142 | ClpFactorization.hpp \ |
---|
143 | ClpGubDynamicMatrix.hpp \ |
---|
144 | ClpGubMatrix.hpp \ |
---|
145 | ClpInterior.hpp \ |
---|
146 | ClpLinearObjective.hpp \ |
---|
147 | ClpMatrixBase.hpp \ |
---|
148 | ClpMessage.hpp \ |
---|
149 | ClpModel.hpp \ |
---|
150 | ClpNetworkMatrix.hpp \ |
---|
151 | ClpNonLinearCost.hpp \ |
---|
152 | ClpNode.hpp \ |
---|
153 | ClpObjective.hpp \ |
---|
154 | ClpPackedMatrix.hpp \ |
---|
155 | ClpPdcoBase.hpp \ |
---|
156 | ClpPlusMinusOneMatrix.hpp \ |
---|
157 | ClpParameters.hpp \ |
---|
158 | ClpPresolve.hpp \ |
---|
159 | ClpPrimalColumnDantzig.hpp \ |
---|
160 | ClpPrimalColumnPivot.hpp \ |
---|
161 | ClpPrimalColumnSteepest.hpp \ |
---|
162 | ClpQuadraticObjective.hpp \ |
---|
163 | ClpSimplex.hpp \ |
---|
164 | ClpSimplexDual.hpp \ |
---|
165 | ClpSimplexNonlinear.hpp \ |
---|
166 | ClpSimplexOther.hpp \ |
---|
167 | ClpSimplexPrimal.hpp \ |
---|
168 | ClpSolve.hpp \ |
---|
169 | CbcOrClpParam.hpp \ |
---|
170 | CbcOrClpParam.cpp \ |
---|
171 | Idiot.hpp |
---|
172 | |
---|
173 | ############################################################################# |
---|
174 | # Create the Config.h file that always defines HAVE_CONFIG_H and install it # |
---|
175 | ############################################################################# |
---|
176 | |
---|
177 | # You only need to adapt the following line |
---|
178 | ConfigHeader = ClpConfig.h |
---|
179 | |
---|
180 | install-exec-local: |
---|
181 | echo "#ifndef HAVE_CONFIG_H" >bla |
---|
182 | echo "#define HAVE_CONFIG_H" >>bla |
---|
183 | echo "#endif" >> bla |
---|
184 | cat $(srcdir)/$(ConfigHeader) >> bla |
---|
185 | $(install_sh_DATA) bla $(DESTDIR)$(includecoindir)/$(ConfigHeader) |
---|
186 | rm -f bla |
---|
187 | |
---|
188 | uninstall-local: |
---|
189 | rm -f $(DESTDIR)$(includecoindir)/$(ConfigHeader) |
---|