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