Changeset 29914f in git


Ignore:
Timestamp:
Feb 24, 2021, 2:43:03 PM (3 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
760bfdc0ba8d9abb693802fe89d96a85aca7286c
Parents:
a656da91268a191e03f239988a15d0a2c3dd181a
Message:
revert: restructure libpolys
Files:
4 added
12 edited

Legend:

Unmodified
Added
Removed
  • Singular/Makefile.am

    ra656da r29914f  
    168168ESingular_CPPFLAGS = ${AM_CPPFLAGS} -DESINGULAR -DPROTO
    169169# ESingular_LDFLAGS = -static ${AM_LDFLAGS}
    170 ESingular_LDADD =  ${top_builddir}/libpolys/libpolys.la \
    171   ${OMALLOC_LIBS} \
    172   ${top_builddir}/resources/libsingular_resources.la
     170ESingular_LDADD =  ${top_builddir}/libpolys/reporter/libreporter.la \
     171${top_builddir}/libpolys/misc/libmisc.la ${OMALLOC_LIBS} \
     172${top_builddir}/resources/libsingular_resources.la
    173173
    174174
     
    178178TSingular_CPPFLAGS = ${AM_CPPFLAGS} -DTSINGULAR -DPROTO
    179179# TSingular_LDFLAGS = -static ${AM_LDFLAGS}
    180 TSingular_LDADD = ${top_builddir}/libpolys/libpolys.la \
    181   ${OMALLOC_LIBS} \
    182   ${top_builddir}/resources/libsingular_resources.la
     180TSingular_LDADD = ${top_builddir}/libpolys/reporter/libreporter.la \
     181${top_builddir}/libpolys/misc/libmisc.la ${OMALLOC_LIBS} \
     182${top_builddir}/resources/libsingular_resources.la
    183183
    184184TSingular_SOURCES = emacs.cc fegetopt.c fegetopt.h feOptTS.inc feOpt.cc
  • kernel/Makefile.am

    ra656da r29914f  
    1515libkernelCommon_la_SOURCES  = $(SOURCES)
    1616libkernelCommon_la_LIBADD   = ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} \
    17 ${abs_top_builddir}/libpolys/libpolys.la
     17${abs_top_builddir}/libpolys/polys/libpolys.la
    1818libkernelCommon_la_LDFLAGS = $(SINGULAR_LDFLAGS)
    1919
  • libpolys/Makefile.am

    ra656da r29914f  
    33bin_SCRIPTS = libpolys-config
    44
    5 SUBDIRS=tests
     5SUBDIRS=misc reporter coeffs polys tests
    66
    77configheaderdir = ${includedir}/singular
     
    1111pkgconfigdir = $(libdir)/pkgconfig
    1212pkgconfig_DATA = libpolys.pc
    13 
    14 
    15 
    16 
    17 
    18 AM_CPPFLAGS     = -I${top_srcdir} -I${top_builddir} \
    19 ${FACTORY_INCLUDES} ${RESOURCES_INCLUDES} ${OMALLOC_INCLUDES} \
    20 ${FLINT_CFLAGS} ${GMP_CPPFLAGS}
    21 
    22 AM_CXXFLAGS =
    23 
    24 
    25 if ENABLE_P_PROCS_STATIC
    26   USE_P_PROCS_STATIC_CC = polys/templates/p_Procs_Static.cc
    27   USE_P_PROCS_STATIC = -Dp_Procs_Static
    28 else
    29   USE_P_PROCS_STATIC_CC =
    30   USE_P_PROCS_STATIC =
    31 endif
    32 
    33 if ENABLE_P_PROCS_DYNAMIC
    34   USE_P_PROCS_DYNAMIC_CC = polys/templates/p_Procs_Dynamic.cc
    35   P_PROCS_CPPFLAGS_COMMON = ${AM_CPPFLAGS} -DDYNAMIC_VERSION
    36 else
    37   USE_P_PROCS_DYNAMIC_CC =
    38   P_PROCS_CPPFLAGS_COMMON = ${AM_CPPFLAGS}
    39 endif
    40 
    41 
    42 lib_LTLIBRARIES = libpolys.la
    43 libpolysdir = $(libdir)
    44 
    45 SOURCES = \
    46         coeffs/numbers.cc coeffs/rintegers.cc coeffs/rmodulo2m.cc coeffs/rmodulon.cc coeffs/shortfl.cc \
    47         coeffs/gnumpc.cc coeffs/gnumpfl.cc coeffs/longrat.cc coeffs/longrat0.cc coeffs/ffields.cc \
    48         coeffs/modulop.cc coeffs/mpr_complex.cc coeffs/ntupel.cc \
    49         coeffs/bigintmat.cc  \
    50         coeffs/flintcf_Qrat.cc coeffs/flintcf_Q.cc coeffs/flintcf_Zn.cc \
    51         polys/monomials/p_polys.cc polys/monomials/ring.cc polys/monomials/maps.cc \
    52         polys/operations/pShallowCopyDelete.cc polys/operations/p_Mult_q.cc \
    53         polys/nc/sca.cc polys/nc/summator.cc polys/nc/ncSAFormula.cc polys/nc/ncSACache.cc polys/nc/ncSAMult.cc \
    54         polys/pDebug.cc polys/polys0.cc polys/prCopy.cc polys/prCopyMacros.h \
    55         polys/kbuckets.cc polys/sbuckets.cc polys/weight.cc polys/weight0.c polys/simpleideals.cc polys/matpol.cc \
    56         polys/sparsmat.cc \
    57         polys/shiftop.cc \
    58         ${USE_P_PROCS_STATIC_CC} ${USE_P_PROCS_DYNAMIC_CC} polys/mod_raw.cc \
    59         polys/ext_fields/algext.cc polys/ext_fields/transext.cc \
    60         polys/clapsing.cc polys/clapconv.cc  polys/flintconv.cc polys/flint_mpoly.cc\
    61         polys/nc/old.gring.cc polys/PolyEnumerator.cc \
    62         misc/int64vec.cc misc/options.c misc/sirandom.c misc/intvec.cc misc/prime.cc \
    63         reporter/dError.cc reporter/reporter.cc reporter/s_buff.cc
    64 
    65 LIBPOLYSHEADERS = polys/monomials/ring.h polys/monomials/monomials.h \
    66         polys/monomials/p_polys.h polys/monomials/maps.h polys/PolyEnumerator.h  polys/prCopy.h \
    67         polys/nc/nc.h polys/nc/sca.h polys/nc/summator.h polys/nc/ncSAFormula.h polys/nc/ncSACache.h polys/nc/ncSAMult.h polys/nc/gb_hack.h \
    68         polys/operations/pShallowCopyDelete.h \
    69         polys/templates/p_Procs.h polys/templates/p_MemAdd.h polys/templates/p_MemCmp.h \
    70         polys/kbuckets.h polys/sbuckets.h polys/simpleideals.h polys/weight.h polys/matpol.h \
    71         polys/sparsmat.h polys/clapsing.h polys/clapconv.h polys/coeffrings.h polys/flintconv.h polys/flint_mpoly.h\
    72         polys/shiftop.h \
    73         polys/ext_fields/algext.h polys/ext_fields/transext.h polys/mod_raw.h \
    74         misc/mylimits.h misc/options.h misc/intvec.h misc/int64vec.h \
    75         misc/sirandom.h misc/prime.h misc/auxiliary.h \
    76         reporter/reporter.h reporter/s_buff.h reporter/si_signals.h \
    77         coeffs/coeffs.h coeffs/numbers.h coeffs/si_gmp.h coeffs/gnumpc.h coeffs/gnumpfl.h coeffs/longrat.h coeffs/modulop.h coeffs/modulop_inl.h \
    78         coeffs/ffields.h coeffs/rintegers.h coeffs/rmodulo2m.h coeffs/rmodulon.h \
    79         coeffs/shortfl.h coeffs/mpr_complex.h coeffs/mpr_global.h coeffs/numstats.h coeffs/ntupel.h \
    80         coeffs/bigintmat.h coeffs/Enumerator.h \
    81         coeffs/flintcf_Qrat.h coeffs/flintcf_Q.h coeffs/flintcf_Zn.h
    82 
    83 libpolys_la_includedir  =$(includedir)/singular
    84 libpolys_la_include_HEADERS=${LIBPOLYSHEADERS}
    85 
    86 EXTRA_DIST = \
    87         polys/prCopy.pl polys/prCopyTemplate.cc \
    88         polys/templates/p_Procs_Lib.cc polys/templates/p_MemCopy.h polys/templates/p_Numbers.h \
    89         polys/templates/p_Procs_Set.h polys/templates/p_Procs_Static.h polys/templates/p_Procs_Dynamic.h \
    90         polys/templates/p_Procs_Impl.h polys/templates/p_Delete__T.cc polys/templates/p_Copy__T.cc \
    91         polys/templates/p_ShallowCopyDelete__T.cc polys/templates/p_Mult_nn__T.cc \
    92         polys/templates/pp_Mult_nn__T.cc polys/templates/pp_Mult_mm__T.cc polys/templates/p_Mult_mm__T.cc \
    93         polys/templates/pp_Mult_Coeff_mm_DivSelect__T.cc polys/templates/pp_Mult_nn__T.cc \
    94         polys/templates/pp_Mult_Coeff_mm_DivSelectMult__T.cc \
    95         polys/templates/pp_Mult_mm_Noether__T.cc polys/operations/p_Mult_q.h \
    96         polys/templates/p_kBucketSetLm__T.cc polys/templates/p_Minus_mm_Mult_qq__T.cc \
    97         polys/templates/p_Merge_q__T.cc polys/templates/p_Add_q__T.cc polys/templates/p_Neg__T.cc \
    98         coeffs/rintegers2.cc coeffs/rintegers3.cc
    99 
    100 
    101 p_Procs_FieldGeneral_la_CPPFLAGS = -Dp_Procs_FieldGeneral ${P_PROCS_CPPFLAGS_COMMON}
    102 p_Procs_FieldIndep_la_CPPFLAGS = -Dp_Procs_FieldIndep ${P_PROCS_CPPFLAGS_COMMON}
    103 p_Procs_FieldQ_la_CPPFLAGS = -Dp_Procs_FieldQ ${P_PROCS_CPPFLAGS_COMMON}
    104 p_Procs_FieldZp_la_CPPFLAGS = -Dp_Procs_FieldZp ${P_PROCS_CPPFLAGS_COMMON}
    105 
    106 P_PROCS_MODULE_LDFLAGS = -shared -module -dynamic -export-dynamic -avoid-version -weak_reference_mismatches weak -undefined dynamic_lookup -flat_namespace
    107 
    108 p_Procs_FieldGeneral_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
    109 p_Procs_FieldIndep_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
    110 p_Procs_FieldQ_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
    111 p_Procs_FieldZp_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
    112 
    113 P_PROCS = polys/templates/p_Procs_Lib.cc
    114 
    115 p_Procs_FieldGeneral_la_SOURCES = ${P_PROCS}
    116 p_Procs_FieldIndep_la_SOURCES = ${P_PROCS}
    117 p_Procs_FieldQ_la_SOURCES = ${P_PROCS}
    118 p_Procs_FieldZp_la_SOURCES = ${P_PROCS}
    119 
    120 
    121 moduledir = $(libexecdir)/singular/MOD
    122 
    123 if ENABLE_P_PROCS_DYNAMIC
    124   module_LTLIBRARIES=p_Procs_FieldGeneral.la p_Procs_FieldIndep.la p_Procs_FieldQ.la p_Procs_FieldZp.la
    125 endif
    126 
    127 libpolys_includedir=$(includedir)/singular/polys
    128 
    129 nobase_libpolys_include_HEADERS = $(LIBPOLYSHEADERS)
    130 
    131 libpolys_la_SOURCES = ${SOURCES}
    132 
    133 EXTRA_libpolys_la_SOURCES = polys/templates/p_Procs_Static.cc polys/templates/p_Procs_Dynamic.cc
    134 
    135 libpolys_la_LDFLAGS= -no-undefined $(SINGULAR_LDFLAGS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} -release ${PACKAGE_VERSION}
    136 libpolys_la_LIBADD = ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} ${FACTORY_LIBS}
    137 
    138 
    139 #################################################
    140 # autogenerated sources
    141 noinst_PROGRAMS = p_Procs_Generate
    142 nodist_p_Procs_Generate_SOURCES = polys/templates/p_Procs.inc
    143 p_Procs_Generate_SOURCES = polys/p_Procs_Generate.cc
    144 p_Procs_Generate_CPPFLAGS = ${AM_CPPFLAGS} ${USE_P_PROCS_STATIC}
    145 BUILT_SOURCES = polys/prCopy.inc gftables MOD polys/templates/p_Procs.inc
    146 
    147 polys/templates/p_Procs.inc: polys/p_Procs_Generate.cc
    148         $(MAKE) $(AM_MAKEFLAGS) CXX="$(CXX_FOR_BUILD)" \
    149         CXXFLAGS="$(CXXFLAGS_FOR_BUILD)" \
    150         CPPFLAGS="-I${abs_top_srcdir} -I${abs_top_builddir} -I${top_srcdir} -I${top_builddir} ${FACTORY_INCLUDES} $(CPPFLAGS_FOR_BUILD) ${USE_P_PROCS_STATIC}" \
    151         LDFLAGS="" LIBS="" p_Procs_Generate
    152         ./p_Procs_Generate$(BUILD_EXEEXT) > ./polys/templates/p_Procs.inc
    153 
    154 polys/prCopy.inc: polys/prCopy.pl
    155         perl ${srcdir}/polys/prCopy.pl >  polys/prCopy.inc
    156 
    157 CLEANFILES = $(BUILT_SOURCES) p_Procs_Generate
    158 
    159 ######################################################################
    160 
    161 TESTS = test
    162 check_PROGRAMS = $(TESTS)
    163 
    164 test_LDADD=libpolys.la \
    165 $(FACTORY_LIBS) $(RESOURCES_LIBS) $(OMALLOC_LIBS) \
    166 $(FLINT_LIBS) $(GMP_LIBS) $(NTL_LIBS)
    167 
    168 test_SOURCES=test.cc
    169 
    170 gftables: ${top_srcdir}/../factory/gftables
    171         ln -snf ${top_srcdir}/../factory/gftables ${builddir}/gftables
    172 
    173 MOD:
    174         if [ -d "${top_builddir}/libpolys/.libs" ]; then \
    175           ln -snf ${top_builddir}/libpolys/.libs/ ${abs_builddir}/MOD; \
    176         fi
    177 
  • libpolys/configure.ac

    ra656da r29914f  
    183183
    184184AC_CONFIG_FILES([Makefile])
     185AC_CONFIG_FILES([misc/Makefile])
     186AC_CONFIG_FILES([reporter/Makefile])
     187AC_CONFIG_FILES([coeffs/Makefile])
     188AC_CONFIG_FILES([polys/Makefile])
    185189AC_CONFIG_FILES([tests/Makefile])
    186190AC_CONFIG_FILES([libpolys-config], [chmod +x libpolys-config])
  • libpolys/polys/monomials/p_polys.cc

    ra656da r29914f  
    3939
    4040#ifdef HAVE_PLURAL
    41 #include "polys/nc/nc.h"
    42 #include "polys/nc/sca.h"
     41#include "nc/nc.h"
     42#include "nc/sca.h"
    4343#endif
    4444
     
    4747#endif
    4848
    49 #include "polys/clapsing.h"
     49#include "clapsing.h"
    5050
    5151/*
  • libpolys/polys/monomials/ring.cc

    ra656da r29914f  
    3434
    3535
    36 #include "polys/ext_fields/algext.h"
    37 #include "polys/ext_fields/transext.h"
     36#include "ext_fields/algext.h"
     37#include "ext_fields/transext.h"
    3838
    3939
  • libpolys/polys/nc/ncSACache.cc

    ra656da r29914f  
    3838#include "coeffs/numbers.h"
    3939
    40 #include "polys/nc/ncSACache.h" // for CCacheHash etc classes
     40#include "nc/ncSACache.h" // for CCacheHash etc classes
    4141
    42 #include "polys/monomials/ring.h"
    43 #include "polys/monomials/p_polys.h"
     42#include "monomials/ring.h"
     43#include "monomials/p_polys.h"
    4444
    4545
  • libpolys/polys/nc/ncSAFormula.cc

    ra656da r29914f  
    3737#include "coeffs/numbers.h"
    3838
    39 #include "polys/nc/ncSAFormula.h"
     39#include "nc/ncSAFormula.h"
    4040// for CFormulaPowerMultiplier
    4141
    42 #include "polys/monomials/ring.h"
    43 #include "polys/monomials/p_polys.h"
    44 
    45 #include "polys/nc/sca.h"
     42#include "monomials/ring.h"
     43#include "monomials/p_polys.h"
     44
     45#include "nc/sca.h"
    4646
    4747
  • libpolys/polys/nc/ncSAMult.cc

    ra656da r29914f  
    3333
    3434# define PLURAL_INTERNAL_DECLARATIONS
    35 #include "polys/nc/nc.h"
    36 #include "polys/nc/sca.h"
     35#include "nc/nc.h"
     36#include "nc/sca.h"
    3737
    3838#include "misc/options.h"
     
    4040
    4141
    42 #include "polys/monomials/ring.h"
    43 #include "polys/monomials/p_polys.h"
    44 
    45 #include "polys/nc/ncSAMult.h" // for CMultiplier etc classes
     42#include "monomials/ring.h"
     43#include "monomials/p_polys.h"
     44
     45#include "nc/ncSAMult.h" // for CMultiplier etc classes
    4646// #include "nc/sca.h" // for SCA
    4747
  • libpolys/polys/templates/p_Procs_Dynamic.cc

    ra656da r29914f  
    3737#define p_Procs_Kernel
    3838
    39 #include "polys/templates/p_Procs.inc"
    40 
    41 #include "polys/templates/p_Procs_Dynamic.h"
     39#include "templates/p_Procs.inc"
     40
     41#include "templates/p_Procs_Dynamic.h"
    4242// include general p_Proc stuff
    43 #include "polys/templates/p_Procs_Impl.h"
    44 
    45 #include "polys/mod_raw.h"
     43#include "templates/p_Procs_Impl.h"
     44
     45#include "mod_raw.h"
    4646
    4747// define to bound for length of p_Proc name
     
    267267#endif
    268268
    269 #include "polys/templates/p_Procs_Set.h"
    270 
    271 #endif
    272 
     269#include "templates/p_Procs_Set.h"
     270
     271#endif
     272
  • libpolys/polys/templates/p_Procs_Lib.cc

    ra656da r29914f  
    2929#include "polys/kbuckets.h"
    3030
    31 #include "polys/templates/p_Procs.inc"
     31#include "templates/p_Procs.inc"
    3232
  • libpolys/polys/templates/p_Procs_Set.h

    ra656da r29914f  
    1717#include "misc/auxiliary.h"
    1818#ifdef HAVE_SHIFTBBA
    19 #include "polys/shiftop.h"
     19#include "shiftop.h"
    2020#endif
    2121
Note: See TracChangeset for help on using the changeset viewer.