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-08-15 22:32:27 +08:00
|
|
|
if rtconfig.PLATFORM in ['gcc', 'armclang']:
|
2022-01-20 14:20:43 +08:00
|
|
|
LOCAL_CFLAGS += ' -std=c99'
|
2022-08-15 22:32:27 +08:00
|
|
|
elif rtconfig.PLATFORM in ['armcc']:
|
2022-01-20 14:20:43 +08:00
|
|
|
LOCAL_CFLAGS += ' --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')
|