| 1 |
schorsch |
1.1 |
import os |
| 2 |
|
|
|
| 3 |
|
|
Import('env') # inherit from parent |
| 4 |
|
|
|
| 5 |
|
|
# math libs |
| 6 |
|
|
mlib = env['RAD_MLIB'] |
| 7 |
|
|
|
| 8 |
|
|
# standard targets |
| 9 |
|
|
PROGS = ( |
| 10 |
schorsch |
1.3 |
# name sources libs |
| 11 |
|
|
('genbeads', Split('genbeads.c hermite3.c'), []), |
| 12 |
|
|
('genbox', ['genbox.c',], []), |
| 13 |
|
|
('genmarble', ['genmarble.c',], []), |
| 14 |
|
|
('gensky', Split('gensky.c sun.c',), []), |
| 15 |
|
|
('genblinds', ['genblinds.c',], []), |
| 16 |
|
|
('genprism', ['genprism.c',], []), |
| 17 |
|
|
('genrev', ['genrev.c',], ['rterror','rtfunc','rtcont','rtmem']), |
| 18 |
|
|
('gencatenary', ['gencat.c',], []), |
| 19 |
|
|
('genworm', ['genworm.c',], ['rtfunc','rtmem','rtcont','rtmath']), |
| 20 |
|
|
('gensurf', ['gensurf.c',], ['rtfunc','rtmem','rtcont','rtmath','rtio']), |
| 21 |
|
|
('genclock', ['genclock.c',], []), |
| 22 |
|
|
('genbranch', ['genbranch.c',], []), |
| 23 |
|
|
('replmarks', ['replmarks.c',], |
| 24 |
schorsch |
1.2 |
['rtproc','rtpath','rtmath','rtio','rterror']), |
| 25 |
schorsch |
1.3 |
('mkillum', Split('mkillum.c mkillum2.c mkillum3.c'), |
| 26 |
schorsch |
1.2 |
['rtscene','rtproc','rtpath','rtmath','rtio','rtcont','rterror']), |
| 27 |
schorsch |
1.3 |
('xform', ['xform.c',], |
| 28 |
schorsch |
1.2 |
['rtproc','rtscene','rtmath','rtargs','rtio','rtcont','rtpath','rterror']), |
| 29 |
schorsch |
1.1 |
) |
| 30 |
|
|
for p in PROGS: |
| 31 |
|
|
prog = env.Program(target=os.path.join(env['RAD_BUILDBIN'], p[0]), |
| 32 |
schorsch |
1.2 |
source=p[1], LIBS=p[2] + mlib) |
| 33 |
schorsch |
1.1 |
Default(prog) |
| 34 |
|
|
env.Append(RAD_BININSTALL=[env.Install(env['RAD_BINDIR'], prog)]) |
| 35 |
|
|
|
| 36 |
|
|
#surf.cal clockface.hex |
| 37 |
|
|
LIBFILES = Split('illum.cal rev.cal skybright.cal glaze1.cal glaze2.cal') |
| 38 |
|
|
env.Append(RAD_RLIBINSTALL=env.Install(env['RAD_RLIBDIR'], LIBFILES)) |
| 39 |
schorsch |
1.2 |
|