source: git/factory/Makefile.am @ 92ca34

fieker-DuValspielwiese
Last change on this file since 92ca34 was e73082, checked in by Hans Schoenemann <hannes@…>, 4 years ago
factory: factorize char 0, univariate (w/o FLINT, w/o NTL)
  • Property mode set to 100644
File size: 7.1 KB
Line 
1ACLOCAL_AMFLAGS = -I ../m4
2
3SUBDIRS=include/factory
4
5AM_CPPFLAGS = -I${builddir}/include -I${srcdir}/include -I${srcdir} \
6$(OMALLOC_INCLUDES) $(RESOURCES_INCLUDES) \
7$(FLINT_CFLAGS) $(NTL_CPPFLAGS) $(GMP_CPPFLAGS) $(SINGULAR_CFLAGS)
8
9lib_LTLIBRARIES = libfactory.la
10
11libfactory_la_LIBADD     =$(RESOURCES_LIBS) $(OMALLOC_LIBS) \
12$(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS)
13
14libfactory_la_LDFLAGS    = $(SINGULAR_LDFLAGS) -release ${PACKAGE_VERSION}
15
16# factory source files
17SOURCES = \
18                canonicalform.cc \
19                cf_algorithm.cc \
20                cf_char.cc \
21                cfCharSets.cc \
22                cfCharSetsUtil.cc \
23                cf_chinese.cc \
24                cf_cyclo.cc \
25                cf_eval.cc \
26                cfEzgcd.cc \
27                cf_factor.cc \
28                cf_factory.cc \
29                cf_gcd.cc \
30                cfGcdAlgExt.cc \
31                cfGcdUtil.cc \
32                cf_generator.cc \
33                cf_globals.cc \
34                cf_hnf.cc \
35                cf_inline.cc \
36                cf_irred.cc \
37                cf_iter.cc \
38                cf_iter_inline.cc \
39                cf_linsys.cc \
40                cf_map.cc \
41                cf_map_ext.cc \
42                cfModGcd.cc \
43                cfNewtonPolygon.cc \
44                cfNTLzzpEXGCD.cc \
45                cfModResultant.cc \
46                cf_ops.cc \
47                cf_primes.cc \
48                cf_random.cc \
49                cf_resultant.cc \
50                cf_reval.cc \
51                cfSubResGcd.cc \
52                cf_switches.cc \
53                cf_util.cc \
54                cfUnivarGcd.cc \
55                debug.cc \
56                DegreePattern.cc \
57                ExtensionInfo.cc \
58                facAbsBiFact.cc \
59                facAbsFact.cc \
60                facAlgExt.cc \
61                facAlgFunc.cc \
62                facAlgFuncUtil.cc \
63                facBivar.cc \
64                facFactorize.cc \
65                fac_sqrfree.cc \
66                fac_util.cc \
67                fac_berlekamp.cc \
68                fac_cantzass.cc \
69                fac_univar.cc \
70                facFqBivar.cc \
71                facFqBivarUtil.cc \
72                facFqFactorize.cc \
73                facFqFactorizeUtil.cc \
74                facFqSquarefree.cc \
75                facHensel.cc \
76                facIrredTest.cc \
77                facMul.cc \
78                facSparseHensel.cc \
79                ffops.cc \
80                FLINTconvert.cc \
81                gf_tabutil.cc \
82                gfops.cc \
83                imm.cc \
84                int_cf.cc \
85                int_int.cc \
86                int_intdiv.cc \
87                int_poly.cc \
88                int_rat.cc \
89                int_pp.cc \
90                variable.cc \
91                NTLconvert.cc \
92                singext.cc \
93                parseutil.cc \
94                ftmpl_inst.cc \
95                threadsupport.cc
96
97if WITH_PARSER_FOR_CANONICAL_FORM
98    SOURCES +=  readcf.yy
99endif
100
101libfactory_la_SOURCES = $(SOURCES)
102
103nodist_libfactory_la_SOURCES = factory.h factoryconf.h
104
105# factory header files
106factory_headers = \
107                si_log2.h \
108                cf_assert.h \
109                canonicalform.h \
110                cf_algorithm.h \
111                cfCharSets.h \
112                cfCharSetsUtil.h \
113                cf_cyclo.h \
114                cf_defs.h \
115                cf_eval.h \
116                cfEzgcd.h \
117                cf_factory.h \
118                cf_generator.h \
119                cf_globals.h \
120                cfGcdAlgExt.h \
121                cfGcdUtil.h \
122                cf_hnf.h \
123                cf_irred.h \
124                cf_iter.h \
125                cf_map.h \
126                cf_map_ext.h \
127                cfModGcd.h \
128                cfNewtonPolygon.h \
129                cfNTLzzpEXGCD.h \
130                cfModResultant.h \
131                cf_primes.h \
132                cf_primetab.h \
133                cf_random.h \
134                cf_reval.h \
135                cfSubResGcd.h \
136                cf_switches.h \
137                cf_util.h \
138                cfUnivarGcd.h \
139                debug.h \
140                DegreePattern.h \
141                ExtensionInfo.h \
142                facAbsBiFact.h \
143                facAbsFact.h \
144                facAlgExt.h \
145                facAlgFunc.h \
146                facAlgFuncUtil.h \
147                facBivar.h \
148                facFactorize.h \
149                fac_sqrfree.h \
150                fac_util.h \
151                fac_berlekamp.h \
152                fac_cantzass.h \
153                fac_univar.h \
154                facFqBivar.h \
155                facFqBivarUtil.h \
156                facFqFactorize.h \
157                facFqFactorizeUtil.h \
158                facFqSquarefree.h \
159                facHensel.h \
160                facIrredTest.h \
161                facMul.h \
162                facSparseHensel.h \
163                ffops.h \
164                FLINTconvert.h \
165                gf_tabutil.h \
166                gfops.h \
167                gmpext.h \
168                imm.h \
169                int_cf.h \
170                int_int.h \
171                int_poly.h \
172                int_rat.h \
173                int_pp.h \
174                timing.h \
175                variable.h \
176                NTLconvert.h \
177                singext.h \
178                parseutil.h
179
180noinst_HEADERS = $(factory_headers)
181
182libfactory_includedir = ${includedir}/factory
183
184nodist_libfactory_include_HEADERS = factory.h factoryconf.h
185libfactory_include_HEADERS = globaldefs.h si_log2.h
186
187
188####################################################
189# Documentation
190include $(srcdir)/aminclude.am
191
192####################################################
193# the precomputed GF(q)-tables
194
195gftablesdir=$(datadir)/factory/gftables
196dist_gftables_DATA = gftables/10201 gftables/1024 gftables/10609 gftables/11449 \
197gftables/11881 gftables/121 gftables/12167 gftables/125 gftables/12769 \
198gftables/128 gftables/1331 gftables/1369 gftables/14641 \
199gftables/15625 gftables/16 gftables/16129 gftables/16384 \
200gftables/16807 gftables/1681 gftables/169 gftables/17161 gftables/1849 \
201gftables/18769 gftables/19321 gftables/19683 gftables/2048 \
202gftables/2187 gftables/2197 gftables/2209 gftables/22201 \
203gftables/22801 gftables/2401 gftables/243 gftables/24389 \
204gftables/24649 gftables/25 gftables/256 gftables/26569 gftables/27 \
205gftables/27889 gftables/2809 gftables/28561 gftables/289 \
206gftables/29791 gftables/29929 gftables/3125 gftables/32 gftables/32041 \
207gftables/32761 gftables/32768 gftables/343 gftables/3481 gftables/361 \
208gftables/36481 gftables/3721 gftables/37249 gftables/38809 \
209gftables/39601 gftables/4 gftables/4096 gftables/44521 gftables/4489 \
210gftables/49 gftables/4913 gftables/49729 gftables/5041 \
211gftables/50653 gftables/512 gftables/51529 gftables/52441 gftables/529 \
212gftables/5329 gftables/54289 gftables/57121 gftables/58081 \
213gftables/59049 gftables/6241 gftables/625 gftables/63001 \
214gftables/64 gftables/6561 gftables/6859 gftables/6889 gftables/729 \
215gftables/7921 gftables/8 gftables/81 gftables/8192 gftables/841 \
216gftables/9 gftables/9409 gftables/961
217
218
219####################################################
220# Support for building GF(q)-tables
221#
222# gengftables needs libfactory.la and factory.h AND is needed for
223# generating gftable but the tables are not necessarily needed to
224# compile and use libfactory (though it will be a lot slower).
225
226EXTRA_PROGRAMS = gengftables
227gengftables_SOURCES = gengftables-conway.cc
228gengftables_LDADD = libfactory.la $(FLINT_LIBS) $(GMP_LIBS) $(NTL_LIBS)
229
230
231####################################################
232# These files listed below are not used anywhere but are included in
233# the distribution. So they will be tacked on to EXTRA_DIST.
234
235templatesrc =   templates/ftmpl_array.cc \
236                templates/ftmpl_afactor.cc \
237                templates/ftmpl_factor.cc \
238                templates/ftmpl_functions.h \
239                templates/ftmpl_list.cc \
240                templates/ftmpl_matrix.cc
241
242# header templates
243hdrtemplsrc =   factoryconf.template \
244                factory.template
245
246EXTRA_DIST =    test_install.cc \
247                $(templatesrc) $(hdrtemplsrc) \
248                doxygen.cfg \
249                examples/application.cc \
250                examples/factorize.cc examples/gcd.cc \
251                bin/folding.el bin/fold-docu.el \
252                bin/makeheader bin/gen-readcf readcf.yy \
253                make_factory_dist
254
255##################################################
256# autogenerated sources
257
258BUILT_SOURCES = factory.h factoryconf.h
259
260CLEANFILES = $(BUILT_SOURCES) include/factory/factory.h include/factory/factoryconf.h
261
262DISTCLEANFILES =  config.h readcf.cc
263
264#distclean-local:
265#       -rm -f readcf.cc
266
267factory.h factoryconf.h: config.status
268
269.template.h: $(factory_headers)
270        ${srcdir}/bin/makeheader $< $@
271        cp $@ include/factory/
272
273# factory/gfops.cc has the gftables path hardcoded in, so we create a
274# symlink. Remove this rule once gfopts.cc has been fixed. Note that
275# check-local would run in parallel with check, so we can't use it
276# here!
277all-local:
278        [ -d ${builddir}/gftables ] || ln -s ${srcdir}/gftables ${builddir}
279
280
281####################################################
282## Test program
283##
284
285TESTS = test
286
287check_PROGRAMS = $(TESTS)
288
289test_SOURCES = test.cc
290test_LDADD   = libfactory.la $(libfactory_la_LIBADD)
291
292####################################################
293## PKG config
294##
295
296pkgconfigdir = $(libdir)/pkgconfig
297pkgconfig_DATA = factory.pc
298
Note: See TracBrowser for help on using the repository browser.