source: git/factory/Makefile.am @ 91788c0

spielwiese
Last change on this file since 91788c0 was 91788c0, checked in by Martin Lee <martinlee84@…>, 12 years ago
add: code for sparse heuristic lifting a la Lucks/Wang moved: code for other sparse heuristic to facSparseHensel rm: unused function leadingCoeffReconstruction from facFqFactorize.cc
  • Property mode set to 100644
File size: 8.7 KB
Line 
1ACLOCAL_AMFLAGS = -I ../m4
2
3CXXTEMPLFLAGS      =  --no-exceptions ## -fno-implicit-templates
4
5AM_CPPFLAGS = -I${top_srcdir} -I${top_srcdir}/.. -I${top_builddir} -I${top_builddir}/.. -I${srcdir} ${GMP_CFLAGS} ${NTL_CFLAGS}
6
7lib_LTLIBRARIES = libfactory.la libfactory_g.la
8
9libfactory_la_libdir = $(libdir)
10libfactory_g_la_libdir = $(libdir)
11
12libfactory_la_CXXFLAGS   = -O3 -fomit-frame-pointer --no-rtti ${CXXTEMPLFLAGS}
13libfactory_g_la_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${CXXTEMPLFLAGS}
14
15# factory source files
16SOURCES = \
17                algext.cc \
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                cf_globals.cc \
31                cf_hnf.cc \
32                cf_inline.cc \
33                cf_irred.cc \
34                cf_iter.cc \
35                cf_iter_inline.cc \
36                cf_linsys.cc \
37                cf_map.cc \
38                cf_map_ext.cc \
39                cfNewtonPolygon.cc \
40                cfModResultant.cc \
41                cf_ops.cc \
42                cf_primes.cc \
43                cf_random.cc \
44                cf_resultant.cc \
45                cf_reval.cc \
46                cf_switches.cc \
47                cf_util.cc \
48                debug.cc \
49                DegreePattern.cc \
50                ExtensionInfo.cc \
51                facAlgExt.cc \
52                facBivar.cc \
53                fac_berlekamp.cc \
54                fac_cantzass.cc \
55                fac_distrib.cc \
56                fac_ezgcd.cc \
57                facFactorize.cc \
58                fac_iterfor.cc \
59                fac_multihensel.cc \
60                fac_multivar.cc \
61                fac_sqrfree.cc \
62                fac_univar.cc \
63                fac_util.cc \
64                facFqBivar.cc \
65                facFqBivarUtil.cc \
66                facFqFactorize.cc \
67                facFqFactorizeUtil.cc \
68                facFqSquarefree.cc \
69                facHensel.cc \
70                facIrredTest.cc \
71                facSparseHensel.cc \
72                fieldGCD.cc \
73                ffops.cc \
74                gf_tabutil.cc \
75                gfops.cc \
76                imm.cc \
77                int_cf.cc \
78                int_int.cc \
79                int_intdiv.cc \
80                int_poly.cc \
81                int_pp.cc \
82                int_rat.cc \
83                sm_sparsemod.cc \
84                sm_util.cc \
85                variable.cc \
86                NTLconvert.cc \
87                abs_fac.cc \
88                bifac.cc \
89                lgs.cc \
90                singext.cc \
91                parseutil.cc \
92                ftmpl_inst.cc
93
94if WITH_PARSER_FOR_CANONICAL_FORM
95    SOURCES +=  readcf.yy
96endif
97
98libfactory_la_SOURCES = $(SOURCES)
99libfactory_g_la_SOURCES = $(SOURCES)
100
101libfactory_la_CPPFLAGS  = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DOM_NDEBUG -DNDEBUG
102libfactory_g_la_CPPFLAGS= ${AM_CPPFLAGS} -DHAVE_CONFIG_H
103
104nodist_libfactory_la_SOURCES = cplusplus.h factory.h factoryconf.h
105nodist_libfactory_g_la_SOURCES = cplusplus.h factory.h factoryconf.h
106
107
108# factory header files
109factory_headers = \
110                cf_assert.h \
111                canonicalform.h \
112                cf_algorithm.h \
113                cf_cyclo.h \
114                cf_binom.h \
115                cf_defs.h \
116                cf_eval.h \
117                cf_factory.h \
118                cf_generator.h \
119                cf_globals.h \
120                cf_gcd_smallp.h \
121                cf_hnf.h \
122                cf_irred.h \
123                cf_iter.h \
124                cf_map.h \
125                cf_map_ext.h \
126                cfNewtonPolygon.h \
127                cfModResultant.h \
128                cf_primes.h \
129                cf_primetab.h \
130                cf_random.h \
131                cf_reval.h \
132                cf_switches.h \
133                cf_util.h \
134                debug.h \
135                DegreePattern.h \
136                ExtensionInfo.h \
137                facAlgExt.h \
138                facBivar.h \
139                fac_berlekamp.h \
140                fac_cantzass.h \
141                fac_distrib.h \
142                facFactorize.h \
143                fac_iterfor.h \
144                fac_multivar.h \
145                fac_sqrfree.h \
146                fac_univar.h \
147                fac_util.h \
148                facFqBivar.h \
149                facFqBivarUtil.h \
150                facFqFactorize.h \
151                facFqFactorizeUtil.h \
152                facFqSquarefree.h \
153                facHensel.h \
154                facIrredTest.h \
155                facSparseHensel.h \
156                fieldGCD.h \
157                ffops.h \
158                gf_tabutil.h \
159                gfops.h \
160                gmpext.h \
161                imm.h \
162                int_cf.h \
163                int_int.h \
164                int_poly.h \
165                int_pp.h \
166                int_rat.h \
167                sm_sparsemod.h \
168                sm_util.h \
169                timing.h \
170                variable.h \
171                NTLconvert.h \
172                bifac.h \
173                bifacConfig.h \
174                lgs.h \
175                algext.h \
176                singext.h \
177                parseutil.h
178
179noinst_HEADERS = $(factory_headers)
180
181libfactory_includedir=$(includedir)/factory
182
183nobase_libfactory_include_HEADERS = \
184    cf_gmp.h $(templateincl)
185
186nodist_libfactory_include_HEADERS = cplusplus.h factory.h factoryconf.h
187
188
189####################################################
190# Documentation
191include $(top_srcdir)/aminclude.am
192
193doxysrc = $(SOURCES) parseutil.cc
194doxyincl = $(factory_headers) parseutil.h
195
196# doxygen targets
197doxy:           factory.cfg $(doxysrc) $(doxyincl)
198                doxygen $<
199
200doxyclean:
201                rm -rf doxygen
202
203####################################################
204# the precomputed GF(q)-tables
205
206gftablesdir=$(datadir)/gftables
207dist_gftables_DATA = gftables/10201 gftables/1024 gftables/10609 gftables/11449 \
208gftables/11881 gftables/121 gftables/12167 gftables/125 gftables/12769 \
209gftables/128 gftables/1331 gftables/1369 gftables/14641 \
210gftables/15625 gftables/16 gftables/16129 gftables/16384 \
211gftables/16807 gftables/1681 gftables/169 gftables/17161 gftables/1849 \
212gftables/18769 gftables/19321 gftables/19683 gftables/2048 \
213gftables/2187 gftables/2197 gftables/2209 gftables/22201 \
214gftables/22801 gftables/2401 gftables/243 gftables/24389 \
215gftables/24649 gftables/25 gftables/256 gftables/26569 gftables/27 \
216gftables/27889 gftables/2809 gftables/28561 gftables/289 \
217gftables/29791 gftables/29929 gftables/3125 gftables/32 gftables/32041 \
218gftables/32761 gftables/32768 gftables/343 gftables/3481 gftables/361 \
219gftables/36481 gftables/3721 gftables/37249 gftables/38809 \
220gftables/39601 gftables/4 gftables/4096 gftables/44521 gftables/4489 \
221gftables/49 gftables/4913 gftables/49729 gftables/5041 \
222gftables/50653 gftables/512 gftables/51529 gftables/52441 gftables/529 \
223gftables/5329 gftables/54289 gftables/57121 gftables/58081 \
224gftables/59049 gftables/6241 gftables/625 gftables/63001 \
225gftables/64 gftables/6561 gftables/6859 gftables/6889 gftables/729 \
226gftables/7921 gftables/8 gftables/81 gftables/8192 gftables/841 \
227gftables/9 gftables/9409 gftables/961
228
229
230####################################################
231# Support for building GF(q)-tables
232#
233# gengftables needs libfactory.la and factory.h AND is needed for
234# generating gftable but the tables are not necessarily needed to
235# compile and use libfactory (though it will be a lot slower).
236
237EXTRA_PROGRAMS = gengftables
238gengftables_SOURCES = gengftables-conway.cc
239gengftables_LDADD = -L${builddir} -lfactory $(GMP_LIBS) $(NTL_LIBS)
240
241
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
246templatesrc =   templates/ftmpl_array.cc \
247                templates/ftmpl_factor.cc \
248                templates/ftmpl_functions.h \
249                templates/ftmpl_list.cc \
250                templates/ftmpl_matrix.cc
251
252templateincl =  templates/ftmpl_array.h \
253                templates/ftmpl_factor.h \
254                templates/ftmpl_list.h \
255                templates/ftmpl_matrix.h
256
257# header templates
258hdrtemplsrc =   factoryconf.template \
259                factory.template
260
261# FTE source files
262ftestsrc =      ftest/ftest_io.cc \
263                ftest/ftest_util.cc \
264                ftest/ntl_util.cc
265
266# FTE header files
267ftestincl =     ftest/ftest_io.h \
268                ftest/ftest_util.h \
269                ftest/ntl_util.h
270
271ftestm4src =    ftest/commonden.m4 \
272                ftest/degree.m4 \
273                ftest/deriv.m4 \
274                ftest/divides.m4 \
275                ftest/divrem.m4 \
276                ftest/extgcd.m4 \
277                ftest/factorize.m4 \
278                ftest/fbinops.m4 \
279                ftest/feval.m4 \
280                ftest/gcd.m4 \
281                ftest/gcd.ntl.m4 \
282                ftest/insert.m4 \
283                ftest/norm.m4 \
284                ftest/resultant.m4 \
285                ftest/revert.m4 \
286                ftest/sqrfree.m4 \
287                ftest/size.m4 \
288                ftest/totaldegree.m4
289
290ftestdistfiles = \
291                ftest/ftest_util.m4
292
293EXTRA_DIST =    test_install.cc \
294                $(templatesrc) $(hdrtemplsrc) \
295                $(ftestsrc) $(ftestincl) $(ftestm4src) $(ftestdistfiles) \
296                doxygen.cfg factory.cfg \
297                examples/application.cc \
298                examples/factorize.cc examples/gcd.cc \
299                bin/folding.el bin/fold-docu.el \
300                bin/makeheader bin/gen-readcf readcf.yy
301
302##################################################
303# autogenerated sources
304
305noinst_PROGRAMS = cplusplus
306
307BUILT_SOURCES = cplusplus.h factory.h factoryconf.h
308
309CLEANFILES = $(BUILT_SOURCES)
310
311
312cplusplus_SOURCES = cplusplus.cc
313
314cplusplus.h: cplusplus
315        ${abs_builddir}/cplusplus > ${abs_builddir}/cplusplus.h
316
317.template.h:
318        ${srcdir}/bin/makeheader $< $@
319
320# factory/gfops.cc has the gftables path hardcoded in, so we create a
321# symlink. Remove this rule once gfopts.cc has been fixed. Note that
322# check-local would run in parallel with check, so we can't use it
323# here!
324all-local:
325        [ -d ${builddir}/gftables ] || ln -s ${srcdir}/gftables ${builddir}
326
327####################################################
328## Test program
329##
330TESTS = test-s-g test-s-r test-d-g test-d-r
331check_PROGRAMS = $(TESTS)
332
333TESTSSOURCES = test.cc
334
335test_s_g_SOURCES = $(TESTSSOURCES)
336test_s_g_CFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long -fomit-frame-pointer --no-rtti
337#ftmpl_inst.o
338test_s_g_LDADD = -L${builddir} -lfactory_g $(GMP_LIBS) $(NTL_LIBS)
339
340test_s_r_SOURCES = $(TESTSSOURCES)
341test_s_r_CFLAGS = -O3 -fomit-frame-pointer --no-rtti
342#ftmpl_inst.o
343test_s_r_LDADD = -L${builddir} -lfactory $(GMP_LIBS) $(NTL_LIBS)
344
345test_s_r_LDFLAGS = -static
346test_s_g_LDFLAGS = -static
347
348
349
350test_d_g_SOURCES = $(TESTSSOURCES)
351test_d_g_CFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long -fomit-frame-pointer --no-rtti
352#ftmpl_inst.o
353test_d_g_LDADD = -L${builddir} -lfactory_g $(GMP_LIBS) $(NTL_LIBS)
354
355test_d_r_SOURCES = $(TESTSSOURCES)
356test_d_r_CFLAGS = -O3 -fomit-frame-pointer --no-rtti
357#ftmpl_inst.o
358test_d_r_LDADD = -L${builddir} -lfactory $(GMP_LIBS) $(NTL_LIBS)
Note: See TracBrowser for help on using the repository browser.