SConscript (9888:68d6b600d51f) | SConscript (9902:55cddee143f0) |
---|---|
1# -*- mode:python -*- 2 3# Copyright (c) 2013 Andreas Sandberg 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions are 8# met: redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28# 29# Authors: Andreas Sandberg 30 31Import('main') 32 | 1# -*- mode:python -*- 2 3# Copyright (c) 2013 Andreas Sandberg 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions are 8# met: redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28# 29# Authors: Andreas Sandberg 30 31Import('main') 32 |
33main.Library('fputils', [ 34 main.SharedObject('fp80.c'), | 33main.Prepend(CPPPATH=Dir('./include')) 34 35fpenv = main.Clone() 36 37# By default gcc uses c89 and clang uses c99. For fputils to compile 38# we need to use c99. 39if fpenv['GCC']: 40 fpenv.Append(CCFLAGS=['-std=c99']) 41 42fpenv.Library('fputils', [ 43 fpenv.SharedObject('fp80.c'), |
35 ]) 36 | 44 ]) 45 |
37main.Prepend(CPPPATH=Dir('./include')) | |
38main.Append(LIBS=['fputils']) 39main.Prepend(LIBPATH=[Dir('.')]) 40 | 46main.Append(LIBS=['fputils']) 47main.Prepend(LIBPATH=[Dir('.')]) 48 |