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 | include_HEADERS = coeffs.h numbers.h |
---|
16 | |
---|
17 | noinst_HEADERS= \ |
---|
18 | gnumpc.h gnumpfl.h longrat.h modulop.h ffields.h \ |
---|
19 | rintegers.h rmodulo2m.h rmodulon.h shortfl.h \ |
---|
20 | mpr_complex.h mpr_global.h |
---|
21 | |
---|
22 | INCLUDES = -I${top_srcdir} -I${top_srcdir}/.. -I${top_builddir} -I${srcdir} ${GMP_CFLAGS} |
---|
23 | |
---|
24 | SOURCES = \ |
---|
25 | numbers.cc rintegers.cc rmodulo2m.cc rmodulon.cc shortfl.cc \ |
---|
26 | gnumpc.cc gnumpfl.cc longrat.cc longrat0.cc ffields.cc \ |
---|
27 | modulop.cc mpr_complex.cc |
---|
28 | libcoeffs_a_SOURCES = $(SOURCES) |
---|
29 | libcoeffs_g_a_SOURCES = $(SOURCES) |
---|
30 | |
---|
31 | libcoeffs_a_includedir =$(includedir)/libpolys/coeffs |
---|
32 | libcoeffs_g_a_includedir=$(includedir)/libpolys/coeffs |
---|
33 | |
---|
34 | COEFFSHEADERS = coeffs.h numbers.h |
---|
35 | libcoeffs_a_include_HEADERS = $(COEFFSHEADERS) |
---|
36 | libcoeffs_g_a_include_HEADERS = $(COEFFSHEADERS) |
---|
37 | |
---|
38 | |
---|
39 | |
---|
40 | ## for testing... |
---|
41 | AM_LDFLAGS = -L${top_builddir}/coeffs -L${top_builddir}/reporter -L${top_builddir}/resources -L${top_builddir}/misc -L${top_builddir}/../factory -L${top_builddir}/../omalloc |
---|
42 | |
---|
43 | check_PROGRAMS = test test-g |
---|
44 | |
---|
45 | test_SOURCES = test.cc |
---|
46 | test_g_SOURCES = test.cc |
---|
47 | |
---|
48 | test_LDADD = -lcoeffs ${GMP_LIBS} -lresources -lreporter -lmisc -lsingcf -lomalloc |
---|
49 | test_g_LDADD = -lcoeffs_g ${GMP_LIBS} -lresources_g -lreporter_g -lmisc_g -lsingcf_g -lomalloc_debug |
---|
50 | |
---|
51 | |
---|
52 | |
---|
53 | test_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
54 | test_g_CFLAGS = ${PIPE} |
---|
55 | |
---|
56 | test_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti ${PIPE} ${CXXTEMPLFLAGS} -fimplicit-templates |
---|
57 | test_g_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS} -fimplicit-templates |
---|
58 | # -fdiagnostics-show-option |
---|
59 | |
---|
60 | test_CPPFLAGS = -DNDEBUG -DOM_NDEBUG -DHAVE_CONFIG_H |
---|
61 | test_g_CPPFLAGS = -DHAVE_CONFIG_H |
---|