source: git/factory/Makefile.am @ f4cb99a

jengelh-datetimespielwiese
Last change on this file since f4cb99a was f4cb99a, checked in by Oleksandr Motsak <motsak@…>, 10 years ago
Updating the BS + search pathes for better binary distribution (due to Hans)
  • Property mode set to 100644
File size: 8.6 KB
Line 
1ACLOCAL_AMFLAGS = -I ../m4
2
3PACKAGES=include/factory libfac
4SUBDIRS=$(PACKAGES)
5
6CXXTEMPLFLAGS=-ftrapv
7## -fno-implicit-templates
8
9AM_CPPFLAGS = -I${builddir}/include -I${srcdir}/include $(FLINT_CFLAGS) ${GMP_CFLAGS} ${NTL_CFLAGS} ${OMALLOC_CFLAGS}
10
11if WANT_DEBUG
12  LIB_G=libfactory_g.la
13else
14  LIB_G=
15endif
16
17lib_LTLIBRARIES = libfactory.la ${LIB_G}
18
19libfactory_la_CXXFLAGS   = -O3 -fomit-frame-pointer ${CXXTEMPLFLAGS}
20libfactory_la_LIBADD     = ${builddir}/libfac/libfac.la $(FLINT_LIBS) ${GMP_LIBS} ${NTL_LIBS}
21libfactory_la_LDFLAGS    = -release ${PACKAGE_VERSION}
22libfactory_g_la_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${CXXTEMPLFLAGS}
23libfactory_g_la_LIBADD   = ${builddir}/libfac/libfac_g.la $(FLINT_LIBS) ${GMP_LIBS} ${NTL_LIBS}
24libfactory_g_la_LDFLAGS  = -release ${PACKAGE_VERSION}
25
26
27
28# factory source files
29SOURCES = \
30                algext.cc \
31                canonicalform.cc \
32                cf_algorithm.cc \
33                cf_binom.cc \
34                cf_char.cc \
35                cf_chinese.cc \
36                cf_cyclo.cc \
37                cf_eval.cc \
38                cf_factor.cc \
39                cf_factory.cc \
40                cf_gcd.cc \
41                cf_gcd_smallp.cc \
42                cf_generator.cc \
43                cf_globals.cc \
44                cf_hnf.cc \
45                cf_inline.cc \
46                cf_irred.cc \
47                cf_iter.cc \
48                cf_iter_inline.cc \
49                cf_linsys.cc \
50                cf_map.cc \
51                cf_map_ext.cc \
52                cfNewtonPolygon.cc \
53                cfModResultant.cc \
54                cf_ops.cc \
55                cf_primes.cc \
56                cf_random.cc \
57                cf_resultant.cc \
58                cf_reval.cc \
59                cf_switches.cc \
60                cf_util.cc \
61                debug.cc \
62                DegreePattern.cc \
63                ExtensionInfo.cc \
64                facAlgExt.cc \
65                facBivar.cc \
66                fac_berlekamp.cc \
67                fac_cantzass.cc \
68                fac_distrib.cc \
69                fac_ezgcd.cc \
70                facFactorize.cc \
71                fac_iterfor.cc \
72                fac_multihensel.cc \
73                fac_multivar.cc \
74                fac_sqrfree.cc \
75                fac_univar.cc \
76                fac_util.cc \
77                facFqBivar.cc \
78                facFqBivarUtil.cc \
79                facFqFactorize.cc \
80                facFqFactorizeUtil.cc \
81                facFqSquarefree.cc \
82                facHensel.cc \
83                facIrredTest.cc \
84                facMul.cc \
85                facNTLzzpEXGCD.cc \
86                facSparseHensel.cc \
87                ffops.cc \
88                FLINTconvert.cc \
89                gf_tabutil.cc \
90                gfops.cc \
91                imm.cc \
92                int_cf.cc \
93                int_int.cc \
94                int_intdiv.cc \
95                int_poly.cc \
96                int_pp.cc \
97                int_rat.cc \
98                variable.cc \
99                NTLconvert.cc \
100                singext.cc \
101                parseutil.cc \
102                ftmpl_inst.cc
103
104if WITH_PARSER_FOR_CANONICAL_FORM
105    SOURCES +=  readcf.yy
106endif
107
108libfactory_la_SOURCES = $(SOURCES)
109libfactory_g_la_SOURCES = $(SOURCES)
110
111libfactory_la_CPPFLAGS  = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DOM_NDEBUG -DNDEBUG
112libfactory_g_la_CPPFLAGS= ${AM_CPPFLAGS} -DHAVE_CONFIG_H
113
114nodist_libfactory_la_SOURCES = cplusplus.h factory.h factoryconf.h
115nodist_libfactory_g_la_SOURCES = cplusplus.h factory.h factoryconf.h
116
117# factory header files
118factory_headers = \
119                cf_assert.h \
120                canonicalform.h \
121                cf_algorithm.h \
122                cf_cyclo.h \
123                cf_binom.h \
124                cf_defs.h \
125                cf_eval.h \
126                cf_factory.h \
127                cf_generator.h \
128                cf_globals.h \
129                cf_gcd_smallp.h \
130                cf_hnf.h \
131                cf_irred.h \
132                cf_iter.h \
133                cf_map.h \
134                cf_map_ext.h \
135                cfNewtonPolygon.h \
136                cfModResultant.h \
137                cf_primes.h \
138                cf_primetab.h \
139                cf_random.h \
140                cf_reval.h \
141                cf_switches.h \
142                cf_util.h \
143                debug.h \
144                DegreePattern.h \
145                ExtensionInfo.h \
146                facAlgExt.h \
147                facBivar.h \
148                fac_berlekamp.h \
149                fac_cantzass.h \
150                fac_distrib.h \
151                facFactorize.h \
152                fac_iterfor.h \
153                fac_multivar.h \
154                fac_sqrfree.h \
155                fac_univar.h \
156                fac_util.h \
157                facFqBivar.h \
158                facFqBivarUtil.h \
159                facFqFactorize.h \
160                facFqFactorizeUtil.h \
161                facFqSquarefree.h \
162                facHensel.h \
163                facIrredTest.h \
164                facMul.h \
165                facNTLzzpEXGCD.h \
166                facSparseHensel.h \
167                ffops.h \
168                FLINTconvert.h \
169                gf_tabutil.h \
170                gfops.h \
171                gmpext.h \
172                imm.h \
173                int_cf.h \
174                int_int.h \
175                int_poly.h \
176                int_pp.h \
177                int_rat.h \
178                timing.h \
179                variable.h \
180                NTLconvert.h \
181                algext.h \
182                singext.h \
183                parseutil.h
184
185noinst_HEADERS = $(factory_headers)
186
187libfactory_includedir = ${includedir}/factory
188
189nodist_libfactory_include_HEADERS = cplusplus.h factory.h factoryconf.h
190
191
192####################################################
193# Documentation
194include $(top_srcdir)/aminclude.am
195
196doxysrc = $(SOURCES) parseutil.cc
197doxyincl = $(factory_headers) parseutil.h
198
199# doxygen targets
200doxy:           factory.cfg $(doxysrc) $(doxyincl)
201                doxygen $<
202
203doxyclean:
204                rm -rf doxygen
205
206####################################################
207# the precomputed GF(q)-tables
208
209gftablesdir=$(datadir)/factory/gftables
210dist_gftables_DATA = gftables/10201 gftables/1024 gftables/10609 gftables/11449 \
211gftables/11881 gftables/121 gftables/12167 gftables/125 gftables/12769 \
212gftables/128 gftables/1331 gftables/1369 gftables/14641 \
213gftables/15625 gftables/16 gftables/16129 gftables/16384 \
214gftables/16807 gftables/1681 gftables/169 gftables/17161 gftables/1849 \
215gftables/18769 gftables/19321 gftables/19683 gftables/2048 \
216gftables/2187 gftables/2197 gftables/2209 gftables/22201 \
217gftables/22801 gftables/2401 gftables/243 gftables/24389 \
218gftables/24649 gftables/25 gftables/256 gftables/26569 gftables/27 \
219gftables/27889 gftables/2809 gftables/28561 gftables/289 \
220gftables/29791 gftables/29929 gftables/3125 gftables/32 gftables/32041 \
221gftables/32761 gftables/32768 gftables/343 gftables/3481 gftables/361 \
222gftables/36481 gftables/3721 gftables/37249 gftables/38809 \
223gftables/39601 gftables/4 gftables/4096 gftables/44521 gftables/4489 \
224gftables/49 gftables/4913 gftables/49729 gftables/5041 \
225gftables/50653 gftables/512 gftables/51529 gftables/52441 gftables/529 \
226gftables/5329 gftables/54289 gftables/57121 gftables/58081 \
227gftables/59049 gftables/6241 gftables/625 gftables/63001 \
228gftables/64 gftables/6561 gftables/6859 gftables/6889 gftables/729 \
229gftables/7921 gftables/8 gftables/81 gftables/8192 gftables/841 \
230gftables/9 gftables/9409 gftables/961
231
232
233####################################################
234# Support for building GF(q)-tables
235#
236# gengftables needs libfactory.la and factory.h AND is needed for
237# generating gftable but the tables are not necessarily needed to
238# compile and use libfactory (though it will be a lot slower).
239
240EXTRA_PROGRAMS = gengftables
241gengftables_SOURCES = gengftables-conway.cc
242gengftables_LDADD = -L${builddir} -lfactory $(FLINT_LIBS) $(GMP_LIBS) $(NTL_LIBS)
243
244
245####################################################
246# These files listed below are not used anywhere but are included in
247# the distribution. So they will be tacked on to EXTRA_DIST.
248
249templatesrc =   templates/ftmpl_array.cc \
250                templates/ftmpl_factor.cc \
251                templates/ftmpl_functions.h \
252                templates/ftmpl_list.cc \
253                templates/ftmpl_matrix.cc
254
255# header templates
256hdrtemplsrc =   factoryconf.template \
257                factory.template
258
259EXTRA_DIST =    test_install.cc \
260                $(templatesrc) $(hdrtemplsrc) \
261                doxygen.cfg factory.cfg \
262                examples/application.cc \
263                examples/factorize.cc examples/gcd.cc \
264                bin/folding.el bin/fold-docu.el \
265                bin/makeheader bin/gen-readcf readcf.yy
266
267##################################################
268# autogenerated sources
269
270noinst_PROGRAMS = cplusplus
271
272BUILT_SOURCES = cplusplus.h factory.h factoryconf.h
273
274CLEANFILES = $(BUILT_SOURCES) include/factory/factory.h include/factory/factoryconf.h include/factory/cplusplus.h
275
276distclean-local:
277        -rm -f readcf.cc
278
279cplusplus_SOURCES = cplusplus.cc
280
281cplusplus.h: cplusplus
282        ./cplusplus >$@
283        cp $@ include/factory/
284
285.template.h:
286        ${srcdir}/bin/makeheader $< $@
287        cp $@ include/factory/
288
289# factory/gfops.cc has the gftables path hardcoded in, so we create a
290# symlink. Remove this rule once gfopts.cc has been fixed. Note that
291# check-local would run in parallel with check, so we can't use it
292# here!
293all-local:
294        [ -d ${builddir}/gftables ] || ln -s ${srcdir}/gftables ${builddir}
295
296####################################################
297## Test program
298##
299if WANT_DEBUG
300TESTS = test-s-g test-s-r test-d-g test-d-r
301else
302TESTS = test-s-r test-d-r
303endif
304check_PROGRAMS = $(TESTS)
305
306AMLDFLAGS =  -L${builddir}
307
308TESTSSOURCES = test.cc
309
310# The following ('..') is a hack for a while...
311TESTADDLIBDIRS = ${OMALLOC_LDFLAGS}
312TESTADDLIB = $(TESTADDLIBDIRS) $(OMALLOC_R_LDADD)
313TESTADDLIBDEBUG = $(TESTADDLIBDIRS) $(OMALLOC_G_LDADD)
314
315test_s_g_SOURCES = $(TESTSSOURCES)
316test_s_g_CFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long -fomit-frame-pointer
317#ftmpl_inst.o
318test_s_g_LDADD = -lfactory_g $(FLINT_LIBS) $(GMP_LIBS) $(NTL_LIBS) $(TESTADDLIBDEBUG)
319
320test_s_r_SOURCES = $(TESTSSOURCES)
321test_s_r_CFLAGS = -O3 -fomit-frame-pointer
322#ftmpl_inst.o
323test_s_r_LDADD = -lfactory $(FLINT_LIBS) $(GMP_LIBS) $(NTL_LIBS) $(TESTADDLIB)
324
325test_s_r_LDFLAGS = -static ${AMLDFLAGS}
326test_s_g_LDFLAGS = -static ${AMLDFLAGS}
327
328test_d_g_SOURCES = $(TESTSSOURCES)
329test_d_g_CFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long -fomit-frame-pointer
330#ftmpl_inst.o
331test_d_g_LDADD = -lfactory_g $(FLINT_LIBS) $(GMP_LIBS) $(NTL_LIBS) $(TESTADDLIBDEBUG)
332
333test_d_r_SOURCES = $(TESTSSOURCES)
334test_d_r_CFLAGS = -O3 -fomit-frame-pointer
335#ftmpl_inst.o
336test_d_r_LDADD = -lfactory $(FLINT_LIBS) $(GMP_LIBS) $(NTL_LIBS) $(TESTADDLIB)
337
338test_d_r_LDFLAGS = ${AMLDFLAGS}
339test_d_g_LDFLAGS = ${AMLDFLAGS}
Note: See TracBrowser for help on using the repository browser.