diff options
Diffstat (limited to 'components/hello/SConscript')
| -rw-r--r-- | components/hello/SConscript | 8 |
1 files changed, 5 insertions, 3 deletions
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) |
