mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-14 17:49:27 +08:00
21 lines
397 B
Python
21 lines
397 B
Python
|
|
||
|
from building import *
|
||
|
import rtconfig
|
||
|
|
||
|
cwd = GetCurrentDir()
|
||
|
|
||
|
src = []
|
||
|
|
||
|
src += Glob('*.c')
|
||
|
CPPPATH = [cwd]
|
||
|
LOCAL_CCFLAGS = ''
|
||
|
|
||
|
if rtconfig.CROSS_TOOL == 'gcc':
|
||
|
LOCAL_CCFLAGS += ' -std=c99'
|
||
|
elif rtconfig.CROSS_TOOL == 'keil':
|
||
|
LOCAL_CCFLAGS += ' --c99'
|
||
|
|
||
|
group = DefineGroup('fal', src, depend = ['PKG_USING_FAL'], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
|
||
|
|
||
|
Return('group')
|