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