source: git/factory/Makefile.am @ 20e3c45

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