1 | lib_LIBRARIES = libcoeffs.a libcoeffs_g.a |
---|
2 | CXXTEMPLFLAGS = --no-exceptions |
---|
3 | ## -fno-implicit-templates |
---|
4 | |
---|
5 | libcoeffs_a_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
6 | libcoeffs_g_a_CFLAGS = ${PIPE} |
---|
7 | |
---|
8 | libcoeffs_a_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti ${PIPE} ${CXXTEMPLFLAGS} |
---|
9 | libcoeffs_g_a_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS} |
---|
10 | # -fdiagnostics-show-option |
---|
11 | |
---|
12 | libcoeffs_a_CPPFLAGS = -DNDEBUG -DOM_NDEBUG -DHAVE_CONFIG_H |
---|
13 | libcoeffs_g_a_CPPFLAGS = -DHAVE_CONFIG_H |
---|
14 | |
---|
15 | |
---|
16 | noinst_HEADERS= \ |
---|
17 | gnumpc.h gnumpfl.h longrat.h modulop.h ffields.h \ |
---|
18 | rintegers.h rmodulo2m.h rmodulon.h shortfl.h \ |
---|
19 | mpr_complex.h mpr_global.h |
---|
20 | |
---|
21 | INCLUDES = -I${top_srcdir} -I${top_srcdir}/.. -I${top_builddir} -I${top_builddir}/.. -I${srcdir} ${FACTORY_CFLAGS} ${GMP_CFLAGS} ${NTL_CFLAGS} |
---|
22 | |
---|
23 | SOURCES = \ |
---|
24 | numbers.cc rintegers.cc rmodulo2m.cc rmodulon.cc shortfl.cc \ |
---|
25 | gnumpc.cc gnumpfl.cc longrat.cc longrat0.cc ffields.cc \ |
---|
26 | modulop.cc mpr_complex.cc |
---|
27 | |
---|
28 | libcoeffs_a_SOURCES = $(SOURCES) |
---|
29 | libcoeffs_g_a_SOURCES = $(SOURCES) |
---|
30 | |
---|
31 | ## include_HEADERS = coeffs.h numbers.h |
---|
32 | |
---|
33 | libcoeffs_a_includedir =$(includedir)/libpolys/coeffs |
---|
34 | libcoeffs_g_a_includedir=$(includedir)/libpolys/coeffs |
---|
35 | |
---|
36 | COEFFSHEADERS = coeffs.h numbers.h si_gmp.h |
---|
37 | libcoeffs_a_include_HEADERS = $(COEFFSHEADERS) |
---|
38 | libcoeffs_g_a_include_HEADERS = $(COEFFSHEADERS) |
---|
39 | |
---|
40 | |
---|
41 | if ENABLE_FACTORY |
---|
42 | USE_FACTORY = -L${top_builddir}/../factory |
---|
43 | else |
---|
44 | USE_FACTORY = |
---|
45 | endif |
---|
46 | |
---|
47 | ## for testing... |
---|
48 | AM_LDFLAGS = -L${top_builddir}/coeffs -L${top_builddir}/reporter -L${top_builddir}/resources -L${top_builddir}/misc ${USE_FACTORY} -L${top_builddir}/../omalloc |
---|
49 | |
---|
50 | |
---|
51 | TESTS_ENVIRONMENT = SINGULARPATH='${top_srcdir}/../factory:${top_builddir}/../factory' |
---|
52 | TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='$(top_builddir)' |
---|
53 | |
---|
54 | |
---|
55 | TESTS = testg testr |
---|
56 | check_PROGRAMS = $(TESTS) |
---|
57 | |
---|
58 | testr_SOURCES = test.cc |
---|
59 | testg_SOURCES = test.cc |
---|
60 | |
---|
61 | testr_LDADD = -lcoeffs -lresources -lreporter -lmisc ${FACTORY_LIBS} -lomalloc ${NTL_LIBS} ${GMP_LIBS} |
---|
62 | testg_LDADD = -lcoeffs_g -lresources_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g ${NTL_LIBS} ${GMP_LIBS} |
---|
63 | |
---|
64 | |
---|
65 | # testr: libcoeffs.a |
---|
66 | # testg: libcoeffs_g.a |
---|
67 | # gftables |
---|
68 | |
---|
69 | testr_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
70 | testg_CFLAGS = ${PIPE} |
---|
71 | |
---|
72 | testr_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti ${PIPE} ${CXXTEMPLFLAGS} |
---|
73 | # -fimplicit-templates |
---|
74 | testg_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS} |
---|
75 | # -fimplicit-templates |
---|
76 | # -fdiagnostics-show-option |
---|
77 | |
---|
78 | testr_CPPFLAGS = -DNDEBUG -DOM_NDEBUG |
---|
79 | testg_CPPFLAGS = |
---|
80 | |
---|
81 | #gftables: ${top_srcdir}/../factory/gftables |
---|
82 | # ln -snf ${top_srcdir}/../factory/gftables ${builddir} |
---|