| 9 |
|
def radlib(name): return os.path.join(env['RAD_BUILDLIB'], name) |
| 10 |
|
|
| 11 |
|
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], |
| 17 |
|
['rtpic','rtargs','rtio','rtproc','rtmath','rtpath','rtmem','rterror']), |
| 18 |
+ |
#('contour', Split('contour.c'), ['rtmath']), # XXX what is this? |
| 19 |
|
('glarendx', Split('glarendx.c'), ['rtpic','rtio','rtargs','rtmath']), |
| 20 |
|
('vwright', Split('vwright.c'), ['rtpic','rtio','rtargs','rtmath']), |
| 21 |
|
('vwrays', Split('vwrays.c'), ['rtpic','rtio','rtargs','rtmath']), |
| 22 |
|
('rad', Split('rad.c'), |
| 23 |
|
['rtpic','rtproc','rtpath','rtio','rtmath','rtargs','rtcont','rtmem','rterror']), |
| 24 |
< |
('rpiece', Split('rpiece.c Version.c'), |
| 24 |
> |
('rpiece', Split('rpiece.c') + [Version], |
| 25 |
|
['rtpic','rtargs','rtio','rtproc','rtmath','rtpath','rtmem']), |
| 26 |
|
] |
| 27 |
|
if os.name == 'nt': # XXX should be set in a *.cfg file |
| 59 |
|
LIBS=mlib) |
| 60 |
|
scanner_i = env.Install(env['RAD_BINDIR'], scanner) |
| 61 |
|
makedist = env.Program(target=radbin('makedist'), |
| 62 |
< |
source=Split('makedist.c')+[setscan]) |
| 62 |
> |
source=Split('makedist.c')+[setscan], |
| 63 |
> |
LIBS=['rtmath']+mlib) |
| 64 |
|
makedist_i = env.Install(env['RAD_BINDIR'], makedist) |
| 65 |
|
env.Alias('util_special', [scanner, makedist]) |
| 66 |
|
env.Alias('util_special_install', [scanner_i, makedist_i]) |
| 69 |
|
if env.has_key('X11LIB'): |
| 70 |
|
xlibp = env.get('LIBPATH',[]) + [env['X11LIB']] |
| 71 |
|
xincl = env.get('CPPPATH',[]) + [env['X11INCLUDE']] |
| 72 |
+ |
x11findwind = env.Object(source='../common/x11findwind.c') # XXX ../ |
| 73 |
|
xglaresrc = env.Program(target=radbin('xglaresrc'), |
| 74 |
< |
source=Split('xglaresrc.c x11findwind.c'), |
| 74 |
> |
source=Split('xglaresrc.c') + [x11findwind], |
| 75 |
|
LIBPATH=xlibp, CPPPATH=xincl, |
| 76 |
|
LIBS=['rtpic','rtmath','rtargs','rtio','X11']+ mlib) |
| 77 |
|
Default(xglaresrc) |