source: git/factory/Makefile.am @ 928fb6

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