aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--SConstruct13
1 files changed, 10 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct
index 82d8183..df261db 100644
--- a/SConstruct
+++ b/SConstruct
@@ -34,7 +34,13 @@ if arch == 'sparc64':
34 v9 = Split('-mcpu=v9 -m64') 34 v9 = Split('-mcpu=v9 -m64')
35 env.Append(CCFLAGS = v9, LINKFLAGS = v9) 35 env.Append(CCFLAGS = v9, LINKFLAGS = v9)
36 36
37# link with lib libtmus 37# link with libst
38st = env.Clone(
39 LIBS = 'st',
40 LIBPATH = '.'
41)
42
43# link with liblitmus
38rt = env.Clone( 44rt = env.Clone(
39 LIBS = 'litmus', 45 LIBS = 'litmus',
40 LIBPATH = '.' 46 LIBPATH = '.'
@@ -47,11 +53,12 @@ mtrt.Append(LINKFLAGS = '-pthread')
47 53
48 54
49# ##################################################################### 55# #####################################################################
50# Targets: liblitmus 56# Targets: liblitmus libst
51# All the files in src/ are part of the library. 57# All the files in src/ are part of the library.
52env.Library('litmus', 58env.Library('litmus',
53 ['src/kernel_iface.c', 'src/litmus.c', 59 ['src/kernel_iface.c', 'src/litmus.c',
54 'src/syscalls.c', 'src/task.c']) 60 'src/syscalls.c', 'src/task.c'])
61env.Library('st', ['src/sched_trace.c'])
55 62
56# ##################################################################### 63# #####################################################################
57# Targets: simple tools that do not depend on liblitmus 64# Targets: simple tools that do not depend on liblitmus
@@ -67,4 +74,4 @@ rt.Program('np_test', 'bin/np_test.c')
67rt.Program('rt_launch', ['bin/rt_launch.c', 'bin/common.c']) 74rt.Program('rt_launch', ['bin/rt_launch.c', 'bin/common.c'])
68rt.Program('rtspin', ['bin/rtspin.c', 'bin/common.c']) 75rt.Program('rtspin', ['bin/rtspin.c', 'bin/common.c'])
69rt.Program('release_ts', 'bin/release_ts.c') 76rt.Program('release_ts', 'bin/release_ts.c')
70rt.Program('showst', ['bin/showst.c', 'src/sched_trace.c']) 77st.Program('showst', 'bin/showst.c')