source: git/factory/Makefile.am @ 4bb0d7

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