source: git/factory/Makefile.am @ 2ce3bf

spielwiese
Last change on this file since 2ce3bf was f74f49, checked in by Max Horn <max@…>, 4 years ago
Ensure that factory.h factoryconf.h are regenerated after configure runs
  • 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                cf_assert.h \
104                canonicalform.h \
105                cf_algorithm.h \
106                cfCharSets.h \
107                cfCharSetsUtil.h \
108                cf_cyclo.h \
109                cf_defs.h \
110                cf_eval.h \
111                cfEzgcd.h \
112                cf_factory.h \
113                cf_generator.h \
114                cf_globals.h \
115                cfGcdAlgExt.h \
116                cfGcdUtil.h \
117                cf_hnf.h \
118                cf_irred.h \
119                cf_iter.h \
120                cf_map.h \
121                cf_map_ext.h \
122                cfModGcd.h \
123                cfNewtonPolygon.h \
124                cfNTLzzpEXGCD.h \
125                cfModResultant.h \
126                cf_primes.h \
127                cf_primetab.h \
128                cf_random.h \
129                cf_reval.h \
130                cfSubResGcd.h \
131                cf_switches.h \
132                cf_util.h \
133                cfUnivarGcd.h \
134                debug.h \
135                DegreePattern.h \
136                ExtensionInfo.h \
137                facAbsBiFact.h \
138                facAbsFact.h \
139                facAlgExt.h \
140                facAlgFunc.h \
141                facAlgFuncUtil.h \
142                facBivar.h \
143                facFactorize.h \
144                fac_sqrfree.h \
145                fac_util.h \
146                facFqBivar.h \
147                facFqBivarUtil.h \
148                facFqFactorize.h \
149                facFqFactorizeUtil.h \
150                facFqSquarefree.h \
151                facHensel.h \
152                facIrredTest.h \
153                facMul.h \
154                facSparseHensel.h \
155                ffops.h \
156                FLINTconvert.h \
157                gf_tabutil.h \
158                gfops.h \
159                gmpext.h \
160                imm.h \
161                int_cf.h \
162                int_int.h \
163                int_poly.h \
164                int_rat.h \
165                timing.h \
166                variable.h \
167                NTLconvert.h \
168                singext.h \
169                parseutil.h
170
171noinst_HEADERS = $(factory_headers)
172
173libfactory_includedir = ${includedir}/factory
174
175nodist_libfactory_include_HEADERS = factory.h factoryconf.h
176libfactory_include_HEADERS = globaldefs.h
177
178
179####################################################
180# Documentation
181include $(srcdir)/aminclude.am
182
183####################################################
184# the precomputed GF(q)-tables
185
186gftablesdir=$(datadir)/factory/gftables
187dist_gftables_DATA = gftables/10201 gftables/1024 gftables/10609 gftables/11449 \
188gftables/11881 gftables/121 gftables/12167 gftables/125 gftables/12769 \
189gftables/128 gftables/1331 gftables/1369 gftables/14641 \
190gftables/15625 gftables/16 gftables/16129 gftables/16384 \
191gftables/16807 gftables/1681 gftables/169 gftables/17161 gftables/1849 \
192gftables/18769 gftables/19321 gftables/19683 gftables/2048 \
193gftables/2187 gftables/2197 gftables/2209 gftables/22201 \
194gftables/22801 gftables/2401 gftables/243 gftables/24389 \
195gftables/24649 gftables/25 gftables/256 gftables/26569 gftables/27 \
196gftables/27889 gftables/2809 gftables/28561 gftables/289 \
197gftables/29791 gftables/29929 gftables/3125 gftables/32 gftables/32041 \
198gftables/32761 gftables/32768 gftables/343 gftables/3481 gftables/361 \
199gftables/36481 gftables/3721 gftables/37249 gftables/38809 \
200gftables/39601 gftables/4 gftables/4096 gftables/44521 gftables/4489 \
201gftables/49 gftables/4913 gftables/49729 gftables/5041 \
202gftables/50653 gftables/512 gftables/51529 gftables/52441 gftables/529 \
203gftables/5329 gftables/54289 gftables/57121 gftables/58081 \
204gftables/59049 gftables/6241 gftables/625 gftables/63001 \
205gftables/64 gftables/6561 gftables/6859 gftables/6889 gftables/729 \
206gftables/7921 gftables/8 gftables/81 gftables/8192 gftables/841 \
207gftables/9 gftables/9409 gftables/961
208
209
210####################################################
211# Support for building GF(q)-tables
212#
213# gengftables needs libfactory.la and factory.h AND is needed for
214# generating gftable but the tables are not necessarily needed to
215# compile and use libfactory (though it will be a lot slower).
216
217EXTRA_PROGRAMS = gengftables
218gengftables_SOURCES = gengftables-conway.cc
219gengftables_LDADD = libfactory.la $(FLINT_LIBS) $(GMP_LIBS) $(NTL_LIBS)
220
221
222####################################################
223# These files listed below are not used anywhere but are included in
224# the distribution. So they will be tacked on to EXTRA_DIST.
225
226templatesrc =   templates/ftmpl_array.cc \
227                templates/ftmpl_afactor.cc \
228                templates/ftmpl_factor.cc \
229                templates/ftmpl_functions.h \
230                templates/ftmpl_list.cc \
231                templates/ftmpl_matrix.cc
232
233# header templates
234hdrtemplsrc =   factoryconf.template \
235                factory.template
236
237EXTRA_DIST =    test_install.cc \
238                $(templatesrc) $(hdrtemplsrc) \
239                doxygen.cfg \
240                examples/application.cc \
241                examples/factorize.cc examples/gcd.cc \
242                bin/folding.el bin/fold-docu.el \
243                bin/makeheader bin/gen-readcf readcf.yy \
244                make_factory_dist
245
246##################################################
247# autogenerated sources
248
249BUILT_SOURCES = factory.h factoryconf.h
250
251CLEANFILES = $(BUILT_SOURCES) include/factory/factory.h include/factory/factoryconf.h
252
253DISTCLEANFILES =  config.h readcf.cc
254
255#distclean-local:
256#       -rm -f readcf.cc
257
258factory.h factoryconf.h: config.status
259
260.template.h: $(factory_headers)
261        ${srcdir}/bin/makeheader $< $@
262        cp $@ include/factory/
263
264# factory/gfops.cc has the gftables path hardcoded in, so we create a
265# symlink. Remove this rule once gfopts.cc has been fixed. Note that
266# check-local would run in parallel with check, so we can't use it
267# here!
268all-local:
269        [ -d ${builddir}/gftables ] || ln -s ${srcdir}/gftables ${builddir}
270
271
272####################################################
273## Test program
274##
275
276TESTS = test
277
278check_PROGRAMS = $(TESTS)
279
280test_SOURCES = test.cc
281test_LDADD   = libfactory.la $(libfactory_la_LIBADD)
282
283####################################################
284## PKG config
285##
286
287pkgconfigdir = $(libdir)/pkgconfig
288pkgconfig_DATA = factory.pc
289
Note: See TracBrowser for help on using the repository browser.