source: git/factory/Makefile.am @ 3edea1

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