source: git/dyn_modules/bigintm/Makefile.am @ 39e070

jengelh-datetimespielwiese
Last change on this file since 39e070 was 39e070, checked in by Oleksandr Motsak <motsak@…>, 10 years ago
Fixed regression testing for Singular via 'make check'
  • Property mode set to 100644
File size: 2.2 KB
Line 
1moduledir = $(bindir)/MOD
2
3if ENABLE_P_PROCS_DYNAMIC
4  module_LTLIBRARIES=bigintm.la bigintm_g.la
5endif
6
7if ENABLE_FACTORY
8  USE_FACTORY = -L${top_builddir}/factory
9else
10  USE_FACTORY =
11endif
12
13CXXTEMPLFLAGS   = ${PIPE}
14
15DEBUGCXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${CXXTEMPLFLAGS}
16
17NODEBUGCFLAGS   = -O3 -w -fomit-frame-pointer ${PIPE}
18NODEBUGCXXFLAGS = -O3 -w -fomit-frame-pointer ${CXXTEMPLFLAGS} -fno-exceptions -fno-rtti
19## -fno-implicit-templates?
20NODEBUGDEFS = -DNDEBUG -DOM_NDEBUG
21
22# -DHAVE_CONFIG_H??
23
24MYINCLUDES =  -I${top_srcdir} -I${top_builddir} -I${srcdir} \
25-I${top_srcdir}/libpolys -I${top_builddir}/libpolys \
26-I${top_srcdir}/factory/include -I${top_builddir}/factory/include \
27$(FACTORY_CFLAGS) $(NTL_CFLAGS) $(GMP_CFLAGS)
28
29
30AMLDFLAGS       =
31# -L${top_builddir}/Singular -L${top_builddir}/numeric -L${top_builddir}/kernel \
32# -L${top_builddir}/libpolys/polys $(USE_FACTORY) -L${top_builddir}/omalloc -L${top_builddir}/findexec
33
34
35SOURCES = mod_main.cc bigintm.cc bigintm.h
36bigintm_la_SOURCES   = $(SOURCES)
37bigintm_g_la_SOURCES = $(SOURCES)
38
39
40P_PROCS_CPPFLAGS_COMMON = ${PIPE} -DDYNAMIC_VERSION
41
42bigintm_la_CPPFLAGS   = ${MYINCLUDES} ${P_PROCS_CPPFLAGS_COMMON} ${NODEBUGDEFS}
43bigintm_g_la_CPPFLAGS = ${MYINCLUDES} ${P_PROCS_CPPFLAGS_COMMON}
44
45bigintm_la_CXXFLAGS   = ${NODEBUGCXXFLAGS}
46bigintm_g_la_CXXFLAGS = ${DEBUGCXXFLAGS}
47
48if ENABLE_P_PROCS_DYNAMIC
49  P_PROCS_MODULE_LDFLAGS = ${AMLDFLAGS} -shared -module
50  P_PROCS_MODULE_LDFLAGSG = ${AMLDFLAGS} -shared -module
51else
52  P_PROCS_MODULE_LDFLAGS = ${AMLDFLAGS}
53  P_PROCS_MODULE_LDFLAGSG = ${AMLDFLAGS}
54endif
55
56# Add under Mac OS X: -twolevel_namespace -weak_reference_mismatches weak -undefined dynamic_lookup
57
58bigintm_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
59bigintm_g_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGSG}
60
61
62
63
64AM_COLOR_TESTS=always
65
66TESTS_ENVIRONMENT  = SINGULARPATH='${abs_top_builddir}/Singular/LIB:${abs_top_srcdir}/Singular/LIB:${abs_top_builddir}/libpolys/polys/.libs:${abs_top_builddir}/factory/gftables:${abs_builddir}/.libs:${abs_srcdir}'
67TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${abs_top_builddir}'
68TESTS_ENVIRONMENT += SINGULAR_BIN_DIR='${abs_top_builddir}/Singular'
69
70if WANT_DEBUG
71TESTS=test_release.sh test_debug.sh
72else
73TESTS=test_release.sh
74endif
75
76EXTRA_DIST = bigintm.tst test.sh $(TESTS)
Note: See TracBrowser for help on using the repository browser.