source: git/factory/Makefile.am @ 767da0

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