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