#src/! /usr/bin/env python
#src/ encoding: utf-8
#src/ Sandeep S Srinivasa, 2009
from Logs import error, debug, warn

obj = bld.new_task_gen(
        features = 'cc cstaticlib',
        includes = ['include'],
        defines = [ '_FILE_OFFSET_BITS=64'],
        install_path = None, #prevents installation of this file
        target = 'solcompat'
        )


obj.find_sources_in_dirs('.') #src/ take the sources in the current folder

obj.env['ASFLAGS'] = '-c'

arch = 'i386'

if bld.env['DEST_CPU'] == 'x86_64':
    arch = 'amd64'
    warn('picking up assembly from %s' % arch)

obj.source = obj.source +  [arch + '/atomic.S']
obj.includes = obj.includes +  ['include/' + arch]
