source: git/factory/Makefile.am @ 7d0225

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