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

spielwiese
Last change on this file since 9bb5457 was e14941, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
FIX: gengtables should be an extra program
  • Property mode set to 100644
File size: 7.0 KB
Line 
1CXXTEMPLFLAGS      = -fno-implicit-templates --no-exceptions
2
3INCLUDES = -I${top_srcdir} -I${top_srcdir}/.. -I${top_builddir} -I${top_builddir}/.. -I${srcdir} ${GMP_CFLAGS} ${NTL_CFLAGS}
4
5lib_LIBRARIES = libfactory.a libfactory_g.a
6
7libfactory_a_includedir=$(includedir)/factory
8libfactory_g_a_includedir=$(includedir)/factory
9
10libfactory_a_libdir=$(libdir)/factory
11libfactory_g_a_libdir=$(libdir)/factory
12
13libfactory_a_CXXFLAGS   = -O3 -fomit-frame-pointer --no-rtti ${CXXTEMPLFLAGS}
14libfactory_g_a_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${CXXTEMPLFLAGS}
15
16# factory source files
17SOURCES = \
18                canonicalform.cc \
19                cf_algorithm.cc \
20                cf_binom.cc \
21                cf_char.cc \
22                cf_chinese.cc \
23                cf_cyclo.cc \
24                cf_eval.cc \
25                cf_factor.cc \
26                cf_factory.cc \
27                cf_gcd.cc \
28                cf_gcd_smallp.cc \
29                cf_generator.cc \
30                cfGEval.cc \
31                cf_globals.cc \
32                cf_hnf.cc \
33                cf_inline.cc \
34                cf_irred.cc \
35                cf_iter.cc \
36                cf_iter_inline.cc \
37                cf_linsys.cc \
38                cf_map.cc \
39                cf_map_ext.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                facAlgExt.cc \
51                fac_berlekamp.cc \
52                fac_cantzass.cc \
53                fac_distrib.cc \
54                fac_ezgcd.cc \
55                fac_iterfor.cc \
56                fac_multihensel.cc \
57                fac_multivar.cc \
58                fac_sqrfree.cc \
59                fac_univar.cc \
60                fac_util.cc \
61                facFqBivar.cc \
62                facFqBivarUtil.cc \
63                facFqFactorize.cc \
64                facFqFactorizeUtil.cc \
65                facFqSquarefree.cc \
66                facHensel.cc \
67                facIrredTest.cc \
68                fieldGCD.cc \
69                ffops.cc \
70                ffreval.cc \
71                gf_tabutil.cc \
72                gfops.cc \
73                imm.cc \
74                int_cf.cc \
75                int_int.cc \
76                int_intdiv.cc \
77                int_poly.cc \
78                int_pp.cc \
79                int_rat.cc \
80                sm_sparsemod.cc \
81                sm_util.cc \
82                variable.cc \
83                NTLconvert.cc \
84                abs_fac.cc \
85                bifac.cc \
86                lgs.cc \
87                singext.cc \
88                parseutil.cc \
89                readcf.yy \
90                factory.h \
91                factoryconf.h \
92                ftmpl_inst.cc
93
94libfactory_a_SOURCES = $(SOURCES)
95libfactory_g_a_SOURCES = $(SOURCES)
96
97# factory header files
98factory_headers = \
99                cf_assert.h \
100                canonicalform.h \
101                cf_algorithm.h \
102                cf_binom.h \
103                cf_defs.h \
104                cf_eval.h \
105                cf_factory.h \
106                cf_generator.h \
107                cfGEval.h \
108                cf_globals.h \
109                cf_gcd_smallp.h \
110                cf_hnf.h \
111                cf_irred.h \
112                cf_iter.h \
113                cf_map.h \
114                cf_primes.h \
115                cf_primetab.h \
116                cf_random.h \
117                cf_reval.h \
118                cf_switches.h \
119                cf_util.h \
120                debug.h \
121                DegreePattern.h \
122                ExtensionInfo.h \
123                facAlgExt.h \
124                fac_berlekamp.h \
125                fac_cantzass.h \
126                fac_distrib.h \
127                fac_iterfor.h \
128                fac_multivar.h \
129                fac_sqrfree.h \
130                fac_univar.h \
131                fac_util.h \
132                facFqBivar.h \
133                facFqBivarUtil.h \
134                facFqFactorize.h \
135                facFqFactorizeUtil.h \
136                facFqSquarefree.h \
137                facHensel.h \
138                facIrredTest.h \
139                fieldGCD.h \
140                ffops.h \
141                ffreval.h \
142                templates/ftmpl_list.h \
143                templates/ftmpl_matrix.h \
144                gf_tabutil.h \
145                gfops.h \
146                gmpext.h \
147                imm.h \
148                int_cf.h \
149                int_int.h \
150                int_poly.h \
151                int_pp.h \
152                int_rat.h \
153                sm_sparsemod.h \
154                sm_util.h \
155                timing.h \
156                variable.h \
157                NTLconvert.h \
158                bifac.h \
159                bifacConfig.h \
160                lgs.h \
161                algext.h \
162                singext.h
163
164noinst_HEADERS = $(factory_headers)
165
166# Documentation
167include $(top_srcdir)/aminclude.am
168
169doxysrc = $(SOURCES) parseutil.cc
170doxyincl = $(factory_headers) parseutil.h
171
172# doxygen targets
173doxy:           factory.cfg $(doxysrc) $(doxyincl)
174                doxygen $<
175
176doxyclean:
177                rm -rf doxygen
178
179# Support for building GF(q)-tables
180
181templatesrc =   \
182                ftmpl_array.cc \
183                ftmpl_factor.cc \
184                ftmpl_functions.h \
185                ftmpl_list.cc \
186                ftmpl_matrix.cc
187templateincl =  \
188                ftmpl_array.h \
189                ftmpl_factor.h \
190                ftmpl_list.h \
191                ftmpl_matrix.h
192
193# TODO:
194# gengftables needs libfactory.a and factory.h AND is needed for generating gftable...
195# somehow the current deps. seem to be broken...
196# moreover factory.h needs a lot more generated headers, which wouldn't be installed yet
197
198EXTRA_PROGRAMS = gengftables
199
200gengftables_SOURCES = gengftables-conway.cc
201
202gengftables_LDADD = -L${builddir} -lfactory $(GMP_LIBS) $(NTL_LIBS)
203
204gftablesdir=$(datadir)/gftables
205gftables_DATA = gftables/10201 gftables/1024 gftables/10609 gftables/11449 \
206gftables/11881 gftables/121 gftables/12167 gftables/125 gftables/12769 \
207gftables/128 gftables/1331 gftables/1369 gftables/14641 \
208gftables/15625 gftables/16 gftables/16129 gftables/16384 \
209gftables/16807 gftables/1681 gftables/169 gftables/17161 gftables/1849 \
210gftables/18769 gftables/19321 gftables/19683 gftables/2048 \
211gftables/2187 gftables/2197 gftables/2209 gftables/22201 \
212gftables/22801 gftables/2401 gftables/243 gftables/24389 \
213gftables/24649 gftables/25 gftables/256 gftables/26569 gftables/27 \
214gftables/27889 gftables/2809 gftables/28561 gftables/289 \
215gftables/29791 gftables/29929 gftables/3125 gftables/32 gftables/32041 \
216gftables/32761 gftables/32768 gftables/343 gftables/3481 gftables/361 \
217gftables/36481 gftables/3721 gftables/37249 gftables/38809 \
218gftables/39601 gftables/4 gftables/4096 gftables/44521 gftables/4489 \
219gftables/49 gftables/4913 gftables/49729 gftables/5041 \
220gftables/50653 gftables/512 gftables/51529 gftables/52441 gftables/529 \
221gftables/5329 gftables/54289 gftables/57121 gftables/58081 \
222gftables/59049 gftables/6241 gftables/625 gftables/63001 \
223gftables/64 gftables/6561 gftables/6859 gftables/6889 gftables/729 \
224gftables/7921 gftables/8 gftables/81 gftables/8192 gftables/841 \
225gftables/9 gftables/9409 gftables/961
226
227
228gftables: gengftables
229                @if test -x ${srcdir}/gftables; then \
230                        if test ! -x ${builddir}/gftables; then \
231                          ln -snf ${srcdir}/gftables ${builddir}; \
232                        fi; \
233                else \
234                        echo "This command will take quite a long time to execute;"; \
235                        echo "maybe you want to get the tables directly via ftp (see"; \
236                        echo "the INSTALL file)."; \
237                        ${builddir}/gengftables; \
238                fi
239
240.template.h:
241        ${srcdir}/bin/makeheader $< $@
242
243BUILT_SOURCES = factory.h factoryconf.h
244
245libfactory_a_include_HEADERS=$(BUILT_SOURCES)
246libfactory_g_a_include_HEADERS=$(BUILT_SOURCES)
247
248# These files listed below are not used anywhere but are included in
249# the distribution. So they will be tacked on to EXTRA_DIST.
250
251# header templates
252hdrtemplsrc = \
253                factoryconf.template \
254                factory.template
255
256# FTE source files
257ftestsrc =      \
258                ftest_io.cc \
259                ftest_util.cc \
260                ntl_util.cc
261
262# FTE header files
263ftestincl =     \
264                ftest_io.h \
265                ftest_util.h \
266                ntl_util.h
267
268# FTE m4 source files (exported for `GNUmakefile' in `ftest/').
269# The variable `$(ftestm4develsrc)' may be already initialized
270# from the development `GNUmakefile'.
271ftestm4src =    $(ftestm4develsrc) \
272                commonden.m4 \
273                degree.m4 \
274                deriv.m4 \
275                divides.m4 \
276                divrem.m4 \
277                extgcd.m4 \
278                factorize.m4 \
279                fbinops.m4 \
280                feval.m4 \
281                gcd.m4 \
282                gcd.ntl.m4 \
283                insert.m4 \
284                norm.m4 \
285                resultant.m4 \
286                revert.m4 \
287                sqrfree.m4 \
288                size.m4 \
289                totaldegree.m4
290
291# other files from the FTE
292ftestdistfiles = \
293                ftest_util.m4
294
295# gengftables.cc gengftables-conway.cc
296EXTRA_DIST =    test_install.cc \
297                $(templatesrc) $(templateincl) $(hdrtemplsrc) \
298                $(ftestsrc) $(ftestincl) $(ftestm4src) $(ftestdistfiles) \
299                doxygen.cfg factory.cfg gen_cf_gmp.template \
300                examples/application.cc \
301                examples/factorize.cc examples/gcd.cc \
302                bin/folding.el bin/fold-docu.el \
303                bin/makeheader bin/gen-readcf readcf.cc $(gftables_DATA)
304
305CLEANFILES = factory.h factoryconf.h
Note: See TracBrowser for help on using the repository browser.