SConscript 398 B

1234567891011121314151617
  1. from building import *
  2. import rtconfig
  3. cwd = GetCurrentDir()
  4. src = Glob('src/*.c')
  5. CPPPATH = [cwd + '/inc']
  6. LOCAL_CCFLAGS = ''
  7. if rtconfig.CROSS_TOOL == 'gcc':
  8. LOCAL_CCFLAGS += ' -std=c99'
  9. elif rtconfig.CROSS_TOOL == 'keil':
  10. LOCAL_CCFLAGS += ' --c99'
  11. group = DefineGroup('fal', src, depend = ['PKG_USING_FAL'], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
  12. Return('group')