source: git/dyn_modules/syzextra/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=syzextra.la syzextra_g.la
5endif
6
7if ENABLE_FACTORY
8  USE_FACTORY = -L${top_builddir}/factory
9else
10  USE_FACTORY =
11endif
12
13CXXTEMPLFLAGS   = ${PIPE}
14## -fno-implicit-templates
15
16DEBUGCXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${CXXTEMPLFLAGS}
17
18NODEBUGCFLAGS   = -O3 -w -fomit-frame-pointer ${PIPE}
19NODEBUGCXXFLAGS = -O3 -w -fomit-frame-pointer ${CXXTEMPLFLAGS} -fno-rtti -fno-exceptions
20
21NODEBUGDEFS = -DNDEBUG -DOM_NDEBUG
22
23# -DHAVE_CONFIG_H??
24
25MYINCLUDES =  -I${top_srcdir} -I${top_builddir} -I${srcdir} \
26-I${top_srcdir}/libpolys -I${top_builddir}/libpolys \
27-I${top_srcdir}/factory/include -I${top_builddir}/factory/include \
28$(FACTORY_CFLAGS) $(NTL_CFLAGS) $(GMP_CFLAGS)
29
30
31AMLDFLAGS       =
32# -L${top_builddir}/Singular -L${top_builddir}/numeric -L${top_builddir}/kernel \
33# -L${top_builddir}/libpolys/polys $(USE_FACTORY) -L${top_builddir}/omalloc -L${top_builddir}/findexec
34
35
36SOURCES = mod_main.cc DebugPrint.cc DebugPrint.h myNF.cc myNF.h singularxx_defs.h
37syzextra_la_SOURCES   = $(SOURCES)
38syzextra_g_la_SOURCES = $(SOURCES)
39
40
41P_PROCS_CPPFLAGS_COMMON = ${PIPE} -DDYNAMIC_VERSION
42
43syzextra_la_CPPFLAGS   = ${MYINCLUDES} ${P_PROCS_CPPFLAGS_COMMON} ${NODEBUGDEFS}
44syzextra_g_la_CPPFLAGS = ${MYINCLUDES} ${P_PROCS_CPPFLAGS_COMMON}
45
46syzextra_la_CXXFLAGS   = ${NODEBUGCXXFLAGS}
47syzextra_g_la_CXXFLAGS = ${DEBUGCXXFLAGS}
48
49P_PROCS_MODULE_LDFLAGS = -shared -module ${AMLDFLAGS}
50P_PROCS_MODULE_LDFLAGSG = -shared -module ${AMLDFLAGS}
51
52# Add under Mac OS X: -twolevel_namespace -weak_reference_mismatches weak -undefined dynamic_lookup
53
54syzextra_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
55syzextra_g_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGSG}
56
57
58
59
60AM_COLOR_TESTS=always
61
62TESTS_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}'
63TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${abs_top_builddir}'
64TESTS_ENVIRONMENT += SINGULAR_BIN_DIR='${abs_top_builddir}/Singular'
65
66if WANT_DEBUG
67TESTS=test_release.sh test_debug.sh
68else
69TESTS=test_release.sh
70endif
71
72EXTRA_DIST = syzextra.tst ederc.tst test.sh $(TESTS)
Note: See TracBrowser for help on using the repository browser.