1 |
schorsch |
1.1 |
import os |
2 |
|
|
|
3 |
|
|
Import('env') # inherit from parent |
4 |
|
|
|
5 |
|
|
mlib = env['RAD_MLIB'] |
6 |
|
|
|
7 |
|
|
# standard targets |
8 |
|
|
PROGS = ( |
9 |
|
|
# name sources libs |
10 |
schorsch |
1.2 |
('calc', Split('calc.c'), ['rtfunc','rtmem','rtcont'] + mlib), |
11 |
|
|
('ev', Split('ev.c'), ['rtfunc','rtmem','rtcont'] + mlib), |
12 |
|
|
('rcalc', Split('rcalc.c'), ['rtfunc','rtmem','rtcont'] + mlib), |
13 |
schorsch |
1.1 |
('total', Split('total.c'), mlib), |
14 |
|
|
('cnt', Split('cnt.c'), []), |
15 |
|
|
('neat', Split('neat.c'), []), |
16 |
schorsch |
1.2 |
('lam', Split('lam.c'), ['rtproc','rtpath','rtio','rterror']), |
17 |
|
|
('tabfunc',Split('tabfunc.c'), ['rtio'] + mlib), |
18 |
schorsch |
1.1 |
('histo', Split('histo.c'), mlib), |
19 |
|
|
) |
20 |
|
|
for p in PROGS: |
21 |
|
|
prog = env.Program(target=os.path.join(env['RAD_BUILDBIN'], p[0]), |
22 |
|
|
source=p[1], LIBS=p[2]) |
23 |
|
|
Default(prog) |
24 |
|
|
env.Append(RAD_BININSTALL=[env.Install(env['RAD_BINDIR'], prog)]) |
25 |
|
|
|
26 |
|
|
|