2020-03-14 16:18:57 +08:00
|
|
|
|
|
|
|
from building import *
|
|
|
|
import rtconfig
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
|
|
|
|
src = []
|
|
|
|
|
|
|
|
src += Glob('*.c')
|
|
|
|
CPPPATH = [cwd]
|
2021-12-22 11:03:03 +08:00
|
|
|
LOCAL_CFLAGS = ''
|
2020-03-14 16:18:57 +08:00
|
|
|
|
2022-01-20 12:24:47 +08:00
|
|
|
if rtconfig.PLATFORM == 'gcc':
|
2022-01-20 14:20:43 +08:00
|
|
|
LOCAL_CFLAGS += ' -std=c99'
|
2022-01-20 12:24:47 +08:00
|
|
|
elif rtconfig.PLATFORM == 'armcc':
|
2022-01-20 14:20:43 +08:00
|
|
|
LOCAL_CFLAGS += ' --c99'
|
2022-01-20 12:24:47 +08:00
|
|
|
elif rtconfig.PLATFORM == 'armclang':
|
2021-12-22 11:03:03 +08:00
|
|
|
LOCAL_CFLAGS += ' -std=c99'
|
2020-03-14 16:18:57 +08:00
|
|
|
|
2022-03-15 09:48:05 +08:00
|
|
|
group = DefineGroup('FAL', src, depend = ['RT_USING_FAL'], CPPPATH = CPPPATH, LOCAL_CFLAGS = LOCAL_CFLAGS)
|
2020-03-14 16:18:57 +08:00
|
|
|
|
|
|
|
Return('group')
|