source: git/dyn_modules/syzextra/SConstruct @ 636c28

spielwiese
Last change on this file since 636c28 was 636c28, checked in by Oleksandr Motsak <motsak@…>, 12 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
3MODNAME = 'syzextra'
4SRCS = ["mod_main.cc", "DebugPrint.cc", "myNF.cc"]
5
6env = Environment()
7
8import os
9SINGULAR_HOME="./../.."
10
11SING_INCLUDES=[SINGULAR_HOME, SINGULAR_HOME+"/omalloc"]
12# , SINGULAR_HOME+"/factory"
13
14
15#env.SharedObject(target = 'mod_main.o', source = 'mod_main.cc')
16
17CXXTEMPLFLAGS = "-fno-implicit-templates --no-exceptions"
18
19
20
21
22### for the use with "scons debug=1"
23if 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)
34else:
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.