6 |
|
mlib = env['RAD_MLIB'] |
7 |
|
|
8 |
|
# standard targets |
9 |
+ |
env.Object(source='bbox.c') |
10 |
+ |
env.Object(source='o_face.c') |
11 |
|
PROGS = ( |
12 |
< |
('oconv', Split('''oconv.c writeoct.c bbox.c initotypes.c |
13 |
< |
sphere.c o_face.c o_cone.c o_instance.c''')), |
14 |
< |
('getbbox', Split('getbbox.c readobj2.c bbox.c init2otypes.c')), |
15 |
< |
('obj2mesh', Split('obj2mesh.c cvmesh.c wfconv.c o_face.c writemesh.c')), |
12 |
> |
('oconv', Split('''oconv.c writeoct.c bbox.o initotypes.c |
13 |
> |
sphere.c o_face.o o_cone.c o_instance.c'''), []), |
14 |
> |
('getbbox', Split('getbbox.c readobj2.c bbox.o init2otypes.c'), []), |
15 |
> |
('obj2mesh', Split('obj2mesh.c cvmesh.c wfconv.c o_face.o writemesh.c'), |
16 |
> |
['rtdummy']), |
17 |
|
) |
18 |
|
for p in PROGS: |
19 |
|
prog = env.Program(target=os.path.join(env['RAD_BUILDBIN'], p[0]), |
20 |
|
source=p[1], LIBS=['rtproc','rtscene','rtpath','rtio','rtmath', |
21 |
< |
'rtargs','rtcont','rtmem','rterror','rtproc']+mlib) |
21 |
> |
'rtargs','rtcont','rtmem','rterror','rtproc']+p[2]+mlib) |
22 |
|
Default(prog) |
23 |
|
env.Append(RAD_BININSTALL=[env.Install(env['RAD_BINDIR'], prog)]) |
24 |
|
|