Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fvbe.git;a=commitdiff;h=6a509d953a0af2cd4590aa09f25d3346205a9bff
commit 6a509d953a0af2cd4590aa09f25d3346205a9bff Author: James Buren <[email protected]> Date: Mon Apr 28 21:21:56 2014 -0500 add first SConstruct target diff --git a/src-new/SConstruct b/src-new/SConstruct index 77c1865..df2c7e5 100644 --- a/src-new/SConstruct +++ b/src-new/SConstruct @@ -6,7 +6,11 @@ env = Environment() if not 'CXXFLAGS' in environ: env.Append(CXXFLAGS = [ '-O2' ]) else: - env.Append(CXXFLAGS = [ environ['CXXFLAGS'] ]) + env.Append(CXXFLAGS = environ['CXXFLAGS']) + +# Inherit linker flags from environment. +if 'LDFLAGS' in environ: + env.Append(LINKFLAGS = environ['LDFLAGS']) # Enable most warnings env.Append(CXXFLAGS = [ '-Wall', '-Wextra' ]) @@ -17,3 +21,11 @@ if debug: env.Append(CXXFLAGS = [ '-g' ]) else: env.Append(CXXFLAGS = [ '-DNDEBUG' ]) + +# Disable the prefix / suffix for shared libraries. +env['SHLIBPREFIX'] = '' +env['SHLIBSUFFIX'] = '' + +# libfvbe build instructions +ui_o = env.SharedObject('ui.o', 'ui.cpp') +libfvbe = env.SharedLibrary('libfvbe.so', [ ui_o ]) _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
