-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSConstruct
30 lines (27 loc) · 969 Bytes
/
SConstruct
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Running unittests is left as an exercise for the reader, through the
# run_tests.sh shellscript.
env = Environment(CFLAGS= ['-falign-functions=16',
'-D_REENTRANT',
'-mtune=opteron',
'-g',
'-O2',
'-fPIC',
'-Wall',
'-Werror',
'-Wpointer-arith',
'-Wreturn-type',
'-Wswitch',
'-Wunused',
'-Wundef',
'-Wno-uninitialized',
'-Wno-format',
'-Wmissing-prototypes',
'--std=gnu99',
'-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE']
, LIBPATH='.')
env.Library('tmstat', ['libtmstat.c', 'libtmstat_eval.c'])
env.Program('tmstat', ['tmstat_dash.c', 'd_compress.c', 'd_cpu.c', 'd_summary.c'],
LIBS=['tmstat', 'curses'])
env.Program('tmctl', ['tmctl.c'], LIBS=['tmstat'])
env.Program('tmstat_test', ['tmstat_test.c'], LIBS=['tmstat'])
env.Library('tmstat_tls', ['tmstat_sandbox.c', 'libtmstat.c', 'libtmstat_eval.c'])