1 | CXXTEMPLFLAGS = |
---|
2 | ## -fno-implicit-templates |
---|
3 | |
---|
4 | AM_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 | |
---|
6 | lib_LTLIBRARIES = libcoeffs.la libcoeffs_g.la |
---|
7 | libcoeffsdir = $(libdir)/singular |
---|
8 | |
---|
9 | libcoeffs_la_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
10 | libcoeffs_g_la_CFLAGS = ${PIPE} |
---|
11 | |
---|
12 | libcoeffs_la_CXXFLAGS = -O3 -fomit-frame-pointer ${PIPE} ${CXXTEMPLFLAGS} |
---|
13 | libcoeffs_g_la_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS} |
---|
14 | # -fdiagnostics-show-option |
---|
15 | |
---|
16 | libcoeffs_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
17 | libcoeffs_g_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H |
---|
18 | |
---|
19 | |
---|
20 | # noinst_HEADERS= \ |
---|
21 | # gnumpc.h gnumpfl.h longrat.h modulop.h ffields.h \ |
---|
22 | # rintegers.h rmodulo2m.h rmodulon.h shortfl.h \ |
---|
23 | # mpr_complex.h mpr_global.h |
---|
24 | |
---|
25 | |
---|
26 | SOURCES = \ |
---|
27 | numbers.cc rintegers.cc rmodulo2m.cc rmodulon.cc shortfl.cc \ |
---|
28 | gnumpc.cc gnumpfl.cc longrat.cc longrat0.cc ffields.cc \ |
---|
29 | modulop.cc mpr_complex.cc \ |
---|
30 | bigintmat.cc |
---|
31 | |
---|
32 | libcoeffs_la_SOURCES = $(SOURCES) |
---|
33 | libcoeffs_g_la_SOURCES = $(SOURCES) |
---|
34 | |
---|
35 | libcoeffs_includedir =$(includedir)/singular/coeffs |
---|
36 | libcoeffs_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 \ |
---|
37 | bigintmat.h Enumerator.h |
---|
38 | |
---|
39 | |
---|
40 | ## for testing... |
---|
41 | if ENABLE_FACTORY |
---|
42 | USE_FACTORY = -L${top_builddir}/../factory |
---|
43 | else |
---|
44 | USE_FACTORY = |
---|
45 | endif |
---|
46 | |
---|
47 | AMLDFLAGS = -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 |
---|
48 | |
---|
49 | TESTS_ENVIRONMENT = SINGULARPATH='${top_srcdir}/../factory:${top_builddir}/../factory' |
---|
50 | TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='$(top_builddir)' |
---|
51 | |
---|
52 | |
---|
53 | TESTS = test_s_g test_s_r test_d_g test_d_r |
---|
54 | check_PROGRAMS = $(TESTS) |
---|
55 | |
---|
56 | test_s_r_SOURCES = test.cc |
---|
57 | test_s_g_SOURCES = test.cc |
---|
58 | |
---|
59 | test_d_r_SOURCES = test.cc |
---|
60 | test_d_g_SOURCES = test.cc |
---|
61 | |
---|
62 | |
---|
63 | test_s_r_LDADD = -lcoeffs -lreporter -lmisc ${FACTORY_LIBS} -lomalloc -lfindexec ${NTL_LIBS} ${GMP_LIBS} |
---|
64 | test_s_g_LDADD = -lcoeffs_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g -lfindexec_g ${NTL_LIBS} ${GMP_LIBS} |
---|
65 | |
---|
66 | test_d_r_LDADD = -lcoeffs -lreporter -lmisc ${FACTORY_LIBS} -lomalloc -lfindexec ${NTL_LIBS} ${GMP_LIBS} |
---|
67 | test_d_g_LDADD = -lcoeffs_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g -lfindexec_g ${NTL_LIBS} ${GMP_LIBS} |
---|
68 | |
---|
69 | |
---|
70 | test_s_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
71 | test_s_g_CFLAGS = ${PIPE} |
---|
72 | |
---|
73 | test_d_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
74 | test_d_g_CFLAGS = ${PIPE} |
---|
75 | |
---|
76 | |
---|
77 | |
---|
78 | test_s_r_CXXFLAGS = -O3 -fomit-frame-pointer ${PIPE} ${CXXTEMPLFLAGS} |
---|
79 | # -fimplicit-templates |
---|
80 | test_s_g_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS} |
---|
81 | # -fimplicit-templates |
---|
82 | # -fdiagnostics-show-option |
---|
83 | test_d_r_CXXFLAGS = -O3 -fomit-frame-pointer ${PIPE} ${CXXTEMPLFLAGS} |
---|
84 | test_d_g_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS} |
---|
85 | |
---|
86 | |
---|
87 | |
---|
88 | test_s_r_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
89 | test_s_g_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H |
---|
90 | |
---|
91 | test_d_r_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
92 | test_d_g_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H |
---|
93 | |
---|
94 | |
---|
95 | test_s_r_LDFLAGS = -static ${AMLDFLAGS} |
---|
96 | test_s_g_LDFLAGS = -static ${AMLDFLAGS} |
---|
97 | |
---|
98 | test_d_r_LDFLAGS = ${AMLDFLAGS} |
---|
99 | test_d_g_LDFLAGS = ${AMLDFLAGS} |
---|