Changeset c2eb2e in git for factory


Ignore:
Timestamp:
Sep 28, 2011, 6:22:34 PM (13 years ago)
Author:
Volker Braun <vbraun.name@…>
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
Message:
make install and make distcheck work now
Location:
factory
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • factory/Makefile.am

    r83db8d rc2eb2e  
    55lib_LIBRARIES = libfactory.a libfactory_g.a
    66
    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
     7libfactory_a_libdir = $(libdir)
     8libfactory_g_a_libdir = $(libdir)
    129
    1310libfactory_a_CXXFLAGS   = -O3 -fomit-frame-pointer --no-rtti ${CXXTEMPLFLAGS}
     
    9087                singext.cc \
    9188                parseutil.cc \
    92                 ftmpl_inst.cc \
    93                 factory.h factoryconf.h
     89                ftmpl_inst.cc
    9490
    9591if WITH_PARSER_FOR_CANONICAL_FORM
    9692    SOURCES +=  readcf.yy
    9793endif
    98 
    9994
    10095libfactory_a_SOURCES = $(SOURCES)
     
    106101                canonicalform.h \
    107102                cf_algorithm.h \
     103                cf_cyclo.h \
    108104                cf_binom.h \
    109105                cf_defs.h \
     
    113109                cf_globals.h \
    114110                cf_gcd_smallp.h \
     111                cf_gmp.h \
    115112                cf_hnf.h \
    116113                cf_irred.h \
    117114                cf_iter.h \
    118115                cf_map.h \
     116                cf_map_ext.h \
    119117                cfNewtonPolygon.h \
    120118                cfModResultant.h \
     
    168166                lgs.h \
    169167                algext.h \
    170                 singext.h
     168                singext.h \
     169                parseutil.h
    171170
    172171noinst_HEADERS = $(factory_headers)
     172
     173libfactory_includedir=$(includedir)/factory
     174libfactory_include_HEADERS = cplusplus.h factory.h factoryconf.h
     175
    173176
    174177# Documentation
     
    185188                rm -rf doxygen
    186189
    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
    212191
    213192gftablesdir=$(datadir)/gftables
    214 gftables_DATA = gftables/10201 gftables/1024 gftables/10609 gftables/11449 \
     193dist_gftables_DATA = gftables/10201 gftables/1024 gftables/10609 gftables/11449 \
    215194gftables/11881 gftables/121 gftables/12167 gftables/125 gftables/12769 \
    216195gftables/128 gftables/1331 gftables/1369 gftables/14641 \
     
    235214
    236215
    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
     222EXTRA_PROGRAMS = gengftables
     223gengftables_SOURCES = gengftables-conway.cc
     224gengftables_LDADD = -L${builddir} -lfactory $(GMP_LIBS) $(NTL_LIBS)
     225
    257226
    258227# These files listed below are not used anywhere but are included in
    259228# the distribution. So they will be tacked on to EXTRA_DIST.
    260229
     230templatesrc =   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
     236templateincl =  templates/ftmpl_array.h \
     237                templates/ftmpl_factor.h \
     238                templates/ftmpl_list.h \
     239                templates/ftmpl_matrix.h
     240
    261241# header templates
    262 hdrtemplsrc = \
    263                 factoryconf.template \
     242hdrtemplsrc =   factoryconf.template \
    264243                factory.template
    265244
    266245# FTE source files
    267 ftestsrc =      \
    268                 ftest_io.cc \
    269                 ftest_util.cc \
    270                 ntl_util.cc
     246ftestsrc =      ftest/ftest_io.cc \
     247                ftest/ftest_util.cc \
     248                ftest/ntl_util.cc
    271249
    272250# 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
     251ftestincl =     ftest/ftest_io.h \
     252                ftest/ftest_util.h \
     253                ftest/ntl_util.h
     254
     255ftestm4src =    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
    302274ftestdistfiles = \
    303                 ftest_util.m4
    304 
    305 # gengftables.cc gengftables-conway.cc
     275                ftest/ftest_util.m4
     276
    306277EXTRA_DIST =    test_install.cc \
    307278                $(templatesrc) $(templateincl) $(hdrtemplsrc) \
    308279                $(ftestsrc) $(ftestincl) $(ftestm4src) $(ftestdistfiles) \
    309                 doxygen.cfg factory.cfg gen_cf_gmp.template \
     280                doxygen.cfg factory.cfg \
    310281                examples/application.cc \
    311282                examples/factorize.cc examples/gcd.cc \
    312283                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
     289noinst_PROGRAMS = cplusplus
     290
     291BUILT_SOURCES = cplusplus.h factory.h factoryconf.h readcf.cc
     292
     293CLEANFILES = $(BUILT_SOURCES)
    318294
    319295cplusplus_SOURCES = cplusplus.cc
     
    322298        ${builddir}/cplusplus > ${builddir}/cplusplus.h
    323299
    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!
     307all-local:
     308        [ -d ${builddir}/gftables ] || ln -s ${srcdir}/gftables ${builddir}
    328309
    329310####################################################
     
    335316TESTSSOURCES = test.cc
    336317
    337 test_g: libfactory_g.a
    338 
    339318test_g_SOURCES = $(TESTSSOURCES)
    340319test_g_CFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long -fomit-frame-pointer --no-rtti #ftmpl_inst.o
    341320test_g_LDADD = -L${builddir} -lfactory_g $(GMP_LIBS) $(NTL_LIBS)
    342321
    343 test_r: libfactory.a
    344 
    345322test_r_SOURCES = $(TESTSSOURCES)
    346323test_r_CFLAGS = -O3 -fomit-frame-pointer --no-rtti #ftmpl_inst.o
    347324test_r_LDADD = -L${builddir} -lfactory $(GMP_LIBS) $(NTL_LIBS)
     325
  • factory/configure.ac

    r83db8d rc2eb2e  
    422422    [test x$with_Singular != xyes && test x$enable_streamio != xno])
    423423
    424 AC_OUTPUT(Makefile ftest/GNUmakefile)
    425 
     424AC_CONFIG_FILES([Makefile ftest/GNUmakefile])
     425AC_OUTPUT
     426
Note: See TracChangeset for help on using the changeset viewer.