Debian Codegraph @

src/groebner/Makefile.am

raw ◀ ▶
Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 # 4ti2 -- A software package for algebraic, geometric and combinatorial
2 # problems on linear spaces.
3 #
4 # Copyright (C) 2006 4ti2 team.
5 # Main author(s): Peter Malkin.
6 #
7 # This program is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License
9 # as published by the Free Software Foundation; either version 2
10 # of the License, or (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
21 bin_PROGRAMS =
22 bin_PROGRAMS += 4ti2int32 4ti2int64
23 if HAVE_GMP_WITH_CXX
24 bin_PROGRAMS += 4ti2gmp
25 endif
26
27 lib_LTLIBRARIES =
28 lib_LTLIBRARIES += lib4ti2int32.la lib4ti2int64.la
29 if HAVE_GMP_WITH_CXX
30 lib_LTLIBRARIES += lib4ti2gmp.la
31 endif
32
33 # Allow accessing groebner's header files as "groebner/HEADER.h"
34 AM_CXXFLAGS = -I$(srcdir)/..
35
36 # 4ti2 uses the glpk linear programming library (GLPK).
37 # Add include path to the file glpk.h if necessary.
38 AM_CXXFLAGS += $(GLPK_CFLAGS)
39 # Add library include path for the library libglpk if necessary.
40 LIBS += $(GLPK_LIBS)
41
42 if HAVE_GMP_WITH_CXX
43 # All of our libraries need this because of the common interface,
44 # which allows conversion from GMP integers.
45 LIBS += $(GMP_LIBS)
46 AM_CXXFLAGS += $(GMP_CFLAGS)
47 endif
48
49 # 4ti2 needs the next option to access maximum values of integer types.
50 AM_CXXFLAGS += -D__STDC_LIMIT_MACROS
51 # The optimisation flags.
52 AM_CXXFLAGS += -DNDEBUG
53 # Uncomment the next line for debugging.
54 #AM_CXXFLAGS += -g
55 # Uncomment the next line for profiling.
56 #AM_CXXFLAGS += -pg
57
58 lib4ti2sources = \
59 4ti2API.cpp \
60 Algorithm.cpp \
61 BasicCompletion.cpp \
62 BasicGeneration.cpp \
63 BasicOptions.cpp \
64 BasicReduction.cpp \
65 BinomialArray.cpp \
66 BinomialArrayStream.cpp \
67 BinomialCollection.cpp \
68 Binomial.cpp \
69 BinomialFactory.cpp \
70 BinomialSet.cpp \
71 BinomialSetStream.cpp \
72 BinomialStream.cpp \
73 BitSetStream.cpp \
74 Bounded.cpp \
75 CircuitsAPI.cpp \
76 CircuitOptions.cpp \
77 Completion.cpp \
78 DiagonalAlgorithm.cpp \
79 EliminateAlgorithm.cpp \
80 Euclidean.cpp \
81 Extract.cpp \
82 Feasible.cpp \
83 FeasibleStream.cpp \
84 FilterReduction.cpp \
85 FlipCompletion.cpp \
86 GeneratingSet.cpp \
87 Globals.cpp \
88 GroebnerBasis.cpp \
89 HermiteAlgorithm.cpp \
90 HybridGenSet.cpp \
91 LatticeBasis.cpp \
92 LongDenseIndexSet.cpp \
93 LongDenseIndexSetStream.cpp \
94 Markov.cpp \
95 MaxMinGenSet.cpp \
96 Minimize.cpp \
97 MinimizeOptions.cpp \
98 OnesReduction.cpp \
99 Optimise.cpp \
100 Options.cpp \
101 OrderedCompletion.cpp \
102 ProjectLiftGenSet.cpp \
103 QSolveAlgorithm.cpp \
104 QSolveAPI.cpp \
105 RayAlgorithm.cpp \
106 RaysAPI.cpp \
107 SaturationGenSet.cpp \
108 ShortDenseIndexSet.cpp \
109 ShortDenseIndexSetStream.cpp \
110 Statistics.cpp \
111 SyzygyCompletion.cpp \
112 SyzygyGeneration.cpp \
113 Timer.cpp \
114 Truncated.cpp \
115 VectorArray.cpp \
116 VectorArrayAPI.cpp \
117 VectorArrayStream.cpp \
118 Vector.cpp \
119 VectorStream.cpp \
120 WalkAlgorithm.cpp \
121 WalkOptions.cpp \
122 WeightAlgorithm.cpp \
123 WeightedBinomialSet.cpp \
124 WeightedReduction.cpp
125
126 groebnerincludedir=$(includedir)/groebner
127
128 groebnerinclude_HEADERS = \
129 Algorithm.h \
130 BasicCompletion.h \
131 BasicGeneration.h \
132 BasicOptions.h \
133 BasicReduction.h \
134 BinomialArray.h \
135 BinomialArrayStream.h \
136 BinomialCollection.h \
137 BinomialFactory.h \
138 Binomial.h \
139 BinomialSet.h \
140 BinomialSetStream.h \
141 BinomialStream.h \
142 BitSet.h \
143 BitSetStream.h \
144 Bounded.h \
145 CircuitsAPI.h \
146 CircuitOptions.h \
147 CircuitImplementation.h \
148 CircuitMatrixAlgorithm.h \
149 CircuitSupportAlgorithm.h \
150 Completion.h \
151 DataType.h \
152 Debug.h \
153 DiagonalAlgorithm.h \
154 EliminateAlgorithm.h \
155 Euclidean.h \
156 Extract.h \
157 Feasible.h \
158 FeasibleStream.h \
159 Filter.h \
160 FilterReduction.h \
161 FlipCompletion.h \
162 GeneratingSet.h \
163 Generation.h \
164 Globals.h \
165 Grading.h \
166 GroebnerBasis.h \
167 HermiteAlgorithm.h \
168 HybridGenSet.h \
169 IndexBinomialSet.h \
170 Index.h \
171 IndexSetConverter.h \
172 LatticeBasis.h \
173 LongDenseIndexSet.h \
174 LongDenseIndexSetStream.h \
175 Markov.h \
176 MaxMinGenSet.h \
177 Minimize.h \
178 MinimizeOptions.h \
179 OnesReduction.h \
180 OnesTree.h \
181 Optimise.h \
182 Options.h \
183 OrderedCompletion.h \
184 Permutation.h \
185 ProjectLiftGenSet.h \
186 QSolveAlgorithm.h \
187 QSolveConsOrder.h \
188 QSolveVariant.h \
189 QSolveAPI.h \
190 RayImplementation.h \
191 RayMatrixAlgorithm.h \
192 RayAlgorithm.h \
193 RaysAPI.h \
194 RaySupportAlgorithm.h \
195 Reduction.h \
196 SaturationGenSet.h \
197 ShortDenseIndexSet.h \
198 ShortDenseIndexSetStream.h \
199 SignPattern.h \
200 Size.h \
201 Statistics.h \
202 SupportTree.h \
203 SyzygyCompletion.h \
204 SyzygyGeneration.h \
205 TermOrder.h \
206 Timer.h \
207 Truncate.h \
208 VectorArray.h \
209 VectorArrayAPI.h \
210 VectorArrayStream.h \
211 Vector.h \
212 VectorStream.h \
213 WalkAlgorithm.h \
214 WalkOptions.h \
215 WeightAlgorithm.h \
216 WeightedBinomialSet.h \
217 WeightedReduction.h \
218 Weight.h
219
220 # These files are C++ files #include'd in one of the above headers
221 groebnerinclude_HEADERS += \
222 CircuitImplementation.tpp \
223 CircuitMatrixAlgorithm.tpp \
224 CircuitSupportAlgorithm.tpp \
225 DiagonalAlgorithm.tpp \
226 HermiteAlgorithm.tpp \
227 OnesTree.tpp \
228 RayImplementation.tpp \
229 RayMatrixAlgorithm.tpp \
230 RaySupportAlgorithm.tpp \
231 SupportTree.tpp
232
233 4ti2sources = \
234 circuits_main.cpp \
235 groebner_main.cpp \
236 markov_main.cpp \
237 minimize_main.cpp \
238 normalform_main.cpp \
239 qsolve_main.cpp \
240 rays_main.cpp \
241 walk_main.cpp \
242 zbasis_main.cpp \
243 main.cpp
244
245 # These headers are not installed
246 noinst_HEADERS = \
247 circuits_main.h \
248 groebner_main.h \
249 markov_main.h \
250 minimize_main.h \
251 normalform_main.h \
252 qsolve_main.h \
253 rays_main.h \
254 walk_main.h \
255 zbasis_main.h
256
257 WRAPPERSCRIPTS = \
258 circuits \
259 groebner \
260 markov \
261 minimize \
262 normalform \
263 qsolve \
264 rays \
265 walk \
266 zbasis
267
268 nodist_bin_SCRIPTS = $(WRAPPERSCRIPTS)
269 DISTCLEANFILES = $(WRAPPERSCRIPTS)
270
271 AM_LDFLAGS = -L../4ti2 -R$(libdir) -l4ti2common -no-undefined
272
273 # 16 bit precision flags.
274 # 4ti2int16_LDADD = lib4ti2int16.la
275 # 4ti2int16_CPPFLAGS = -D_4ti2_INT16_
276 # 4ti2int16_SOURCES = $(4ti2sources)
277 # lib4ti2int16_la_CPPFLAGS = -D_4ti2_INT16_
278 # lib4ti2int16_la_SOURCES = $(lib4ti2sources)
279
280 # 32 bit precision flags.
281 4ti2int32_LDADD = lib4ti2int32.la
282 4ti2int32_CPPFLAGS = -D_4ti2_INT32_
283 4ti2int32_CXXFLAGS = $(TRAPV) $(AM_CXXFLAGS)
284 4ti2int32_SOURCES = $(4ti2sources)
285 lib4ti2int32_la_CPPFLAGS = -D_4ti2_INT32_
286 lib4ti2int32_la_CXXFLAGS = $(TRAPV) $(AM_CXXFLAGS)
287 lib4ti2int32_la_SOURCES = $(lib4ti2sources)
288
289 # 64 bit precision flags.
290 4ti2int64_LDADD = lib4ti2int64.la
291 4ti2int64_CPPFLAGS = -D_4ti2_INT64_
292 4ti2int64_CXXFLAGS = $(TRAPV) $(AM_CXXFLAGS)
293 4ti2int64_SOURCES = $(4ti2sources)
294 lib4ti2int64_la_CPPFLAGS = -D_4ti2_INT64_
295 lib4ti2int64_la_CXXFLAGS = $(TRAPV) $(AM_CXXFLAGS)
296 lib4ti2int64_la_SOURCES = $(lib4ti2sources)
297
298 # Arbitrary precision flags.
299 # 4ti2 uses GMP (GLPL), an arbitrary precision arithmetic library.
300 if HAVE_GMP_WITH_CXX
301 4ti2gmp_LDADD = lib4ti2gmp.la
302 4ti2gmp_CPPFLAGS = -D_4ti2_GMP_ $(GMP_CFLAGS)
303 4ti2gmp_SOURCES = $(4ti2sources)
304 lib4ti2gmp_la_CPPFLAGS = -D_4ti2_GMP_
305 lib4ti2gmp_la_CPPFLAGS += $(GMP_CFLAGS)
306 lib4ti2gmp_la_SOURCES = $(lib4ti2sources)
307 endif
308
309 $(WRAPPERSCRIPTS): script.template
310 $(install_sh_SCRIPT) $< $@