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
|
|
|
|
2012-08-25 10:05:56 +08:00
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = Glob('*.c')
|
2012-01-31 20:19:24 +08:00
|
|
|
CPPPATH = [cwd]
|
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
|
|
|
|
2012-01-31 20:19:24 +08:00
|
|
|
group = DefineGroup('finsh', src, depend = ['RT_USING_FINSH'], CPPPATH = CPPPATH, LINKFLAGS = LINKFLAGS)
|
2009-10-20 17:18:45 +08:00
|
|
|
|
2010-11-20 20:31:00 +08:00
|
|
|
Return('group')
|