| 9 |
|
def radbin(name): return os.path.join('$RAD_BUILDBIN', name) |
| 10 |
|
def radlib(name): return os.path.join('$RAD_BUILDLIB', name) |
| 11 |
|
|
| 12 |
– |
setscan = env.Object(source='setscan.c') |
| 12 |
|
Version = env.Object(source='../rt/Version.c') # XXX ../rt/not_nice |
| 13 |
|
|
| 14 |
|
# standard targets |
| 15 |
|
PROGS = [ |
| 16 |
< |
('findglare', Split('findglare.c glareval.c glaresrc.c')+[setscan], |
| 16 |
> |
('findglare', Split('findglare.c glareval.c glaresrc.c setscan.c'), |
| 17 |
|
['rtpic','rtargs','rtio','rtproc','rtmath','rtpath','rtmem','rterror']), |
| 19 |
– |
#('contour', Split('contour.c'), ['rtmath']), # XXX what is this? |
| 18 |
|
('glarendx', Split('glarendx.c'), ['rtpic','rtio','rtargs','rtmath']), |
| 19 |
|
('vwright', Split('vwright.c'), ['rtpic','rtio','rtargs','rtmath']), |
| 20 |
|
('vwrays', Split('vwrays.c'), ['rtpic','rtio','rtargs','rtmath']), |
| 31 |
|
netlib = [] |
| 32 |
|
|
| 33 |
|
PROGS.append(('ranimate', ['ranimate.c', netproc], |
| 34 |
< |
['rtpic','rtargs','rtio','rtcont','rtmem','rtpath','rtmath','rtnet','rterror'] + netlib)) |
| 34 |
> |
['rtpic','rtargs','rtio','rtcont','rtmem','rtpath','rtmath', |
| 35 |
> |
'rtnet','$RAD_SOCKETLIB','rterror'] + netlib)) |
| 36 |
|
for p in PROGS: |
| 37 |
|
prog = env.Program(target=radbin(p[0]), source=p[1], LIBS=p[2]+mlib) |
| 38 |
|
progs.append(prog) |
| 50 |
|
LIBS=['rtio']) |
| 51 |
|
progs.append(getinfo) |
| 52 |
|
|
| 54 |
– |
# special targets not normally built |
| 55 |
– |
if os.name != 'nt': # XXX pending replacement of fork() and friends |
| 56 |
– |
scanner = env.Program(target=radbin('scanner'), source='scanner.c', |
| 57 |
– |
LIBS=mlib) |
| 58 |
– |
scanner_i = env.Install('$RAD_BINDIR', scanner) |
| 59 |
– |
makedist = env.Program(target=radbin('makedist'), |
| 60 |
– |
source=Split('makedist.c')+[setscan], |
| 61 |
– |
LIBS=['rtmath']+mlib) |
| 62 |
– |
makedist_i = env.Install('$RAD_BINDIR', makedist) |
| 63 |
– |
env.Alias('util_special', [scanner, makedist]) |
| 64 |
– |
env.Alias('util_special_install', [scanner_i, makedist_i]) |
| 53 |
|
|
| 54 |
|
# X11 targets |
| 55 |
|
if env.has_key('X11LIB'): |
| 77 |
|
for s in Split('''objview objline objpict |
| 78 |
|
glare dayfact debugcal rlux raddepend compamb vinfo genambpos'''): |
| 79 |
|
Default(env.InstallCsh(radbin(s), s + '.csh')) |
| 80 |
+ |
# Those don't really work yet |
| 81 |
+ |
#else: |
| 82 |
+ |
# for s in Split('''objview glare rlux '''): |
| 83 |
+ |
# prog = env.Program(target=radbin(s), source=s+'.c') |
| 84 |
+ |
# progs.append(prog) |
| 85 |
|
|
| 86 |
|
Default('#src/util') |
| 87 |
|
env.Install('$RAD_BINDIR', progs) |