4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-23 11:22:10 +08:00
bernard.xiong 04fa66ca3d add module building script.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@627 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-04-16 06:19:59 +00:00

11 lines
211 B
Python

Import('env')
target = 'hello.mo'
module_env = env.Clone(CPPDEFINE = 'RT_MODULE')
module_env.Replace(LINKFLAGS = ' -r -d -e rtm_main -nostdlib')
src_local = Glob('*.c')
module_env.Program(target, src_local)