source: git/dyn_modules/syzextra/Makefile.am @ f4cb99a

jengelh-datetimespielwiese
Last change on this file since f4cb99a was f4cb99a, checked in by Oleksandr Motsak <motsak@…>, 10 years ago
Updating the BS + search pathes for better binary distribution (due to Hans)
  • Property mode set to 100644
File size: 2.2 KB
Line 
1moduledir = $(libexecdir)/singular/MOD
2
3if ENABLE_P_PROCS_DYNAMIC
4module_LTLIBRARIES=syzextra.la
5
6if WANT_DEBUG
7module_LTLIBRARIES+=syzextra_g.la
8endif
9 
10endif
11
12if ENABLE_FACTORY
13  USE_FACTORY = -L${top_builddir}/factory
14else
15  USE_FACTORY =
16endif
17
18CXXTEMPLFLAGS   = ${PIPE}
19## -fno-implicit-templates
20
21DEBUGCXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${CXXTEMPLFLAGS}
22
23NODEBUGCFLAGS   = -O3 -w -fomit-frame-pointer ${PIPE}
24NODEBUGCXXFLAGS = -O3 -w -fomit-frame-pointer ${CXXTEMPLFLAGS} -fno-rtti -fno-exceptions
25
26NODEBUGDEFS = -DNDEBUG -DOM_NDEBUG
27
28# -DHAVE_CONFIG_H??
29
30MYINCLUDES =  -I${top_srcdir} -I${top_builddir} -I${srcdir} \
31-I${top_srcdir}/libpolys -I${top_builddir}/libpolys \
32-I${top_srcdir}/factory/include -I${top_builddir}/factory/include \
33$(FACTORY_CFLAGS) $(NTL_CFLAGS) $(GMP_CFLAGS)
34
35
36AMLDFLAGS       =
37# -L${top_builddir}/Singular -L${top_builddir}/numeric -L${top_builddir}/kernel \
38# -L${top_builddir}/libpolys/polys $(USE_FACTORY) -L${top_builddir}/omalloc -L${top_builddir}/findexec
39
40
41SOURCES = mod_main.cc DebugPrint.cc DebugPrint.h myNF.cc myNF.h singularxx_defs.h
42syzextra_la_SOURCES   = $(SOURCES)
43syzextra_g_la_SOURCES = $(SOURCES)
44
45
46P_PROCS_CPPFLAGS_COMMON = ${PIPE} -DDYNAMIC_VERSION
47
48syzextra_la_CPPFLAGS   = ${MYINCLUDES} ${P_PROCS_CPPFLAGS_COMMON} ${NODEBUGDEFS}
49syzextra_g_la_CPPFLAGS = ${MYINCLUDES} ${P_PROCS_CPPFLAGS_COMMON}
50
51syzextra_la_CXXFLAGS   = ${NODEBUGCXXFLAGS}
52syzextra_g_la_CXXFLAGS = ${DEBUGCXXFLAGS}
53
54P_PROCS_MODULE_LDFLAGS = -shared -module ${AMLDFLAGS}
55P_PROCS_MODULE_LDFLAGSG = -shared -module ${AMLDFLAGS}
56
57# Add under Mac OS X: -twolevel_namespace -weak_reference_mismatches weak -undefined dynamic_lookup
58
59syzextra_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
60syzextra_g_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGSG}
61
62
63
64
65AM_COLOR_TESTS=always
66
67TESTS_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}'
68TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${abs_top_builddir}'
69TESTS_ENVIRONMENT += SINGULAR_BIN_DIR='${abs_top_builddir}/Singular'
70
71TESTS=test_release.sh
72
73if WANT_DEBUG
74TESTS+=test_debug.sh
75endif
76
77EXTRA_DIST = syzextra.tst ederc.tst test.sh $(TESTS)
Note: See TracBrowser for help on using the repository browser.