Changeset 2b43ac in git


Ignore:
Timestamp:
Aug 21, 2012, 1:23:20 PM (10 years ago)
Author:
François Bissey <francois.bissey@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '2234726c50d679d6664181a5c72f75a6fd64a787')
Children:
05051f9850bc9dcf9b7747cbc3bf2bd96bf76d7f
Parents:
4fb3a73a9ab769b9cdb2ec0db33cdbf9e88bfedd
Message:
Make debuging objects (_g) a configure option.
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • Singular/Makefile.am

    r4fb3a73 r2b43ac  
    2020########################### libSingular* #########################
    2121
    22 libSingular_LTLIBRARIES = libSingular.la libSingular_g.la
     22if WANT_DEBUG
     23  LIB_G=libSingular_g.la
     24else
     25  LIB_G=
     26endif
     27
     28libSingular_LTLIBRARIES = libSingular.la ${LIB_G}
    2329libSingulardir = $(libdir)/singular
    2430
     
    182188########################### Singular* #########################
    183189
    184 EXTRA_PROGRAMS = Singulard Singulardg libparse
     190if WANT_DEBUG
     191  EXTRA_PROGRAMS = Singulard Singulardg libparse
     192else
     193  EXTRA_PROGRAMS = Singulard libparse
     194endif
    185195
    186196# the "optional_programs" variable should be defined in the configure
     
    188198optional_Singular_programs =
    189199
    190 bin_PROGRAMS = Singular Singularg ESingular TSingular $(optional_Singular_programs)
     200if WANT_DEBUG
     201  bin_PROGRAMS = Singular Singularg ESingular TSingular $(optional_Singular_programs)
     202else
     203  bin_PROGRAMS = Singular ESingular TSingular $(optional_Singular_programs)
     204endif
    191205
    192206AMLDFLAGS = -L${abs_top_builddir}/Singular -L${abs_top_builddir}/numeric -L${abs_top_builddir}/kernel -L${abs_top_builddir}/libpolys/polys  -L${top_builddir}/libpolys/coeffs -L${top_builddir}/libpolys/reporter -L${top_builddir}/libpolys/misc $(USE_FACTORY) -L${abs_top_builddir}/omalloc -L${abs_top_builddir}/findexec
  • configure.ac

    r4fb3a73 r2b43ac  
    125125fi
    126126
     127AC_ARG_ENABLE(debug, AS_HELP_STRING([--disable-debug], [do NOT build the debugging version of the libraries]),
     128 [if test "x$enableval"  = "xyes"; then
     129   ENABLE_DEBUG=yes
     130 fi], ENABLE_DEBUG=no)
     131
     132AM_CONDITIONAL(WANT_DEBUG, test x"${ENABLE_DEBUG}" == xyes)
     133
    127134AC_CONFIG_SUBDIRS([findexec])
    128135AC_CONFIG_SUBDIRS([omalloc])
  • factory/Makefile.am

    r4fb3a73 r2b43ac  
    99AM_CPPFLAGS = -I${builddir}/include -I${srcdir}/include $(FLINT_CFLAGS) ${GMP_CFLAGS} ${NTL_CFLAGS} ${OMALLOC_CFLAGS}
    1010
    11 lib_LTLIBRARIES = libfactory.la libfactory_g.la
     11if WANT_DEBUG
     12  LIB_G=libfactory_g.la
     13else
     14  LIB_G=
     15endif
     16
     17lib_LTLIBRARIES = libfactory.la ${LIB_G}
    1218
    1319libfactory_la_CXXFLAGS   = -O3 -fomit-frame-pointer ${CXXTEMPLFLAGS}
  • factory/configure.ac

    r4fb3a73 r2b43ac  
    9090  ,
    9191  enable_debugoutput=no)
     92
     93AC_ARG_ENABLE(debug, AS_HELP_STRING([--disable-debug], [do NOT build the debugging version of the libraries]),
     94 [if test "x$enableval"  = "xyes"; then
     95   ENABLE_DEBUG=yes
     96 fi], ENABLE_DEBUG=no)
     97
     98AM_CONDITIONAL(WANT_DEBUG, test x"${ENABLE_DEBUG}" == xyes)
    9299
    93100#
  • factory/libfac/Makefile.am

    r4fb3a73 r2b43ac  
    1 noinst_LTLIBRARIES=libfac.la libfac_g.la
     1if WANT_DEBUG
     2  LIB_G=libfac_g.la
     3else
     4  LIB_G=
     5endif
     6
     7noinst_LTLIBRARIES=libfac.la ${LIB_G}
    28
    39CXXTEMPLFLAGS =  ## -fno-implicit-templates
  • findexec/Makefile.am

    r4fb3a73 r2b43ac  
    11ACLOCAL_AMFLAGS = -I ../m4
    22
    3 libfindexec_LTLIBRARIES = libfindexec.la libfindexec_g.la
     3if WANT_DEBUG
     4  LIB_G=libfindexec_g.la
     5else
     6  LIB_G=
     7endif
     8
     9libfindexec_LTLIBRARIES = libfindexec.la ${LIB_G}
    410libfindexecdir = $(libdir)/singular
    511
  • findexec/configure.ac

    r4fb3a73 r2b43ac  
    5858SING_CHECK_PIPE
    5959
     60AC_ARG_ENABLE(debug, AS_HELP_STRING([--disable-debug], [do NOT build the debugging version of the libraries]),
     61 [if test "x$enableval"  = "xyes"; then
     62   ENABLE_DEBUG=yes
     63 fi], ENABLE_DEBUG=no)
     64
     65AM_CONDITIONAL(WANT_DEBUG, test x"${ENABLE_DEBUG}" == xyes)
     66
    6067
    6168# CFLAGS
  • kernel/Makefile.am

    r4fb3a73 r2b43ac  
    1212CXXTEMPLFLAGS = ## -fno-implicit-templates
    1313
    14 libkernel_LTLIBRARIES = libkernel.la libkernel_g.la
     14if WANT_DEBUG
     15  LIB_G=libkernel_g.la
     16else
     17  LIB_G=
     18endif
     19
     20libkernel_LTLIBRARIES = libkernel.la ${LIB_G}
    1521libkerneldir = $(libdir)/singular
    1622
  • libpolys/coeffs/Makefile.am

    r4fb3a73 r2b43ac  
    44AM_CPPFLAGS = -I${top_srcdir} -I${top_srcdir}/.. -I${top_builddir} -I${top_builddir}/.. -I${srcdir} -I${top_srcdir}/../factory/include -I${top_builddir}/../factory/include ${FACTORY_CFLAGS} ${GMP_CFLAGS} ${NTL_CFLAGS}
    55
    6 lib_LTLIBRARIES = libcoeffs.la libcoeffs_g.la
     6if WANT_DEBUG
     7  LIB_G=libcoeffs_g.la
     8else
     9  LIB_G=
     10endif
     11
     12lib_LTLIBRARIES = libcoeffs.la ${LIB_G}
    713libcoeffsdir = $(libdir)/singular
    814
  • libpolys/configure.ac

    r4fb3a73 r2b43ac  
    115115fi
    116116
     117AC_ARG_ENABLE(debug, AS_HELP_STRING([--disable-debug], [do NOT build the debugging version of the libraries]),
     118 [if test "x$enableval"  = "xyes"; then
     119   ENABLE_DEBUG=yes
     120 fi], ENABLE_DEBUG=no)
     121
     122AM_CONDITIONAL(WANT_DEBUG, test x"${ENABLE_DEBUG}" == xyes)
     123
    117124# AC_SUBST(PREFIX)
    118125AC_DEFINE_UNQUOTED(INSTALL_PREFIX,"$PREFIX",Prefix)
  • libpolys/misc/Makefile.am

    r4fb3a73 r2b43ac  
    44AM_CPPFLAGS = -I${top_srcdir} -I${top_srcdir}/.. -I${top_builddir} -I${top_builddir}/..
    55
    6 lib_LTLIBRARIES = libmisc.la libmisc_g.la
     6if WANT_DEBUG
     7  LIB_G=libmisc_g.la
     8else
     9  LIB_G=
     10endif
     11
     12lib_LTLIBRARIES = libmisc.la ${LIB_G}
    713libmiscdir = $(libdir)/singular
    814
  • libpolys/polys/Makefile.am

    r4fb3a73 r2b43ac  
    2727endif
    2828
    29 libpolys_LTLIBRARIES = libpolys.la libpolys_g.la
     29if WANT_DEBUG
     30  LIB_G=libpolys_g.la
     31  MOD_G=p_Procs_FieldGeneral_g.la p_Procs_FieldIndep_g.la p_Procs_FieldQ_g.la p_Procs_FieldZp_g.la
     32else
     33  LIB_G=
     34  MOD_G=
     35endif
     36
     37libpolys_LTLIBRARIES = libpolys.la ${LIB_G}
    3038libpolysdir = $(libdir)/singular
    3139
     
    117125
    118126if ENABLE_P_PROCS_DYNAMIC
    119   module_LTLIBRARIES=p_Procs_FieldGeneral.la p_Procs_FieldIndep.la p_Procs_FieldQ.la p_Procs_FieldZp.la \
    120                      p_Procs_FieldGeneral_g.la p_Procs_FieldIndep_g.la p_Procs_FieldQ_g.la p_Procs_FieldZp_g.la
     127  module_LTLIBRARIES=p_Procs_FieldGeneral.la p_Procs_FieldIndep.la p_Procs_FieldQ.la p_Procs_FieldZp.la ${MOD_G}
    121128endif
    122129
  • libpolys/reporter/Makefile.am

    r4fb3a73 r2b43ac  
    44AM_CPPFLAGS = -I${top_srcdir} -I${top_srcdir}/.. -I${top_builddir} -I${top_builddir}/..
    55
    6 lib_LTLIBRARIES = libreporter.la libreporter_g.la
     6if WANT_DEBUG
     7  LIB_G=libreporter_g.la
     8else
     9  LIB_G=
     10endif
     11
     12lib_LTLIBRARIES = libreporter.la ${LIB_G}
    713libreporterdir = $(libdir)/singular
    814
  • numeric/Makefile.am

    r4fb3a73 r2b43ac  
    1 libnumeric_LTLIBRARIES = libnumeric.la libnumeric_g.la
     1if WANT_DEBUG
     2  LIB_G=libnumeric_g.la
     3else
     4  LIB_G=
     5endif
     6
     7libnumeric_LTLIBRARIES = libnumeric.la ${LIB_G}
    28libnumericdir = $(libdir)/singular
    39
  • omalloc/Makefile.am

    r4fb3a73 r2b43ac  
    11ACLOCAL_AMFLAGS = -I ../m4
    22
    3 lib_LTLIBRARIES=libomalloc.la libomalloc_g.la
     3if WANT_DEBUG
     4  LIB_G=libomalloc_g.la
     5else
     6  LIB_G=
     7endif
     8
     9lib_LTLIBRARIES=libomalloc.la ${LIB_G}
    410
    511libomalloc_includedir=$(includedir)/omalloc
  • omalloc/configure.ac

    r4fb3a73 r2b43ac  
    2424dnl help for configure
    2525dnl
     26AC_ARG_ENABLE(debug, AS_HELP_STRING([--disable-debug], [do NOT build the debugging version of the libraries]),
     27 [if test "x$enableval"  = "xyes"; then
     28   ENABLE_DEBUG=yes
     29 fi], ENABLE_DEBUG=no)
     30
     31AM_CONDITIONAL(WANT_DEBUG, test x"${ENABLE_DEBUG}" == xyes)
     32
    2633AC_ARG_WITH(
    2734  external-config_h,
  • xalloc/Makefile.am

    r4fb3a73 r2b43ac  
    11ACLOCAL_AMFLAGS = -I ../m4
    22
    3 libomalloc_LTLIBRARIES=libomalloc.la libomalloc_g.la
     3if WANT_DEBUG
     4  LIB_G=libomalloc_g.la
     5else
     6  LIB_G=
     7endif
     8
     9libomalloc_LTLIBRARIES=libomalloc.la ${LIB_G}
    410libomallocdir = $(libdir)/
    511
Note: See TracChangeset for help on using the changeset viewer.