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