diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-12-25 10:01:58 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-12-25 10:01:58 -0500 |
commit | 1fd869810d2cb0efffe3e928121f3585283d3ede (patch) | |
tree | e1de4ecae0006c3d495914ab9341ff448c69f804 /SConstruct | |
parent | edfc59f100b21e06001af0b49c1bc4a5a4874338 (diff) |
put sched_trace in its own lib
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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 |
38 | st = env.Clone( | ||
39 | LIBS = 'st', | ||
40 | LIBPATH = '.' | ||
41 | ) | ||
42 | |||
43 | # link with liblitmus | ||
38 | rt = env.Clone( | 44 | rt = 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. |
52 | env.Library('litmus', | 58 | env.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']) |
61 | env.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') | |||
67 | rt.Program('rt_launch', ['bin/rt_launch.c', 'bin/common.c']) | 74 | rt.Program('rt_launch', ['bin/rt_launch.c', 'bin/common.c']) |
68 | rt.Program('rtspin', ['bin/rtspin.c', 'bin/common.c']) | 75 | rt.Program('rtspin', ['bin/rtspin.c', 'bin/common.c']) |
69 | rt.Program('release_ts', 'bin/release_ts.c') | 76 | rt.Program('release_ts', 'bin/release_ts.c') |
70 | rt.Program('showst', ['bin/showst.c', 'src/sched_trace.c']) | 77 | st.Program('showst', 'bin/showst.c') |