source: git/libpolys/coeffs/Makefile.am @ 8e7e6d4

spielwiese
Last change on this file since 8e7e6d4 was 8e7e6d4, checked in by Oleksandr Motsak <motsak@…>, 11 years ago
Testing with -ftrapv
  • Property mode set to 100644
File size: 3.5 KB
Line 
1CXXTEMPLFLAGS =-ftrapv 
2## -fno-implicit-templates
3
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
6if WANT_DEBUG
7  LIB_G=libcoeffs_g.la
8else
9  LIB_G=
10endif
11
12libcoeffs_LTLIBRARIES = libcoeffs.la ${LIB_G}
13libcoeffsdir = $(libdir)/singular
14
15libcoeffs_la_CFLAGS   = -O3 -fomit-frame-pointer ${PIPE}
16libcoeffs_g_la_CFLAGS = ${PIPE}
17
18libcoeffs_la_CXXFLAGS   = -O3 -fomit-frame-pointer ${PIPE} ${CXXTEMPLFLAGS}
19libcoeffs_g_la_CXXFLAGS = -g -Wextra -Winline -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS}
20# -fdiagnostics-show-option
21
22libcoeffs_la_CPPFLAGS   = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
23libcoeffs_g_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
24
25
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
30
31
32SOURCES = \
33        numbers.cc rintegers.cc rmodulo2m.cc rmodulon.cc shortfl.cc \
34        gnumpc.cc gnumpfl.cc longrat.cc longrat0.cc ffields.cc \
35        modulop.cc mpr_complex.cc \
36  bigintmat.cc
37
38libcoeffs_la_SOURCES   = $(SOURCES)
39libcoeffs_g_la_SOURCES = $(SOURCES)
40
41libcoeffs_includedir  =$(includedir)/singular/coeffs
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 \
43  bigintmat.h Enumerator.h
44
45
46## for testing...
47if ENABLE_FACTORY
48  USE_FACTORY = -L${top_builddir}/../factory
49else
50  USE_FACTORY =
51endif
52
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
54
55TESTS_ENVIRONMENT = SINGULARPATH='${top_srcdir}/../factory:${top_builddir}/../factory'
56TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='$(top_builddir)'
57
58if WANT_DEBUG
59TESTS = test_s_g test_s_r test_d_g test_d_r
60else
61TESTS = test_s_r test_d_r
62endif
63check_PROGRAMS = $(TESTS)
64
65test_s_r_SOURCES = test.cc
66test_s_g_SOURCES = test.cc
67
68test_d_r_SOURCES = test.cc
69test_d_g_SOURCES = test.cc
70
71
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}
74
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}
77
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
85
86
87test_s_r_CXXFLAGS = -O3 -fomit-frame-pointer ${PIPE} ${CXXTEMPLFLAGS}
88# -fimplicit-templates
89test_s_g_CXXFLAGS = -g -Wextra -Winline -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS}
90# -fimplicit-templates
91# -fdiagnostics-show-option
92test_d_r_CXXFLAGS = -O3 -fomit-frame-pointer ${PIPE} ${CXXTEMPLFLAGS}
93test_d_g_CXXFLAGS = -g -Wextra -Winline -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS}
94
95
96
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
102
103
104test_s_r_LDFLAGS = -static ${AMLDFLAGS}
105test_s_g_LDFLAGS = -static ${AMLDFLAGS}
106
107test_d_r_LDFLAGS = ${AMLDFLAGS}
108test_d_g_LDFLAGS = ${AMLDFLAGS}
Note: See TracBrowser for help on using the repository browser.