source: git/dyn_modules/bigintm/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.3 KB
Line 
1# moduledir = $(libexecdir)/singular/MOD
2
3if ENABLE_P_PROCS_DYNAMIC
4#  noinst_LTLIBRARIES=bigintm.la
5  check_LTLIBRARIES=bigintm.la
6 
7if WANT_DEBUG
8#  noinst_module_LTLIBRARIES+=bigintm_g.la
9  check_LTLIBRARIES+=bigintm_g.la
10endif
11 
12endif
13
14if ENABLE_FACTORY
15  USE_FACTORY = -L${top_builddir}/factory
16else
17  USE_FACTORY =
18endif
19
20CXXTEMPLFLAGS   = ${PIPE}
21
22DEBUGCXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${CXXTEMPLFLAGS}
23
24NODEBUGCFLAGS   = -O3 -w -fomit-frame-pointer ${PIPE}
25NODEBUGCXXFLAGS = -O3 -w -fomit-frame-pointer ${CXXTEMPLFLAGS} -fno-exceptions -fno-rtti
26## -fno-implicit-templates?
27NODEBUGDEFS = -DNDEBUG -DOM_NDEBUG
28
29# -DHAVE_CONFIG_H??
30
31MYINCLUDES =  -I${top_srcdir} -I${top_builddir} -I${srcdir} \
32-I${top_srcdir}/libpolys -I${top_builddir}/libpolys \
33-I${top_srcdir}/factory/include -I${top_builddir}/factory/include \
34$(FACTORY_CFLAGS) $(NTL_CFLAGS) $(GMP_CFLAGS)
35
36
37AMLDFLAGS       =
38# -L${top_builddir}/Singular -L${top_builddir}/numeric -L${top_builddir}/kernel \
39# -L${top_builddir}/libpolys/polys $(USE_FACTORY) -L${top_builddir}/omalloc -L${top_builddir}/findexec
40
41
42SOURCES = mod_main.cc bigintm.cc bigintm.h
43bigintm_la_SOURCES   = $(SOURCES)
44bigintm_g_la_SOURCES = $(SOURCES)
45
46
47P_PROCS_CPPFLAGS_COMMON = ${PIPE} -DDYNAMIC_VERSION
48
49bigintm_la_CPPFLAGS   = ${MYINCLUDES} ${P_PROCS_CPPFLAGS_COMMON} ${NODEBUGDEFS}
50bigintm_g_la_CPPFLAGS = ${MYINCLUDES} ${P_PROCS_CPPFLAGS_COMMON}
51
52bigintm_la_CXXFLAGS   = ${NODEBUGCXXFLAGS}
53bigintm_g_la_CXXFLAGS = ${DEBUGCXXFLAGS}
54
55if ENABLE_P_PROCS_DYNAMIC
56  P_PROCS_MODULE_LDFLAGS = ${AMLDFLAGS} -shared -module
57  P_PROCS_MODULE_LDFLAGSG = ${AMLDFLAGS} -shared -module
58else
59  P_PROCS_MODULE_LDFLAGS = ${AMLDFLAGS}
60  P_PROCS_MODULE_LDFLAGSG = ${AMLDFLAGS}
61endif
62
63# Add under Mac OS X: -twolevel_namespace -weak_reference_mismatches weak -undefined dynamic_lookup
64
65bigintm_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
66bigintm_g_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGSG}
67
68
69
70
71AM_COLOR_TESTS=always
72
73TESTS_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}'
74TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${abs_top_builddir}'
75TESTS_ENVIRONMENT += SINGULAR_BIN_DIR='${abs_top_builddir}/Singular'
76
77TESTS=test_release.sh
78
79if WANT_DEBUG
80TESTS+=test_debug.sh
81endif
82
83EXTRA_DIST = bigintm.tst test.sh $(TESTS)
Note: See TracBrowser for help on using the repository browser.