source: git/factory/Makefile.am @ 9ba92b

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