source: git/factory/Makefile.am @ 6bc4cd

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