1 | CXXTEMPLFLAGS = -fno-implicit-templates --no-exceptions |
---|
2 | |
---|
3 | INCLUDES = -I${top_srcdir} -I${top_srcdir}/.. -I${top_builddir} -I${top_builddir}/.. -I${srcdir} ${GMP_CFLAGS} ${NTL_CFLAGS} |
---|
4 | |
---|
5 | lib_LIBRARIES = libfactory.a libfactory_g.a |
---|
6 | |
---|
7 | libfactory_a_includedir=$(includedir)/factory |
---|
8 | libfactory_g_a_includedir=$(includedir)/factory |
---|
9 | |
---|
10 | libfactory_a_libdir=$(libdir)/factory |
---|
11 | libfactory_g_a_libdir=$(libdir)/factory |
---|
12 | |
---|
13 | libfactory_a_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti ${CXXTEMPLFLAGS} |
---|
14 | libfactory_g_a_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${CXXTEMPLFLAGS} |
---|
15 | |
---|
16 | # factory source files |
---|
17 | SOURCES = \ |
---|
18 | canonicalform.cc \ |
---|
19 | cf_algorithm.cc \ |
---|
20 | cf_binom.cc \ |
---|
21 | cf_char.cc \ |
---|
22 | cf_chinese.cc \ |
---|
23 | cf_cyclo.cc \ |
---|
24 | cf_eval.cc \ |
---|
25 | cf_factor.cc \ |
---|
26 | cf_factory.cc \ |
---|
27 | cf_gcd.cc \ |
---|
28 | cf_gcd_smallp.cc \ |
---|
29 | cf_generator.cc \ |
---|
30 | cfGEval.cc \ |
---|
31 | cf_globals.cc \ |
---|
32 | cf_hnf.cc \ |
---|
33 | cf_inline.cc \ |
---|
34 | cf_irred.cc \ |
---|
35 | cf_iter.cc \ |
---|
36 | cf_iter_inline.cc \ |
---|
37 | cf_linsys.cc \ |
---|
38 | cf_map.cc \ |
---|
39 | cf_map_ext.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 | facAlgExt.cc \ |
---|
51 | fac_berlekamp.cc \ |
---|
52 | fac_cantzass.cc \ |
---|
53 | fac_distrib.cc \ |
---|
54 | fac_ezgcd.cc \ |
---|
55 | fac_iterfor.cc \ |
---|
56 | fac_multihensel.cc \ |
---|
57 | fac_multivar.cc \ |
---|
58 | fac_sqrfree.cc \ |
---|
59 | fac_univar.cc \ |
---|
60 | fac_util.cc \ |
---|
61 | facFqBivar.cc \ |
---|
62 | facFqBivarUtil.cc \ |
---|
63 | facFqFactorize.cc \ |
---|
64 | facFqFactorizeUtil.cc \ |
---|
65 | facFqSquarefree.cc \ |
---|
66 | facHensel.cc \ |
---|
67 | facIrredTest.cc \ |
---|
68 | fieldGCD.cc \ |
---|
69 | ffops.cc \ |
---|
70 | ffreval.cc \ |
---|
71 | gf_tabutil.cc \ |
---|
72 | gfops.cc \ |
---|
73 | imm.cc \ |
---|
74 | int_cf.cc \ |
---|
75 | int_int.cc \ |
---|
76 | int_intdiv.cc \ |
---|
77 | int_poly.cc \ |
---|
78 | int_pp.cc \ |
---|
79 | int_rat.cc \ |
---|
80 | sm_sparsemod.cc \ |
---|
81 | sm_util.cc \ |
---|
82 | variable.cc \ |
---|
83 | NTLconvert.cc \ |
---|
84 | abs_fac.cc \ |
---|
85 | bifac.cc \ |
---|
86 | lgs.cc \ |
---|
87 | singext.cc \ |
---|
88 | parseutil.cc \ |
---|
89 | readcf.yy \ |
---|
90 | factory.h \ |
---|
91 | factoryconf.h \ |
---|
92 | ftmpl_inst.cc |
---|
93 | |
---|
94 | libfactory_a_SOURCES = $(SOURCES) |
---|
95 | libfactory_g_a_SOURCES = $(SOURCES) |
---|
96 | |
---|
97 | # factory header files |
---|
98 | factory_headers = \ |
---|
99 | cf_assert.h \ |
---|
100 | canonicalform.h \ |
---|
101 | cf_algorithm.h \ |
---|
102 | cf_binom.h \ |
---|
103 | cf_defs.h \ |
---|
104 | cf_eval.h \ |
---|
105 | cf_factory.h \ |
---|
106 | cf_generator.h \ |
---|
107 | cfGEval.h \ |
---|
108 | cf_globals.h \ |
---|
109 | cf_gcd_smallp.h \ |
---|
110 | cf_hnf.h \ |
---|
111 | cf_irred.h \ |
---|
112 | cf_iter.h \ |
---|
113 | cf_map.h \ |
---|
114 | cf_primes.h \ |
---|
115 | cf_primetab.h \ |
---|
116 | cf_random.h \ |
---|
117 | cf_reval.h \ |
---|
118 | cf_switches.h \ |
---|
119 | cf_util.h \ |
---|
120 | debug.h \ |
---|
121 | DegreePattern.h \ |
---|
122 | ExtensionInfo.h \ |
---|
123 | facAlgExt.h \ |
---|
124 | fac_berlekamp.h \ |
---|
125 | fac_cantzass.h \ |
---|
126 | fac_distrib.h \ |
---|
127 | fac_iterfor.h \ |
---|
128 | fac_multivar.h \ |
---|
129 | fac_sqrfree.h \ |
---|
130 | fac_univar.h \ |
---|
131 | fac_util.h \ |
---|
132 | facFqBivar.h \ |
---|
133 | facFqBivarUtil.h \ |
---|
134 | facFqFactorize.h \ |
---|
135 | facFqFactorizeUtil.h \ |
---|
136 | facFqSquarefree.h \ |
---|
137 | facHensel.h \ |
---|
138 | facIrredTest.h \ |
---|
139 | fieldGCD.h \ |
---|
140 | ffops.h \ |
---|
141 | ffreval.h \ |
---|
142 | templates/ftmpl_list.h \ |
---|
143 | templates/ftmpl_matrix.h \ |
---|
144 | gf_tabutil.h \ |
---|
145 | gfops.h \ |
---|
146 | gmpext.h \ |
---|
147 | imm.h \ |
---|
148 | int_cf.h \ |
---|
149 | int_int.h \ |
---|
150 | int_poly.h \ |
---|
151 | int_pp.h \ |
---|
152 | int_rat.h \ |
---|
153 | sm_sparsemod.h \ |
---|
154 | sm_util.h \ |
---|
155 | timing.h \ |
---|
156 | variable.h \ |
---|
157 | NTLconvert.h \ |
---|
158 | bifac.h \ |
---|
159 | bifacConfig.h \ |
---|
160 | lgs.h \ |
---|
161 | algext.h \ |
---|
162 | singext.h |
---|
163 | |
---|
164 | noinst_HEADERS = $(factory_headers) |
---|
165 | |
---|
166 | # Documentation |
---|
167 | include $(top_srcdir)/aminclude.am |
---|
168 | |
---|
169 | doxysrc = $(SOURCES) parseutil.cc |
---|
170 | doxyincl = $(factory_headers) parseutil.h |
---|
171 | |
---|
172 | # doxygen targets |
---|
173 | doxy: factory.cfg $(doxysrc) $(doxyincl) |
---|
174 | doxygen $< |
---|
175 | |
---|
176 | doxyclean: |
---|
177 | rm -rf doxygen |
---|
178 | |
---|
179 | # Support for building GF(q)-tables |
---|
180 | |
---|
181 | templatesrc = \ |
---|
182 | ftmpl_array.cc \ |
---|
183 | ftmpl_factor.cc \ |
---|
184 | ftmpl_functions.h \ |
---|
185 | ftmpl_list.cc \ |
---|
186 | ftmpl_matrix.cc |
---|
187 | templateincl = \ |
---|
188 | ftmpl_array.h \ |
---|
189 | ftmpl_factor.h \ |
---|
190 | ftmpl_list.h \ |
---|
191 | ftmpl_matrix.h |
---|
192 | |
---|
193 | noinst_PROGRAMS = gengftables |
---|
194 | gengftables_LDADD = -L${builddir} -lfactory $(GMP_LIBS) $(NTL_LIBS) |
---|
195 | |
---|
196 | gengftables_SOURCES = gengftables-conway.cc |
---|
197 | |
---|
198 | gftablesdir=$(datadir)/gftables |
---|
199 | gftables_DATA = gftables/10201 gftables/1024 gftables/10609 gftables/11449 \ |
---|
200 | gftables/11881 gftables/121 gftables/12167 gftables/125 gftables/12769 \ |
---|
201 | gftables/128 gftables/1331 gftables/1369 gftables/14641 \ |
---|
202 | gftables/15625 gftables/16 gftables/16129 gftables/16384 \ |
---|
203 | gftables/16807 gftables/1681 gftables/169 gftables/17161 gftables/1849 \ |
---|
204 | gftables/18769 gftables/19321 gftables/19683 gftables/2048 \ |
---|
205 | gftables/2187 gftables/2197 gftables/2209 gftables/22201 \ |
---|
206 | gftables/22801 gftables/2401 gftables/243 gftables/24389 \ |
---|
207 | gftables/24649 gftables/25 gftables/256 gftables/26569 gftables/27 \ |
---|
208 | gftables/27889 gftables/2809 gftables/28561 gftables/289 \ |
---|
209 | gftables/29791 gftables/29929 gftables/3125 gftables/32 gftables/32041 \ |
---|
210 | gftables/32761 gftables/32768 gftables/343 gftables/3481 gftables/361 \ |
---|
211 | gftables/36481 gftables/3721 gftables/37249 gftables/38809 \ |
---|
212 | gftables/39601 gftables/4 gftables/4096 gftables/44521 gftables/4489 \ |
---|
213 | gftables/49 gftables/4913 gftables/49729 gftables/5041 \ |
---|
214 | gftables/50653 gftables/512 gftables/51529 gftables/52441 gftables/529 \ |
---|
215 | gftables/5329 gftables/54289 gftables/57121 gftables/58081 \ |
---|
216 | gftables/59049 gftables/6241 gftables/625 gftables/63001 \ |
---|
217 | gftables/64 gftables/6561 gftables/6859 gftables/6889 gftables/729 \ |
---|
218 | gftables/7921 gftables/8 gftables/81 gftables/8192 gftables/841 \ |
---|
219 | gftables/9 gftables/9409 gftables/961 |
---|
220 | |
---|
221 | |
---|
222 | |
---|
223 | gftables: gengftables |
---|
224 | @if test -x ${srcdir}/gftables; then \ |
---|
225 | if test ! -x ${builddir}/gftables; then \ |
---|
226 | ln -snf ${srcdir}/gftables ${builddir}; \ |
---|
227 | fi; \ |
---|
228 | else \ |
---|
229 | echo "This command will take quite a long time to execute;"; \ |
---|
230 | echo "maybe you want to get the tables directly via ftp (see"; \ |
---|
231 | echo "the INSTALL file)."; \ |
---|
232 | ${builddir}/gengftables; \ |
---|
233 | fi |
---|
234 | |
---|
235 | .template.h: |
---|
236 | ${srcdir}/bin/makeheader $< $@ |
---|
237 | |
---|
238 | BUILT_SOURCES = factory.h factoryconf.h |
---|
239 | |
---|
240 | libfactory_a_include_HEADERS=$(BUILT_SOURCES) |
---|
241 | libfactory_g_a_include_HEADERS=$(BUILT_SOURCES) |
---|
242 | |
---|
243 | # These files listed below are not used anywhere but are included in |
---|
244 | # the distribution. So they will be tacked on to EXTRA_DIST. |
---|
245 | |
---|
246 | # header templates |
---|
247 | hdrtemplsrc = \ |
---|
248 | factoryconf.template \ |
---|
249 | factory.template |
---|
250 | |
---|
251 | # FTE source files |
---|
252 | ftestsrc = \ |
---|
253 | ftest_io.cc \ |
---|
254 | ftest_util.cc \ |
---|
255 | ntl_util.cc |
---|
256 | |
---|
257 | # FTE header files |
---|
258 | ftestincl = \ |
---|
259 | ftest_io.h \ |
---|
260 | ftest_util.h \ |
---|
261 | ntl_util.h |
---|
262 | |
---|
263 | # FTE m4 source files (exported for `GNUmakefile' in `ftest/'). |
---|
264 | # The variable `$(ftestm4develsrc)' may be already initialized |
---|
265 | # from the development `GNUmakefile'. |
---|
266 | ftestm4src = $(ftestm4develsrc) \ |
---|
267 | commonden.m4 \ |
---|
268 | degree.m4 \ |
---|
269 | deriv.m4 \ |
---|
270 | divides.m4 \ |
---|
271 | divrem.m4 \ |
---|
272 | extgcd.m4 \ |
---|
273 | factorize.m4 \ |
---|
274 | fbinops.m4 \ |
---|
275 | feval.m4 \ |
---|
276 | gcd.m4 \ |
---|
277 | gcd.ntl.m4 \ |
---|
278 | insert.m4 \ |
---|
279 | norm.m4 \ |
---|
280 | resultant.m4 \ |
---|
281 | revert.m4 \ |
---|
282 | sqrfree.m4 \ |
---|
283 | size.m4 \ |
---|
284 | totaldegree.m4 |
---|
285 | |
---|
286 | # other files from the FTE |
---|
287 | ftestdistfiles = \ |
---|
288 | ftest_util.m4 |
---|
289 | |
---|
290 | EXTRA_DIST = gengftables.cc gengftables-conway.cc test_install.cc \ |
---|
291 | $(templatesrc) $(templateincl) $(hdrtemplsrc) \ |
---|
292 | $(ftestsrc) $(ftestincl) $(ftestm4src) $(ftestdistfiles) \ |
---|
293 | doxygen.cfg factory.cfg gen_cf_gmp.template \ |
---|
294 | examples/application.cc \ |
---|
295 | examples/factorize.cc examples/gcd.cc \ |
---|
296 | bin/folding.el bin/fold-docu.el \ |
---|
297 | bin/makeheader bin/gen-readcf readcf.cc $(gftables_DATA) |
---|
298 | |
---|
299 | CLEANFILES = factory.h factoryconf.h |
---|
300 | |
---|
301 | |
---|
302 | |
---|