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