2009-10-14 09:47:48 +00:00
|
|
|
Import('env')
|
2010-04-18 15:27:13 +00:00
|
|
|
Import('projects')
|
2009-10-20 09:18:45 +00:00
|
|
|
Import('RTT_ROOT')
|
2010-04-18 15:27:13 +00:00
|
|
|
Import('rtconfig')
|
2009-10-14 09:47:48 +00:00
|
|
|
|
2010-04-18 15:27:13 +00:00
|
|
|
# group definitions
|
|
|
|
group = {}
|
|
|
|
group['name'] = 'finsh'
|
|
|
|
group['src'] = Glob('*.c')
|
|
|
|
group['CCFLAGS'] = ''
|
|
|
|
group['CPPPATH'] = [RTT_ROOT + '/components/finsh']
|
|
|
|
group['CPPDEFINES'] = ''
|
|
|
|
if rtconfig.CROSS_TOOL == 'keil':
|
|
|
|
group['LINKFLAGS'] = ' --keep __fsym_* --keep __vsym_*'
|
|
|
|
else:
|
|
|
|
group['LINKFLAGS'] = ''
|
2009-10-14 09:47:48 +00:00
|
|
|
|
2010-04-18 15:27:13 +00:00
|
|
|
# add group to project list
|
|
|
|
projects.append(group)
|
2009-10-20 09:18:45 +00:00
|
|
|
|
2010-04-18 15:27:13 +00:00
|
|
|
env.Append(CCFLAGS = group['CCFLAGS'])
|
|
|
|
env.Append(CPPPATH = group['CPPPATH'])
|
|
|
|
env.Append(CPPDEFINES = group['CPPDEFINES'])
|
|
|
|
env.Append(LINKFLAGS = group['LINKFLAGS'])
|
|
|
|
|
|
|
|
objs = env.Object(group['src'])
|
|
|
|
|
|
|
|
Return('objs')
|