diff -r 07c2f8084719 -r 440e1ae80459 SConstruct --- a/SConstruct Wed Apr 09 11:35:59 2008 +0200 +++ b/SConstruct Wed Apr 09 16:51:14 2008 +0200 @@ -1,13 +1,41 @@ Decider('MD5-timestamp') +import os +env = Environment(ENV = {'PATH' : os.environ['PATH']}) + +### GNU C++ Compiler +#env.Replace(CXX="g++") +#env.Append(CCFLAGS="-O3 -Wall -pipe -ffast-math -msse3 ") -# CXX=icpc -# CCFLAGS=-g -fno-strict-aliasing -I$(ROOT)/include -# -Wall | -w1 +### Intel C++ Compiler +env.Replace(CXX="icpc") +env.Append(CCFLAGS="-O3 -w1 -mtune=core2 -xT ") + +### MinGW32 +# LDFLAGS+=-lpthreadGC2 +# PY_CCFLAGS=-I"C:\Program Files\Python25\include" +# PY_LDFLAGS=-L"C:\Program Files\Python25\libs" -lpython25 + +# pthread +env.Append(CCFLAGS="-pthread ") + +# CCFLAGS=-g -fno-strict-aliasing # float: -fsingle-precision-constant # double: -DPYRIT_DOUBLE -(lib, pymodule) = SConscript('src/SConscript', build_dir='build/lib', duplicate=0) +(lib, pymodule) = SConscript('src/SConscript', build_dir='build/lib', duplicate=0, exports='env') + +SConscript('ccdemos/SConscript', build_dir='build/ccdemos', duplicate=0, exports='env lib') +SConscript('demos/SConscript', exports='pymodule') +env.Alias('demos', ['cc-demos', 'python-demos']) + +SConscript('models/SConscript') -SConscript('ccdemos/SConscript', build_dir='build/ccdemos', duplicate=0, exports='lib') -SConscript('demos/SConscript', exports='pymodule') -SConscript('models/SConscript') +env.Alias('docs', Command('docs/html', [], 'doxygen')) +env.Clean('docs', ['docs/html', 'docs/latex']) + +env.Alias('all', ['no-docs', 'docs']) +env.Alias('no-docs', ['libs', 'demos', 'models']) +env.Alias('no-download', ['libs', 'demos', 'local-models']) + +env.Alias('pyrit', 'no-download') +Default('pyrit')