source: git/factory/Makefile.am @ 175dfb

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