source: git/factory/Makefile.am @ 3199ac

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