source: git/factory/Makefile.am @ 2870a4

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