1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
from sysconf.common import *
obj_suffix = '.o'
exe_suffix = ''
lib_prefix = 'lib'
lib_suffix = '.dylib'
cpp = [ 'clang++', '-c', '$flags$', '$gtk$', '$path$', '$src$', '-o', '$obj$' ]
cpp_flags = [ '-Wall', '-mtune=native', '-fPIC', '-fno-strict-aliasing', '-DGL_GLEXT_PROTOTYPES' ]
ld_use_shell = True
ld = [ 'clang++', '$flags$', '$path$', '$obj$', '$mrtrix$', '$gsl$', '$gtk$', '$lz$', '-o', '$bin$' ]
ld_flags = [ '-Wl,-rpath,@loader_path/../lib ']
ld_flags_lib_prefix = '-l'
ld_lib = [ 'clang++', '-shared', '$flags$', '$obj$', '-o', '$lib$' ]
ld_lib_flags = [ '-dynamiclib', '-install_name', '@rpath/LIBNAME' ]
# look for MacPorts or FINK dependencies, and act accordingly if found:
dep_dir = [ '/opt/local', '/sw64', '/sw' ]
for entry in dep_dir:
if os.path.isdir (entry):
cpp_flags += [ '-I' + entry + '/include' ]
ld_flags += [ '-L' + entry + '/lib' ]
ld_lib_flags += [ '-L' + entry + '/lib' ]
break
cpp_flags_debug = cpp_flags + [ '-g' ]
ld_flags_debug = ld_flags + [ '-g' ]
ld_lib_flags_debug = ld_lib_flags + [ '-g' ]
cpp_flags_profile = [ '-pg' ] + cpp_flags_debug
ld_flags_profile = ld_flags_debug + [ '-pg' ]
ld_lib_flags_profile = ld_lib_flags_debug + [ '-pg' ]
cpp_flags += [ '-O2' ]
cpp_flags_release = [ '-DNDEBUG' ]
cpp_flags_gsl = []
# uncomment this line for default GSL BLAS implementation, or the next line for the optimised ATLAS libraries (recommended for performance):
ld_flags_gsl = [ '-lgsl', '-lgslcblas' ]
#ld_flags_gsl = [ '-lgsl', '-lcblas', '-latlas', '-llapack', '-lf77blas' ]
ld_flags_gl = []
pkgconfig = [ 'pkg-config' ]
pkgconfig_env = None
ld_flags_zlib = [ '-lz' ]
default_installto = '/usr/local/mrtrix'
default_linkto = '/usr/local'
|