spielwiese
Last change
on this file since 3ebb22e was
636c28,
checked in by Oleksandr Motsak <motsak@…>, 13 years ago
|
ADD: "scons debug=1" for debug version
UPD: updated bigintm to support correct (debug/release) version
FIX: some minor warnings (thanks to debug version)
From: Oleksandr Motsak <motsak@mathematik.uni-kl.de>
git-svn-id: file:///usr/local/Singular/svn/trunk@14066 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | # Emacs edit mode for this file is -*- python -*- |
---|
2 | |
---|
3 | MODNAME = 'bigintm' |
---|
4 | SRCS = ["bigintm.cc", "mod_main.cc"] |
---|
5 | |
---|
6 | env = Environment() |
---|
7 | |
---|
8 | import os |
---|
9 | SINGULAR_HOME="./../.." |
---|
10 | |
---|
11 | SING_INCLUDES=[SINGULAR_HOME, SINGULAR_HOME+"/omalloc"] |
---|
12 | # , SINGULAR_HOME+"/factory" |
---|
13 | |
---|
14 | |
---|
15 | #env.SharedObject(target = 'mod_main.o', source = 'mod_main.cc') |
---|
16 | |
---|
17 | CXXTEMPLFLAGS = "-fno-implicit-templates --no-exceptions" |
---|
18 | |
---|
19 | |
---|
20 | |
---|
21 | |
---|
22 | ### for the use with "scons debug=1" |
---|
23 | if ARGUMENTS.get('debug', 0): |
---|
24 | ### Works with Singularg only! |
---|
25 | syzextra_debug_if = env.LoadableModule( MODNAME + '_g', |
---|
26 | SRCS, |
---|
27 | SHLIBPREFIX="", |
---|
28 | LDMODULESUFFIX=".sog", |
---|
29 | SHLIBSUFFIX = ".sog", |
---|
30 | CPPPATH = SING_INCLUDES, |
---|
31 | CXXFLAGS = "-g -Wextra -Wall -pedantic -Wno-long-long " + CXXTEMPLFLAGS, |
---|
32 | LIBS=[]) |
---|
33 | Default(syzextra_debug_if) |
---|
34 | else: |
---|
35 | ### Works with any Singular |
---|
36 | syzextra_if = env.SharedLibrary(MODNAME, |
---|
37 | SRCS, |
---|
38 | SHLIBPREFIX="", |
---|
39 | LDMODULESUFFIX=".so", |
---|
40 | SHLIBSUFFIX = ".so", |
---|
41 | CPPPATH = SING_INCLUDES, |
---|
42 | CPPDEFINES = ["NDEBUG", "OM_NDEBUG"], |
---|
43 | CXXFLAGS = "-O3 -fomit-frame-pointer --no-rtti " + CXXTEMPLFLAGS, |
---|
44 | CCFLAGS="-O3 -fomit-frame-pointer ", |
---|
45 | LIBS=[]) |
---|
46 | Default(syzextra_if) |
---|
47 | |
---|
48 | |
---|
49 | |
---|
50 | ### clean with "scons -c ." |
---|
Note: See
TracBrowser
for help on using the repository browser.