source: git/libpolys/coeffs/Makefile.am @ 5e28ea

spielwiese
Last change on this file since 5e28ea was 5e28ea, checked in by Oleksandr Motsak <motsak@…>, 11 years ago
Temporary removed -Winline TODO: revert this upon starting optimizing inline's
  • Property mode set to 100644
File size: 3.5 KB
RevLine 
[8e7e6d4]1CXXTEMPLFLAGS =-ftrapv 
[86b7aca]2## -fno-implicit-templates
[6bec87]3
[4bc0ab9]4AM_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}
5
[2b43ac]6if WANT_DEBUG
7  LIB_G=libcoeffs_g.la
8else
9  LIB_G=
10endif
11
[fd201f]12libcoeffs_LTLIBRARIES = libcoeffs.la ${LIB_G}
[9f524d]13libcoeffsdir = $(libdir)/singular
14
[6d672b4]15libcoeffs_la_CFLAGS   = -O3 -fomit-frame-pointer ${PIPE}
16libcoeffs_g_la_CFLAGS = ${PIPE}
[630ca9]17
[ebf138]18libcoeffs_la_CXXFLAGS   = -O3 -fomit-frame-pointer ${PIPE} ${CXXTEMPLFLAGS}
[5e28ea]19libcoeffs_g_la_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS}
[630ca9]20# -fdiagnostics-show-option
[014b65]21
[4bc0ab9]22libcoeffs_la_CPPFLAGS   = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
23libcoeffs_g_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
[630ca9]24
25
[1b8a19]26# noinst_HEADERS= \
27#       gnumpc.h gnumpfl.h longrat.h modulop.h ffields.h \
28#       rintegers.h rmodulo2m.h rmodulon.h shortfl.h \
29#       mpr_complex.h mpr_global.h
[014b65]30
[b7d64b]31
[630ca9]32SOURCES = \
33        numbers.cc rintegers.cc rmodulo2m.cc rmodulon.cc shortfl.cc \
34        gnumpc.cc gnumpfl.cc longrat.cc longrat0.cc ffields.cc \
[84fc1f]35        modulop.cc mpr_complex.cc \
36  bigintmat.cc
[d44785]37
[6d672b4]38libcoeffs_la_SOURCES   = $(SOURCES)
39libcoeffs_g_la_SOURCES = $(SOURCES)
[630ca9]40
[c2eb2e]41libcoeffs_includedir  =$(includedir)/singular/coeffs
[84fc1f]42libcoeffs_include_HEADERS = coeffs.h numbers.h si_gmp.h gnumpc.h gnumpfl.h longrat.h modulop.h ffields.h rintegers.h rmodulo2m.h rmodulon.h shortfl.h mpr_complex.h mpr_global.h \
[98474f]43  bigintmat.h Enumerator.h
[1b8a19]44
[630ca9]45
[3b8a6e]46## for testing...
[8872ef]47if ENABLE_FACTORY
48  USE_FACTORY = -L${top_builddir}/../factory
49else
50  USE_FACTORY =
51endif
[630ca9]52
[3b8a6e]53AMLDFLAGS = -L${abs_top_builddir}/coeffs -L${abs_top_builddir}/reporter -L${top_builddir}/misc ${USE_FACTORY} -L${top_builddir}/../omalloc -L${abs_top_builddir}/../findexec
[86b7aca]54
55TESTS_ENVIRONMENT = SINGULARPATH='${top_srcdir}/../factory:${top_builddir}/../factory'
56TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='$(top_builddir)'
57
[17228e]58if WANT_DEBUG
[a250e1]59TESTS = test_s_g test_s_r test_d_g test_d_r
[17228e]60else
61TESTS = test_s_r test_d_r
62endif
[8872ef]63check_PROGRAMS = $(TESTS)
64
[a250e1]65test_s_r_SOURCES = test.cc
66test_s_g_SOURCES = test.cc
[86b7aca]67
[a250e1]68test_d_r_SOURCES = test.cc
69test_d_g_SOURCES = test.cc
[014b65]70
71
[b4a676]72test_s_r_LDADD = -lcoeffs -lreporter -lmisc ${FACTORY_LIBS} -lomalloc -lfindexec ${NTL_LIBS} ${GMP_LIBS}
73test_s_g_LDADD = -lcoeffs_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g -lfindexec_g ${NTL_LIBS} ${GMP_LIBS}
[8fee84]74
[b4a676]75test_d_r_LDADD = -lcoeffs -lreporter -lmisc ${FACTORY_LIBS} -lomalloc -lfindexec ${NTL_LIBS} ${GMP_LIBS}
76test_d_g_LDADD = -lcoeffs_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g -lfindexec_g ${NTL_LIBS} ${GMP_LIBS}
[014b65]77
[a250e1]78
79test_s_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE}
80test_s_g_CFLAGS = ${PIPE}
81
82test_d_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE}
83test_d_g_CFLAGS = ${PIPE}
84
[bd948c]85
86
[ebf138]87test_s_r_CXXFLAGS = -O3 -fomit-frame-pointer ${PIPE} ${CXXTEMPLFLAGS}
[86b7aca]88# -fimplicit-templates
[5e28ea]89test_s_g_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS}
[86b7aca]90# -fimplicit-templates
[630ca9]91# -fdiagnostics-show-option
[ebf138]92test_d_r_CXXFLAGS = -O3 -fomit-frame-pointer ${PIPE} ${CXXTEMPLFLAGS}
[5e28ea]93test_d_g_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS}
[a250e1]94
95
[1d3be3]96
[4bc0ab9]97test_s_r_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
98test_s_g_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
99
100test_d_r_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
101test_d_g_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
[1d3be3]102
[8872ef]103
[3b8a6e]104test_s_r_LDFLAGS = -static ${AMLDFLAGS}
105test_s_g_LDFLAGS = -static ${AMLDFLAGS}
[0ff203]106
[3b8a6e]107test_d_r_LDFLAGS = ${AMLDFLAGS}
108test_d_g_LDFLAGS = ${AMLDFLAGS}
Note: See TracBrowser for help on using the repository browser.