[630ca9] | 1 | lib_LIBRARIES=libcoeffs.a libcoeffs_g.a |
---|
[014b65] | 2 | |
---|
[630ca9] | 3 | CXXTEMPLFLAGS = -fno-implicit-templates --no-exceptions |
---|
[6bec87] | 4 | |
---|
[630ca9] | 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 |
---|
[014b65] | 11 | |
---|
[630ca9] | 12 | libcoeffs_a_CPPFLAGS = -DNDEBUG -DOM_NDEBUG -DHAVE_CONFIG_H |
---|
| 13 | libcoeffs_g_a_CPPFLAGS = -DHAVE_CONFIG_H |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | include_HEADERS = coeffs.h numbers.h |
---|
[014b65] | 17 | |
---|
| 18 | noinst_HEADERS= \ |
---|
| 19 | gnumpc.h gnumpfl.h longrat.h modulop.h ffields.h \ |
---|
[630ca9] | 20 | rintegers.h rmodulo2m.h rmodulon.h shortfl.h \ |
---|
| 21 | mpr_complex.h mpr_global.h |
---|
[014b65] | 22 | |
---|
[630ca9] | 23 | INCLUDES = -I${top_srcdir}/.. -I${top_srcdir}/../.. -I${top_builddir}/.. -I${srcdir} |
---|
| 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 | libcoeffs_a_SOURCES = $(SOURCES) |
---|
| 30 | libcoeffs_g_a_SOURCES = $(SOURCES) |
---|
| 31 | |
---|
| 32 | libcoeffs_a_includedir =$(includedir)/libpolys/coeffs |
---|
| 33 | libcoeffs_g_a_includedir=$(includedir)/libpolys/coeffs |
---|
| 34 | |
---|
| 35 | COEFFSHEADERS = coeffs.h numbers.h |
---|
| 36 | libcoeffs_a_include_HEADERS = $(COEFFSHEADERS) |
---|
| 37 | libcoeffs_g_a_include_HEADERS = $(COEFFSHEADERS) |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | ## for testing... |
---|
| 42 | AM_LDFLAGS = -L${top_builddir}/../coeffs -L${top_builddir}/../reporter -L${top_builddir}/../resources -L${top_builddir}/../../omalloc |
---|
| 43 | |
---|
| 44 | check_PROGRAMS = test test-g |
---|
| 45 | |
---|
| 46 | test_SOURCES = test.cc |
---|
| 47 | test_g_SOURCES = test.cc |
---|
[014b65] | 48 | |
---|
[630ca9] | 49 | test_LDADD = libcoeffs.a -lresources -lreporter -lgmp -lomalloc |
---|
| 50 | test_g_LDADD = libcoeffs_g.a -lresources_g -lreporter_g -lgmp -lomalloc_debug |
---|
[014b65] | 51 | |
---|
| 52 | |
---|
[630ca9] | 53 | test_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
| 54 | test_g_CFLAGS = ${PIPE} |
---|
[014b65] | 55 | |
---|
[630ca9] | 56 | test_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti ${PIPE} ${CXXTEMPLFLAGS} |
---|
| 57 | test_g_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS} |
---|
| 58 | # -fdiagnostics-show-option |
---|
[014b65] | 59 | |
---|
[630ca9] | 60 | test_CPPFLAGS = -DNDEBUG -DOM_NDEBUG -DHAVE_CONFIG_H |
---|
| 61 | test_g_CPPFLAGS = -DHAVE_CONFIG_H |
---|