source: git/factory/Makefile.am @ 8e7e6d4

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