2009-10-20 17:18:45 +08:00
|
|
|
Import('RTT_ROOT')
|
2010-04-18 23:27:13 +08:00
|
|
|
Import('rtconfig')
|
2010-11-20 20:31:00 +08:00
|
|
|
from building import *
|
2009-10-14 17:47:48 +08:00
|
|
|
|
2010-11-20 20:31:00 +08:00
|
|
|
src = Glob('*.c')
|
2011-07-01 13:36:42 +08:00
|
|
|
CPPPATH = [GetCurrentDir()]
|
2010-04-18 23:27:13 +08:00
|
|
|
if rtconfig.CROSS_TOOL == 'keil':
|
2011-06-19 10:47:51 +08:00
|
|
|
LINKFLAGS = ' --keep __fsym_* --keep __vsym_* '
|
2010-04-18 23:27:13 +08:00
|
|
|
else:
|
2011-06-19 10:47:51 +08:00
|
|
|
LINKFLAGS = ''
|
2009-10-14 17:47:48 +08:00
|
|
|
|
2011-06-19 10:47:51 +08:00
|
|
|
group = DefineGroup('finsh', src, depend = ['RT_USING_FINSH'], CPPPATH = CPPPATH, LINKFLAGS = LINKFLAGS, LIBRARY = '')
|
2009-10-20 17:18:45 +08:00
|
|
|
|
2010-11-20 20:31:00 +08:00
|
|
|
Return('group')
|