From 04fa66ca3d781e516a6ac38c3b18c673ee16df04 Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Fri, 16 Apr 2010 06:19:59 +0000 Subject: add module building script. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@627 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/hello/SConscript | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'components/hello/SConscript') diff --git a/components/hello/SConscript b/components/hello/SConscript index 5c3eccd149..215c4eb4cb 100644 --- a/components/hello/SConscript +++ b/components/hello/SConscript @@ -1,8 +1,10 @@ Import('env') -src = ('hello.c') +target = 'hello.mo' -obj = env.Object(src) +module_env = env.Clone(CPPDEFINE = 'RT_MODULE') +module_env.Replace(LINKFLAGS = ' -r -d -e rtm_main -nostdlib') -Return('obj') +src_local = Glob('*.c') +module_env.Program(target, src_local) -- cgit v1.3.1