[8e7e6d4] | 1 | CXXTEMPLFLAGS =-ftrapv |
---|
[86b7aca] | 2 | ## -fno-implicit-templates |
---|
[6bec87] | 3 | |
---|
[4bc0ab9] | 4 | AM_CPPFLAGS = -I${top_srcdir} -I${top_srcdir}/.. -I${top_builddir} -I${top_builddir}/.. -I${srcdir} -I${top_srcdir}/../factory/include -I${top_builddir}/../factory/include ${FACTORY_CFLAGS} ${GMP_CFLAGS} ${NTL_CFLAGS} |
---|
| 5 | |
---|
[2b43ac] | 6 | if WANT_DEBUG |
---|
| 7 | LIB_G=libcoeffs_g.la |
---|
| 8 | else |
---|
| 9 | LIB_G= |
---|
| 10 | endif |
---|
| 11 | |
---|
[fd201f] | 12 | libcoeffs_LTLIBRARIES = libcoeffs.la ${LIB_G} |
---|
[9f524d] | 13 | libcoeffsdir = $(libdir)/singular |
---|
| 14 | |
---|
[6d672b4] | 15 | libcoeffs_la_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
| 16 | libcoeffs_g_la_CFLAGS = ${PIPE} |
---|
[630ca9] | 17 | |
---|
[ebf138] | 18 | libcoeffs_la_CXXFLAGS = -O3 -fomit-frame-pointer ${PIPE} ${CXXTEMPLFLAGS} |
---|
[5e28ea] | 19 | libcoeffs_g_la_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS} |
---|
[630ca9] | 20 | # -fdiagnostics-show-option |
---|
[014b65] | 21 | |
---|
[4bc0ab9] | 22 | libcoeffs_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
| 23 | libcoeffs_g_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H |
---|
[630ca9] | 24 | |
---|
| 25 | |
---|
[1b8a19] | 26 | # noinst_HEADERS= \ |
---|
| 27 | # gnumpc.h gnumpfl.h longrat.h modulop.h ffields.h \ |
---|
| 28 | # rintegers.h rmodulo2m.h rmodulon.h shortfl.h \ |
---|
| 29 | # mpr_complex.h mpr_global.h |
---|
[014b65] | 30 | |
---|
[b7d64b] | 31 | |
---|
[630ca9] | 32 | SOURCES = \ |
---|
| 33 | numbers.cc rintegers.cc rmodulo2m.cc rmodulon.cc shortfl.cc \ |
---|
| 34 | gnumpc.cc gnumpfl.cc longrat.cc longrat0.cc ffields.cc \ |
---|
[84fc1f] | 35 | modulop.cc mpr_complex.cc \ |
---|
| 36 | bigintmat.cc |
---|
[d44785] | 37 | |
---|
[6d672b4] | 38 | libcoeffs_la_SOURCES = $(SOURCES) |
---|
| 39 | libcoeffs_g_la_SOURCES = $(SOURCES) |
---|
[630ca9] | 40 | |
---|
[c2eb2e] | 41 | libcoeffs_includedir =$(includedir)/singular/coeffs |
---|
[84fc1f] | 42 | 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 \ |
---|
[98474f] | 43 | bigintmat.h Enumerator.h |
---|
[1b8a19] | 44 | |
---|
[630ca9] | 45 | |
---|
[3b8a6e] | 46 | ## for testing... |
---|
[8872ef] | 47 | if ENABLE_FACTORY |
---|
| 48 | USE_FACTORY = -L${top_builddir}/../factory |
---|
| 49 | else |
---|
| 50 | USE_FACTORY = |
---|
| 51 | endif |
---|
[630ca9] | 52 | |
---|
[3b8a6e] | 53 | AMLDFLAGS = -L${abs_top_builddir}/coeffs -L${abs_top_builddir}/reporter -L${top_builddir}/misc ${USE_FACTORY} -L${top_builddir}/../omalloc -L${abs_top_builddir}/../findexec |
---|
[86b7aca] | 54 | |
---|
| 55 | TESTS_ENVIRONMENT = SINGULARPATH='${top_srcdir}/../factory:${top_builddir}/../factory' |
---|
| 56 | TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='$(top_builddir)' |
---|
| 57 | |
---|
[17228e] | 58 | if WANT_DEBUG |
---|
[a250e1] | 59 | TESTS = test_s_g test_s_r test_d_g test_d_r |
---|
[17228e] | 60 | else |
---|
| 61 | TESTS = test_s_r test_d_r |
---|
| 62 | endif |
---|
[8872ef] | 63 | check_PROGRAMS = $(TESTS) |
---|
| 64 | |
---|
[a250e1] | 65 | test_s_r_SOURCES = test.cc |
---|
| 66 | test_s_g_SOURCES = test.cc |
---|
[86b7aca] | 67 | |
---|
[a250e1] | 68 | test_d_r_SOURCES = test.cc |
---|
| 69 | test_d_g_SOURCES = test.cc |
---|
[014b65] | 70 | |
---|
| 71 | |
---|
[b4a676] | 72 | test_s_r_LDADD = -lcoeffs -lreporter -lmisc ${FACTORY_LIBS} -lomalloc -lfindexec ${NTL_LIBS} ${GMP_LIBS} |
---|
| 73 | test_s_g_LDADD = -lcoeffs_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g -lfindexec_g ${NTL_LIBS} ${GMP_LIBS} |
---|
[8fee84] | 74 | |
---|
[b4a676] | 75 | test_d_r_LDADD = -lcoeffs -lreporter -lmisc ${FACTORY_LIBS} -lomalloc -lfindexec ${NTL_LIBS} ${GMP_LIBS} |
---|
| 76 | test_d_g_LDADD = -lcoeffs_g -lreporter_g -lmisc_g ${FACTORY_LIBS} -lomalloc_g -lfindexec_g ${NTL_LIBS} ${GMP_LIBS} |
---|
[014b65] | 77 | |
---|
[a250e1] | 78 | |
---|
| 79 | test_s_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
| 80 | test_s_g_CFLAGS = ${PIPE} |
---|
| 81 | |
---|
| 82 | test_d_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} |
---|
| 83 | test_d_g_CFLAGS = ${PIPE} |
---|
| 84 | |
---|
[bd948c] | 85 | |
---|
| 86 | |
---|
[ebf138] | 87 | test_s_r_CXXFLAGS = -O3 -fomit-frame-pointer ${PIPE} ${CXXTEMPLFLAGS} |
---|
[86b7aca] | 88 | # -fimplicit-templates |
---|
[5e28ea] | 89 | test_s_g_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS} |
---|
[86b7aca] | 90 | # -fimplicit-templates |
---|
[630ca9] | 91 | # -fdiagnostics-show-option |
---|
[ebf138] | 92 | test_d_r_CXXFLAGS = -O3 -fomit-frame-pointer ${PIPE} ${CXXTEMPLFLAGS} |
---|
[5e28ea] | 93 | test_d_g_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS} |
---|
[a250e1] | 94 | |
---|
| 95 | |
---|
[1d3be3] | 96 | |
---|
[4bc0ab9] | 97 | test_s_r_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
| 98 | test_s_g_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H |
---|
| 99 | |
---|
| 100 | test_d_r_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG |
---|
| 101 | test_d_g_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H |
---|
[1d3be3] | 102 | |
---|
[8872ef] | 103 | |
---|
[3b8a6e] | 104 | test_s_r_LDFLAGS = -static ${AMLDFLAGS} |
---|
| 105 | test_s_g_LDFLAGS = -static ${AMLDFLAGS} |
---|
[0ff203] | 106 | |
---|
[3b8a6e] | 107 | test_d_r_LDFLAGS = ${AMLDFLAGS} |
---|
| 108 | test_d_g_LDFLAGS = ${AMLDFLAGS} |
---|