source: git/factory/Makefile.am @ 92bbbc

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