source: git/factory/Makefile.am @ 9ba92b

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