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