source: git/factory/Makefile.am @ 667ba1

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