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