- Timestamp:
- Sep 28, 2011, 6:22:34 PM (13 years ago)
- Branches:
- (u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
- Children:
- a0acbc558a10c931620702cf1f67288945e04b23
- Parents:
- 83db8d3000b4078b3fa1965f387d1f5099e5426e
- git-author:
- Volker Braun <vbraun.name@gmail.com>2011-09-28 18:22:34+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:13:44+01:00
- Location:
- factory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/Makefile.am
r83db8d rc2eb2e 5 5 lib_LIBRARIES = libfactory.a libfactory_g.a 6 6 7 libfactory_a_includedir=$(includedir)/factory 8 libfactory_g_a_includedir=$(includedir)/factory 9 10 libfactory_a_libdir=$(libdir)/factory 11 libfactory_g_a_libdir=$(libdir)/factory 7 libfactory_a_libdir = $(libdir) 8 libfactory_g_a_libdir = $(libdir) 12 9 13 10 libfactory_a_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti ${CXXTEMPLFLAGS} … … 90 87 singext.cc \ 91 88 parseutil.cc \ 92 ftmpl_inst.cc \ 93 factory.h factoryconf.h 89 ftmpl_inst.cc 94 90 95 91 if WITH_PARSER_FOR_CANONICAL_FORM 96 92 SOURCES += readcf.yy 97 93 endif 98 99 94 100 95 libfactory_a_SOURCES = $(SOURCES) … … 106 101 canonicalform.h \ 107 102 cf_algorithm.h \ 103 cf_cyclo.h \ 108 104 cf_binom.h \ 109 105 cf_defs.h \ … … 113 109 cf_globals.h \ 114 110 cf_gcd_smallp.h \ 111 cf_gmp.h \ 115 112 cf_hnf.h \ 116 113 cf_irred.h \ 117 114 cf_iter.h \ 118 115 cf_map.h \ 116 cf_map_ext.h \ 119 117 cfNewtonPolygon.h \ 120 118 cfModResultant.h \ … … 168 166 lgs.h \ 169 167 algext.h \ 170 singext.h 168 singext.h \ 169 parseutil.h 171 170 172 171 noinst_HEADERS = $(factory_headers) 172 173 libfactory_includedir=$(includedir)/factory 174 libfactory_include_HEADERS = cplusplus.h factory.h factoryconf.h 175 173 176 174 177 # Documentation … … 185 188 rm -rf doxygen 186 189 187 # Support for building GF(q)-tables 188 189 templatesrc = \ 190 ftmpl_array.cc \ 191 ftmpl_factor.cc \ 192 ftmpl_functions.h \ 193 ftmpl_list.cc \ 194 ftmpl_matrix.cc 195 templateincl = \ 196 ftmpl_array.h \ 197 ftmpl_factor.h \ 198 ftmpl_list.h \ 199 ftmpl_matrix.h 200 201 # TODO: 202 # gengftables needs libfactory.a and factory.h AND is needed for generating gftable... 203 # somehow the current deps. seem to be broken... 204 # moreover factory.h needs a lot more generated headers, which wouldn't be installed yet 205 206 EXTRA_PROGRAMS = gengftables cplusplus 207 208 209 gengftables_SOURCES = gengftables-conway.cc 210 211 gengftables_LDADD = -L${builddir} -lfactory $(GMP_LIBS) $(NTL_LIBS) 190 # the precomputed GF(q)-tables 212 191 213 192 gftablesdir=$(datadir)/gftables 214 gftables_DATA = gftables/10201 gftables/1024 gftables/10609 gftables/11449 \193 dist_gftables_DATA = gftables/10201 gftables/1024 gftables/10609 gftables/11449 \ 215 194 gftables/11881 gftables/121 gftables/12167 gftables/125 gftables/12769 \ 216 195 gftables/128 gftables/1331 gftables/1369 gftables/14641 \ … … 235 214 236 215 237 gftables: 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 252 BUILT_SOURCES = cplusplus.h factory.h factoryconf.h readcf.cc 253 254 255 libfactory_a_include_HEADERS=$(BUILT_SOURCES) 256 libfactory_g_a_include_HEADERS=$(BUILT_SOURCES) 216 # Support for building GF(q)-tables 217 # 218 # gengftables needs libfactory.a and factory.h AND is needed for 219 # generating gftable but the tables are not necessarily needed to 220 # compile and use libfactory (though it will be a lot slower). 221 222 EXTRA_PROGRAMS = gengftables 223 gengftables_SOURCES = gengftables-conway.cc 224 gengftables_LDADD = -L${builddir} -lfactory $(GMP_LIBS) $(NTL_LIBS) 225 257 226 258 227 # These files listed below are not used anywhere but are included in 259 228 # the distribution. So they will be tacked on to EXTRA_DIST. 260 229 230 templatesrc = templates/ftmpl_array.cc \ 231 templates/ftmpl_factor.cc \ 232 templates/ftmpl_functions.h \ 233 templates/ftmpl_list.cc \ 234 templates/ftmpl_matrix.cc 235 236 templateincl = templates/ftmpl_array.h \ 237 templates/ftmpl_factor.h \ 238 templates/ftmpl_list.h \ 239 templates/ftmpl_matrix.h 240 261 241 # header templates 262 hdrtemplsrc = \ 263 factoryconf.template \ 242 hdrtemplsrc = factoryconf.template \ 264 243 factory.template 265 244 266 245 # FTE source files 267 ftestsrc = \ 268 ftest_io.cc \ 269 ftest_util.cc \ 270 ntl_util.cc 246 ftestsrc = ftest/ftest_io.cc \ 247 ftest/ftest_util.cc \ 248 ftest/ntl_util.cc 271 249 272 250 # FTE header files 273 ftestincl = \ 274 ftest_io.h \ 275 ftest_util.h \ 276 ntl_util.h 277 278 # FTE m4 source files (exported for `GNUmakefile' in `ftest/'). 279 # The variable `$(ftestm4develsrc)' may be already initialized 280 # from the development `GNUmakefile'. 281 ftestm4src = $(ftestm4develsrc) \ 282 commonden.m4 \ 283 degree.m4 \ 284 deriv.m4 \ 285 divides.m4 \ 286 divrem.m4 \ 287 extgcd.m4 \ 288 factorize.m4 \ 289 fbinops.m4 \ 290 feval.m4 \ 291 gcd.m4 \ 292 gcd.ntl.m4 \ 293 insert.m4 \ 294 norm.m4 \ 295 resultant.m4 \ 296 revert.m4 \ 297 sqrfree.m4 \ 298 size.m4 \ 299 totaldegree.m4 300 301 # other files from the FTE 251 ftestincl = ftest/ftest_io.h \ 252 ftest/ftest_util.h \ 253 ftest/ntl_util.h 254 255 ftestm4src = ftest/commonden.m4 \ 256 ftest/degree.m4 \ 257 ftest/deriv.m4 \ 258 ftest/divides.m4 \ 259 ftest/divrem.m4 \ 260 ftest/extgcd.m4 \ 261 ftest/factorize.m4 \ 262 ftest/fbinops.m4 \ 263 ftest/feval.m4 \ 264 ftest/gcd.m4 \ 265 ftest/gcd.ntl.m4 \ 266 ftest/insert.m4 \ 267 ftest/norm.m4 \ 268 ftest/resultant.m4 \ 269 ftest/revert.m4 \ 270 ftest/sqrfree.m4 \ 271 ftest/size.m4 \ 272 ftest/totaldegree.m4 273 302 274 ftestdistfiles = \ 303 ftest_util.m4 304 305 # gengftables.cc gengftables-conway.cc 275 ftest/ftest_util.m4 276 306 277 EXTRA_DIST = test_install.cc \ 307 278 $(templatesrc) $(templateincl) $(hdrtemplsrc) \ 308 279 $(ftestsrc) $(ftestincl) $(ftestm4src) $(ftestdistfiles) \ 309 doxygen.cfg factory.cfg gen_cf_gmp.template\280 doxygen.cfg factory.cfg \ 310 281 examples/application.cc \ 311 282 examples/factorize.cc examples/gcd.cc \ 312 283 bin/folding.el bin/fold-docu.el \ 313 bin/makeheader bin/gen-readcf $(gftables_DATA) 314 315 CLEANFILES = factory.h factoryconf.h cplusplus.h readcf.cc 316 317 284 bin/makeheader bin/gen-readcf 285 286 ################################################## 287 # autogenerated sources 288 289 noinst_PROGRAMS = cplusplus 290 291 BUILT_SOURCES = cplusplus.h factory.h factoryconf.h readcf.cc 292 293 CLEANFILES = $(BUILT_SOURCES) 318 294 319 295 cplusplus_SOURCES = cplusplus.cc … … 322 298 ${builddir}/cplusplus > ${builddir}/cplusplus.h 323 299 324 #ftmpl_inst.o: ftmpl_inst.cc factoryconf.h factory.h \ 325 # $(addprefix templates/,$(templatesrc)) \ 326 # $(addprefix templates/,$(templateincl)) 327 # $(CXX) -c $< $(libfactory_a_CXXFLAGS) $(INCLUDES) -o $@ 300 .template.h: 301 ${srcdir}/bin/makeheader $< $@ 302 303 # factory/gfops.cc has the gftables path hardcoded in, so we create a 304 # symlink. Remove this rule once gfopts.cc has been fixed. Note that 305 # check-local would run in parallel with check, so we can't use it 306 # here! 307 all-local: 308 [ -d ${builddir}/gftables ] || ln -s ${srcdir}/gftables ${builddir} 328 309 329 310 #################################################### … … 335 316 TESTSSOURCES = test.cc 336 317 337 test_g: libfactory_g.a338 339 318 test_g_SOURCES = $(TESTSSOURCES) 340 319 test_g_CFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long -fomit-frame-pointer --no-rtti #ftmpl_inst.o 341 320 test_g_LDADD = -L${builddir} -lfactory_g $(GMP_LIBS) $(NTL_LIBS) 342 321 343 test_r: libfactory.a344 345 322 test_r_SOURCES = $(TESTSSOURCES) 346 323 test_r_CFLAGS = -O3 -fomit-frame-pointer --no-rtti #ftmpl_inst.o 347 324 test_r_LDADD = -L${builddir} -lfactory $(GMP_LIBS) $(NTL_LIBS) 325 -
factory/configure.ac
r83db8d rc2eb2e 422 422 [test x$with_Singular != xyes && test x$enable_streamio != xno]) 423 423 424 AC_OUTPUT(Makefile ftest/GNUmakefile) 425 424 AC_CONFIG_FILES([Makefile ftest/GNUmakefile]) 425 AC_OUTPUT 426
Note: See TracChangeset
for help on using the changeset viewer.