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_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti ${CXXTEMPLFLAGS} |
---|
8 | libfactory_g_a_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${CXXTEMPLFLAGS} |
---|
9 | |
---|
10 | # factory source files |
---|
11 | SOURCES = \ |
---|
12 | canonicalform.cc \ |
---|
13 | cf_algorithm.cc \ |
---|
14 | cf_binom.cc \ |
---|
15 | cf_char.cc \ |
---|
16 | cf_chinese.cc \ |
---|
17 | cf_cyclo.cc \ |
---|
18 | cf_eval.cc \ |
---|
19 | cf_factor.cc \ |
---|
20 | cf_factory.cc \ |
---|
21 | cf_gcd.cc \ |
---|
22 | cf_gcd_smallp.cc \ |
---|
23 | cf_generator.cc \ |
---|
24 | cfGEval.cc \ |
---|
25 | cf_globals.cc \ |
---|
26 | cf_hnf.cc \ |
---|
27 | cf_inline.cc \ |
---|
28 | cf_irred.cc \ |
---|
29 | cf_iter.cc \ |
---|
30 | cf_iter_inline.cc \ |
---|
31 | cf_linsys.cc \ |
---|
32 | cf_map.cc \ |
---|
33 | cf_map_ext.cc \ |
---|
34 | cf_ops.cc \ |
---|
35 | cf_primes.cc \ |
---|
36 | cf_random.cc \ |
---|
37 | cf_resultant.cc \ |
---|
38 | cf_reval.cc \ |
---|
39 | cf_switches.cc \ |
---|
40 | cf_util.cc \ |
---|
41 | debug.cc \ |
---|
42 | DegreePattern.cc \ |
---|
43 | ExtensionInfo.cc \ |
---|
44 | facAlgExt.cc \ |
---|
45 | fac_berlekamp.cc \ |
---|
46 | fac_cantzass.cc \ |
---|
47 | fac_distrib.cc \ |
---|
48 | fac_ezgcd.cc \ |
---|
49 | fac_iterfor.cc \ |
---|
50 | fac_multihensel.cc \ |
---|
51 | fac_multivar.cc \ |
---|
52 | fac_sqrfree.cc \ |
---|
53 | fac_univar.cc \ |
---|
54 | fac_util.cc \ |
---|
55 | facFqBivar.cc \ |
---|
56 | facFqBivarUtil.cc \ |
---|
57 | facFqFactorize.cc \ |
---|
58 | facFqFactorizeUtil.cc \ |
---|
59 | facFqSquarefree.cc \ |
---|
60 | facHensel.cc \ |
---|
61 | facIrredTest.cc \ |
---|
62 | fieldGCD.cc \ |
---|
63 | ffops.cc \ |
---|
64 | ffreval.cc \ |
---|
65 | gf_tabutil.cc \ |
---|
66 | gfops.cc \ |
---|
67 | imm.cc \ |
---|
68 | int_cf.cc \ |
---|
69 | int_int.cc \ |
---|
70 | int_intdiv.cc \ |
---|
71 | int_poly.cc \ |
---|
72 | int_pp.cc \ |
---|
73 | int_rat.cc \ |
---|
74 | sm_sparsemod.cc \ |
---|
75 | sm_util.cc \ |
---|
76 | variable.cc \ |
---|
77 | NTLconvert.cc \ |
---|
78 | abs_fac.cc \ |
---|
79 | bifac.cc \ |
---|
80 | lgs.cc \ |
---|
81 | singext.cc \ |
---|
82 | parseutil.cc \ |
---|
83 | readcf.yy \ |
---|
84 | factory.h \ |
---|
85 | factoryconf.h \ |
---|
86 | ftmpl_inst.cc |
---|
87 | |
---|
88 | libfactory_a_SOURCES = $(SOURCES) |
---|
89 | libfactory_g_a_SOURCES = $(SOURCES) |
---|
90 | |
---|
91 | # factory header files |
---|
92 | factory_headers = \ |
---|
93 | cf_assert.h \ |
---|
94 | canonicalform.h \ |
---|
95 | cf_algorithm.h \ |
---|
96 | cf_binom.h \ |
---|
97 | cf_defs.h \ |
---|
98 | cf_eval.h \ |
---|
99 | cf_factory.h \ |
---|
100 | cf_generator.h \ |
---|
101 | cfGEval.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_primes.h \ |
---|
109 | cf_primetab.h \ |
---|
110 | cf_random.h \ |
---|
111 | cf_reval.h \ |
---|
112 | cf_switches.h \ |
---|
113 | cf_util.h \ |
---|
114 | debug.h \ |
---|
115 | DegreePattern.h \ |
---|
116 | ExtensionInfo.h \ |
---|
117 | facAlgExt.h \ |
---|
118 | fac_berlekamp.h \ |
---|
119 | fac_cantzass.h \ |
---|
120 | fac_distrib.h \ |
---|
121 | fac_iterfor.h \ |
---|
122 | fac_multivar.h \ |
---|
123 | fac_sqrfree.h \ |
---|
124 | fac_univar.h \ |
---|
125 | fac_util.h \ |
---|
126 | facFqBivar.h \ |
---|
127 | facFqBivarUtil.h \ |
---|
128 | facFqFactorize.h \ |
---|
129 | facFqFactorizeUtil.h \ |
---|
130 | facFqSquarefree.h \ |
---|
131 | facHensel.h \ |
---|
132 | facIrredTest.h \ |
---|
133 | fieldGCD.h \ |
---|
134 | ffops.h \ |
---|
135 | ffreval.h \ |
---|
136 | templates/ftmpl_list.h \ |
---|
137 | templates/ftmpl_matrix.h \ |
---|
138 | gf_tabutil.h \ |
---|
139 | gfops.h \ |
---|
140 | gmpext.h \ |
---|
141 | imm.h \ |
---|
142 | int_cf.h \ |
---|
143 | int_int.h \ |
---|
144 | int_poly.h \ |
---|
145 | int_pp.h \ |
---|
146 | int_rat.h \ |
---|
147 | sm_sparsemod.h \ |
---|
148 | sm_util.h \ |
---|
149 | timing.h \ |
---|
150 | variable.h \ |
---|
151 | NTLconvert.h \ |
---|
152 | bifac.h \ |
---|
153 | bifacConfig.h \ |
---|
154 | lgs.h \ |
---|
155 | algext.h \ |
---|
156 | singext.h |
---|
157 | |
---|
158 | noinst_HEADERS = $(factory_headers) |
---|
159 | |
---|
160 | # Documentation |
---|
161 | include $(top_srcdir)/aminclude.am |
---|
162 | |
---|
163 | doxysrc = $(SOURCES) parseutil.cc |
---|
164 | doxyincl = $(factory_headers) parseutil.h |
---|
165 | |
---|
166 | # doxygen targets |
---|
167 | doxy: factory.cfg $(doxysrc) $(doxyincl) |
---|
168 | doxygen $< |
---|
169 | |
---|
170 | doxyclean: |
---|
171 | rm -rf doxygen |
---|
172 | |
---|
173 | # Support for building GF(q)-tables |
---|
174 | |
---|
175 | templatesrc = \ |
---|
176 | ftmpl_array.cc \ |
---|
177 | ftmpl_factor.cc \ |
---|
178 | ftmpl_functions.h \ |
---|
179 | ftmpl_list.cc \ |
---|
180 | ftmpl_matrix.cc |
---|
181 | templateincl = \ |
---|
182 | ftmpl_array.h \ |
---|
183 | ftmpl_factor.h \ |
---|
184 | ftmpl_list.h \ |
---|
185 | ftmpl_matrix.h |
---|
186 | |
---|
187 | noinst_PROGRAMS = gengftables |
---|
188 | gengftables_LDADD = -L${builddir} -lfactory $(GMP_LIBS) $(NTL_LIBS) |
---|
189 | |
---|
190 | gengftables_SOURCES = gengftables-conway.cc ftmpl_inst.cc |
---|
191 | |
---|
192 | data_DATA = gftables |
---|
193 | |
---|
194 | gftables: gengftables |
---|
195 | @if test -r ${srcdir}/gftables; then \ |
---|
196 | cp -r ${srcdir}/gftables ${builddir}; \ |
---|
197 | else \ |
---|
198 | echo "This command will take quite a long time to execute;"; \ |
---|
199 | echo "maybe you want to get the tables directly via ftp (see"; \ |
---|
200 | echo "the INSTALL file)."; \ |
---|
201 | ${builddir}/gengftables; \ |
---|
202 | fi |
---|
203 | |
---|
204 | .template.h: |
---|
205 | ${srcdir}/bin/makeheader $< $@ |
---|
206 | |
---|
207 | BUILT_SOURCES = factory.h factoryconf.h |
---|
208 | |
---|
209 | # These files listed below are not used anywhere but are included in |
---|
210 | # the distribution. So they will be tacked on to EXTRA_DIST. |
---|
211 | |
---|
212 | # header templates |
---|
213 | hdrtemplsrc = \ |
---|
214 | factoryconf.template \ |
---|
215 | factory.template |
---|
216 | |
---|
217 | # FTE source files |
---|
218 | ftestsrc = \ |
---|
219 | ftest_io.cc \ |
---|
220 | ftest_util.cc \ |
---|
221 | ntl_util.cc |
---|
222 | |
---|
223 | # FTE header files |
---|
224 | ftestincl = \ |
---|
225 | ftest_io.h \ |
---|
226 | ftest_util.h \ |
---|
227 | ntl_util.h |
---|
228 | |
---|
229 | # FTE m4 source files (exported for `GNUmakefile' in `ftest/'). |
---|
230 | # The variable `$(ftestm4develsrc)' may be already initialized |
---|
231 | # from the development `GNUmakefile'. |
---|
232 | ftestm4src = $(ftestm4develsrc) \ |
---|
233 | commonden.m4 \ |
---|
234 | degree.m4 \ |
---|
235 | deriv.m4 \ |
---|
236 | divides.m4 \ |
---|
237 | divrem.m4 \ |
---|
238 | extgcd.m4 \ |
---|
239 | factorize.m4 \ |
---|
240 | fbinops.m4 \ |
---|
241 | feval.m4 \ |
---|
242 | gcd.m4 \ |
---|
243 | gcd.ntl.m4 \ |
---|
244 | insert.m4 \ |
---|
245 | norm.m4 \ |
---|
246 | resultant.m4 \ |
---|
247 | revert.m4 \ |
---|
248 | sqrfree.m4 \ |
---|
249 | size.m4 \ |
---|
250 | totaldegree.m4 |
---|
251 | |
---|
252 | # other files from the FTE |
---|
253 | ftestdistfiles = \ |
---|
254 | ftest_util.m4 |
---|
255 | |
---|
256 | EXTRA_DIST = gengftables.cc gengftables-conway.cc test_install.cc \ |
---|
257 | $(templatesrc) $(templateincl) $(hdrtemplsrc) \ |
---|
258 | $(ftestsrc) $(ftestincl) $(ftestm4src) $(ftestdistfiles) \ |
---|
259 | doxygen.cfg factory.cfg gen_cf_gmp.template \ |
---|
260 | examples/application.cc \ |
---|
261 | examples/factorize.cc examples/gcd.cc \ |
---|
262 | bin/folding.el bin/fold-docu.el \ |
---|
263 | bin/makeheader bin/gen-readcf readcf.cc gftables |
---|
264 | |
---|
265 | CLEANFILES = factory.h factoryconf.h |
---|