import os

Import('env')

# math libs
mlib = env['RAD_MLIB']

# common objects
viewbeams = env.Object(source='viewbeams.c')
holo = env.Object(source='holo.c')
holofile = env.Object(source='holofile.c')
clumpbeams = env.Object(source='clumpbeams.c')
Version = env.Object(source='../rt/Version.c') # XXX ../rt/not_nice


# standard targets
PROGS = (
('rholo', Split('''rholo.c rholo2.c rholo2l.c rholo3.c rholo4.c''')
	 + [Version, holofile, holo, viewbeams],
	['rtpic','rtproc','rtpath','rtio','rtargs','rtmath','rtmem','rterror']),
('rhpict', Split('rhpict.c rhpict2.c')+[Version, holofile, holo, viewbeams],
	['rtpic','rtproc','rtargs','rtio','rtmath','rtmem','rterror']),
('rhcopy', Split('rhcopy.c') + [clumpbeams, holofile, holo],
	['rtpic','rtproc','rtargs','rtio','rtmath','rtmem','rterror']),
('rhinfo', Split('rhinfo.c') + [holofile, holo],
	['rtio','rtproc', 'rtmath','rterror']),
('rhoptimize', Split('rhoptimize.c') + [clumpbeams, holofile, holo],
	['rtio','rtproc', 'rtmath','rterror']),
('genrhgrid', Split('genrhgrid.c') + [holofile, holo],
 ['rtio','rtmath','rtproc','rterror']),
)
if os.name != 'nt': # pending some major work...
	for p in PROGS:
		prog = env.Program(target=os.path.join(env['RAD_BUILDBIN'], p[0]),
				source=p[1], LIBS=p[2] + mlib)
		Default(prog)
		env.Append(RAD_BININSTALL=[env.Install(env['RAD_BINDIR'], prog)])

# display drivers
if env.has_key('X11INCLUDE'):
	xenv = env.Clone(CPPPATH=[env['X11INCLUDE']] + env['CPPPATH'],
			LIBPATH=[env['X11LIB']] + env['LIBPATH'],)
	# common objects
	rhdisp = xenv.Object(source='rhdisp.c')
	rhdisp2 = xenv.Object(source='rhdisp2.c')
	rhd_qtree = env.Object(source='rhd_qtree.c')
	xcommon = [rhdisp, rhdisp2, holo, viewbeams]
	# other stuff
	devdir = os.path.join(xenv['RAD_BUILDBIN'],'dev')
	idevdir = os.path.join(xenv['RAD_BINDIR'],'dev')
	ocppflags = xenv.get('CPPFLAGS', [])

	# XXX the .hdi extension will cause problems on Windows
	xenv['PROGSUFFIX'] = '.hdi'

	dlibs = ['rtpic','rtmath','rtcont','rtmem','rtargs','rtio','rterror','rtdummy']
	def make_hdi(p): # build them
		obj = xenv.Object(target=p[3], source=p[4], CPPFLAGS=ocppflags + p[5])
		prog = xenv.Program(target=os.path.join(devdir, p[0]),
				source=[obj] + p[1] + xcommon, LIBS=p[2])
		Default(prog)
		inst = xenv.Install(idevdir, prog)
		# XXX what are the alternative "<driver>h" names good for?
		insth = xenv.InstallAs(target=os.path.join(idevdir,
					p[0] + 'h' + xenv['PROGSUFFIX']), source=prog)
		env.Append(RAD_BININSTALL=[inst, insth])

	# (name, sources,   libs,   obj, objsrc, objflags)
	XHDI = (('x11',  Split('rhd_ctab.c rhd_qtree2r.c') + [rhd_qtree],
				dlibs + ['X11'] + mlib,
				'rhd_x11', 'rhd_x11.c', []),
		   )
	for p in XHDI:
		make_hdi(p)

	if env.has_key('OGL'):
		rgllibs = ['rgl','rtscene','rtpath']
		ogl_common_s = Split('rhd_odraw.c rhd_geom.c')
		ogl_common = map(lambda s:xenv.Object(source=s), ogl_common_s)
		rhdobj = xenv.Object(source='rhdobj.c')

		GLHDI = (
			# glx1h
			('glx1', ['rhd_qtree2c.c', rhd_qtree],
			 dlibs + ['GLU','GL','X11'] + mlib,
			 'rhd_glx1', 'rhd_glx1.c', ['-DNOSTEREO']),

			# oglh
			('ogl', ogl_common,
			 rgllibs+dlibs+['GLU','GL','X11'] + mlib,
			 'rhd_ogl0', 'rhd_ogl.c', ['-DNOSTEREO']),

			# ogloh
			('oglo', [rhdobj] + ogl_common,
			 rgllibs+['rtproc']+dlibs+['GLU','GL','X11'] + mlib,
			 'rhd_oglo', 'rhd_ogl.c', ['-DDOBJ', '-DNOSTEREO']),
			)
		for p in GLHDI:
			make_hdi(p)
		if xenv['RAD_STEREO'] == '-DSTEREO':

			GLSHDI = (
				# oglsh
				('ogls', ogl_common,
				 rgllibs+dlibs+['GLU','GL','X11','Xext'] + mlib,
				 'rhd_ogls', 'rhd_ogl.c' ['-DSTEREO']),
					
				# oglsoh
				('oglso', [rhdobj] + ogl_common,
				 rgllibs+dlibs+['GLU','GL','X11','Xext'] + mlib,
				 'rhd_oglso', 'rhd_ogl.c' ['-DDOBJ', '-DSTEREO']),
					)
			for p in GLHDI:
				make_hdi(p)




70c65118e4548c483bc2c27fc51a25d9a43cf033
<mask token>

<mask token>
Import('env')
<mask token>
if os.name != 'nt':
    for p in PROGS:
        prog = env.Program(target=os.path.join(env['RAD_BUILDBIN'], p[0]),
            source=p[1], LIBS=p[2] + mlib)
        Default(prog)
        env.Append(RAD_BININSTALL=[env.Install(env['RAD_BINDIR'], prog)])
if env.has_key('X11INCLUDE'):
    xenv = env.Clone(CPPPATH=[env['X11INCLUDE']] + env['CPPPATH'], LIBPATH=
        [env['X11LIB']] + env['LIBPATH'])
    rhdisp = xenv.Object(source='rhdisp.c')
    rhdisp2 = xenv.Object(source='rhdisp2.c')
    rhd_qtree = env.Object(source='rhd_qtree.c')
    xcommon = [rhdisp, rhdisp2, holo, viewbeams]
    devdir = os.path.join(xenv['RAD_BUILDBIN'], 'dev')
    idevdir = os.path.join(xenv['RAD_BINDIR'], 'dev')
    ocppflags = xenv.get('CPPFLAGS', [])
    xenv['PROGSUFFIX'] = '.hdi'
    dlibs = ['rtpic', 'rtmath', 'rtcont', 'rtmem', 'rtargs', 'rtio',
        'rterror', 'rtdummy']

    def make_hdi(p):
        obj = xenv.Object(target=p[3], source=p[4], CPPFLAGS=ocppflags + p[5])
        prog = xenv.Program(target=os.path.join(devdir, p[0]), source=[obj] +
            p[1] + xcommon, LIBS=p[2])
        Default(prog)
        inst = xenv.Install(idevdir, prog)
        insth = xenv.InstallAs(target=os.path.join(idevdir, p[0] + 'h' +
            xenv['PROGSUFFIX']), source=prog)
        env.Append(RAD_BININSTALL=[inst, insth])
    XHDI = ('x11', Split('rhd_ctab.c rhd_qtree2r.c') + [rhd_qtree], dlibs +
        ['X11'] + mlib, 'rhd_x11', 'rhd_x11.c', []),
    for p in XHDI:
        make_hdi(p)
    if env.has_key('OGL'):
        rgllibs = ['rgl', 'rtscene', 'rtpath']
        ogl_common_s = Split('rhd_odraw.c rhd_geom.c')
        ogl_common = map(lambda s: xenv.Object(source=s), ogl_common_s)
        rhdobj = xenv.Object(source='rhdobj.c')
        GLHDI = ('glx1', ['rhd_qtree2c.c', rhd_qtree], dlibs + ['GLU', 'GL',
            'X11'] + mlib, 'rhd_glx1', 'rhd_glx1.c', ['-DNOSTEREO']), ('ogl',
            ogl_common, rgllibs + dlibs + ['GLU', 'GL', 'X11'] + mlib,
            'rhd_ogl0', 'rhd_ogl.c', ['-DNOSTEREO']), ('oglo', [rhdobj] +
            ogl_common, rgllibs + ['rtproc'] + dlibs + ['GLU', 'GL', 'X11'] +
            mlib, 'rhd_oglo', 'rhd_ogl.c', ['-DDOBJ', '-DNOSTEREO'])
        for p in GLHDI:
            make_hdi(p)
        if xenv['RAD_STEREO'] == '-DSTEREO':
            GLSHDI = ('ogls', ogl_common, rgllibs + dlibs + ['GLU', 'GL',
                'X11', 'Xext'] + mlib, 'rhd_ogls', 'rhd_ogl.c'['-DSTEREO']), (
                'oglso', [rhdobj] + ogl_common, rgllibs + dlibs + ['GLU',
                'GL', 'X11', 'Xext'] + mlib, 'rhd_oglso', 'rhd_ogl.c'[
                '-DDOBJ', '-DSTEREO'])
            for p in GLHDI:
                make_hdi(p)

<mask token>
Import('env')
mlib = env['RAD_MLIB']
viewbeams = env.Object(source='viewbeams.c')
holo = env.Object(source='holo.c')
holofile = env.Object(source='holofile.c')
clumpbeams = env.Object(source='clumpbeams.c')
Version = env.Object(source='../rt/Version.c')
PROGS = ('rholo', Split('rholo.c rholo2.c rholo2l.c rholo3.c rholo4.c') + [
    Version, holofile, holo, viewbeams], ['rtpic', 'rtproc', 'rtpath',
    'rtio', 'rtargs', 'rtmath', 'rtmem', 'rterror']), ('rhpict', Split(
    'rhpict.c rhpict2.c') + [Version, holofile, holo, viewbeams], ['rtpic',
    'rtproc', 'rtargs', 'rtio', 'rtmath', 'rtmem', 'rterror']), ('rhcopy', 
    Split('rhcopy.c') + [clumpbeams, holofile, holo], ['rtpic', 'rtproc',
    'rtargs', 'rtio', 'rtmath', 'rtmem', 'rterror']), ('rhinfo', Split(
    'rhinfo.c') + [holofile, holo], ['rtio', 'rtproc', 'rtmath', 'rterror']), (
    'rhoptimize', Split('rhoptimize.c') + [clumpbeams, holofile, holo], [
    'rtio', 'rtproc', 'rtmath', 'rterror']), ('genrhgrid', Split(
    'genrhgrid.c') + [holofile, holo], ['rtio', 'rtmath', 'rtproc', 'rterror'])
if os.name != 'nt':
    for p in PROGS:
        prog = env.Program(target=os.path.join(env['RAD_BUILDBIN'], p[0]),
            source=p[1], LIBS=p[2] + mlib)
        Default(prog)
        env.Append(RAD_BININSTALL=[env.Install(env['RAD_BINDIR'], prog)])
if env.has_key('X11INCLUDE'):
    xenv = env.Clone(CPPPATH=[env['X11INCLUDE']] + env['CPPPATH'], LIBPATH=
        [env['X11LIB']] + env['LIBPATH'])
    rhdisp = xenv.Object(source='rhdisp.c')
    rhdisp2 = xenv.Object(source='rhdisp2.c')
    rhd_qtree = env.Object(source='rhd_qtree.c')
    xcommon = [rhdisp, rhdisp2, holo, viewbeams]
    devdir = os.path.join(xenv['RAD_BUILDBIN'], 'dev')
    idevdir = os.path.join(xenv['RAD_BINDIR'], 'dev')
    ocppflags = xenv.get('CPPFLAGS', [])
    xenv['PROGSUFFIX'] = '.hdi'
    dlibs = ['rtpic', 'rtmath', 'rtcont', 'rtmem', 'rtargs', 'rtio',
        'rterror', 'rtdummy']

    def make_hdi(p):
        obj = xenv.Object(target=p[3], source=p[4], CPPFLAGS=ocppflags + p[5])
        prog = xenv.Program(target=os.path.join(devdir, p[0]), source=[obj] +
            p[1] + xcommon, LIBS=p[2])
        Default(prog)
        inst = xenv.Install(idevdir, prog)
        insth = xenv.InstallAs(target=os.path.join(idevdir, p[0] + 'h' +
            xenv['PROGSUFFIX']), source=prog)
        env.Append(RAD_BININSTALL=[inst, insth])
    XHDI = ('x11', Split('rhd_ctab.c rhd_qtree2r.c') + [rhd_qtree], dlibs +
        ['X11'] + mlib, 'rhd_x11', 'rhd_x11.c', []),
    for p in XHDI:
        make_hdi(p)
    if env.has_key('OGL'):
        rgllibs = ['rgl', 'rtscene', 'rtpath']
        ogl_common_s = Split('rhd_odraw.c rhd_geom.c')
        ogl_common = map(lambda s: xenv.Object(source=s), ogl_common_s)
        rhdobj = xenv.Object(source='rhdobj.c')
        GLHDI = ('glx1', ['rhd_qtree2c.c', rhd_qtree], dlibs + ['GLU', 'GL',
            'X11'] + mlib, 'rhd_glx1', 'rhd_glx1.c', ['-DNOSTEREO']), ('ogl',
            ogl_common, rgllibs + dlibs + ['GLU', 'GL', 'X11'] + mlib,
            'rhd_ogl0', 'rhd_ogl.c', ['-DNOSTEREO']), ('oglo', [rhdobj] +
            ogl_common, rgllibs + ['rtproc'] + dlibs + ['GLU', 'GL', 'X11'] +
            mlib, 'rhd_oglo', 'rhd_ogl.c', ['-DDOBJ', '-DNOSTEREO'])
        for p in GLHDI:
            make_hdi(p)
        if xenv['RAD_STEREO'] == '-DSTEREO':
            GLSHDI = ('ogls', ogl_common, rgllibs + dlibs + ['GLU', 'GL',
                'X11', 'Xext'] + mlib, 'rhd_ogls', 'rhd_ogl.c'['-DSTEREO']), (
                'oglso', [rhdobj] + ogl_common, rgllibs + dlibs + ['GLU',
                'GL', 'X11', 'Xext'] + mlib, 'rhd_oglso', 'rhd_ogl.c'[
                '-DDOBJ', '-DSTEREO'])
            for p in GLHDI:
                make_hdi(p)

import os
Import('env')
mlib = env['RAD_MLIB']
viewbeams = env.Object(source='viewbeams.c')
holo = env.Object(source='holo.c')
holofile = env.Object(source='holofile.c')
clumpbeams = env.Object(source='clumpbeams.c')
Version = env.Object(source='../rt/Version.c')
PROGS = ('rholo', Split('rholo.c rholo2.c rholo2l.c rholo3.c rholo4.c') + [
    Version, holofile, holo, viewbeams], ['rtpic', 'rtproc', 'rtpath',
    'rtio', 'rtargs', 'rtmath', 'rtmem', 'rterror']), ('rhpict', Split(
    'rhpict.c rhpict2.c') + [Version, holofile, holo, viewbeams], ['rtpic',
    'rtproc', 'rtargs', 'rtio', 'rtmath', 'rtmem', 'rterror']), ('rhcopy', 
    Split('rhcopy.c') + [clumpbeams, holofile, holo], ['rtpic', 'rtproc',
    'rtargs', 'rtio', 'rtmath', 'rtmem', 'rterror']), ('rhinfo', Split(
    'rhinfo.c') + [holofile, holo], ['rtio', 'rtproc', 'rtmath', 'rterror']), (
    'rhoptimize', Split('rhoptimize.c') + [clumpbeams, holofile, holo], [
    'rtio', 'rtproc', 'rtmath', 'rterror']), ('genrhgrid', Split(
    'genrhgrid.c') + [holofile, holo], ['rtio', 'rtmath', 'rtproc', 'rterror'])
if os.name != 'nt':
    for p in PROGS:
        prog = env.Program(target=os.path.join(env['RAD_BUILDBIN'], p[0]),
            source=p[1], LIBS=p[2] + mlib)
        Default(prog)
        env.Append(RAD_BININSTALL=[env.Install(env['RAD_BINDIR'], prog)])
if env.has_key('X11INCLUDE'):
    xenv = env.Clone(CPPPATH=[env['X11INCLUDE']] + env['CPPPATH'], LIBPATH=
        [env['X11LIB']] + env['LIBPATH'])
    rhdisp = xenv.Object(source='rhdisp.c')
    rhdisp2 = xenv.Object(source='rhdisp2.c')
    rhd_qtree = env.Object(source='rhd_qtree.c')
    xcommon = [rhdisp, rhdisp2, holo, viewbeams]
    devdir = os.path.join(xenv['RAD_BUILDBIN'], 'dev')
    idevdir = os.path.join(xenv['RAD_BINDIR'], 'dev')
    ocppflags = xenv.get('CPPFLAGS', [])
    xenv['PROGSUFFIX'] = '.hdi'
    dlibs = ['rtpic', 'rtmath', 'rtcont', 'rtmem', 'rtargs', 'rtio',
        'rterror', 'rtdummy']

    def make_hdi(p):
        obj = xenv.Object(target=p[3], source=p[4], CPPFLAGS=ocppflags + p[5])
        prog = xenv.Program(target=os.path.join(devdir, p[0]), source=[obj] +
            p[1] + xcommon, LIBS=p[2])
        Default(prog)
        inst = xenv.Install(idevdir, prog)
        insth = xenv.InstallAs(target=os.path.join(idevdir, p[0] + 'h' +
            xenv['PROGSUFFIX']), source=prog)
        env.Append(RAD_BININSTALL=[inst, insth])
    XHDI = ('x11', Split('rhd_ctab.c rhd_qtree2r.c') + [rhd_qtree], dlibs +
        ['X11'] + mlib, 'rhd_x11', 'rhd_x11.c', []),
    for p in XHDI:
        make_hdi(p)
    if env.has_key('OGL'):
        rgllibs = ['rgl', 'rtscene', 'rtpath']
        ogl_common_s = Split('rhd_odraw.c rhd_geom.c')
        ogl_common = map(lambda s: xenv.Object(source=s), ogl_common_s)
        rhdobj = xenv.Object(source='rhdobj.c')
        GLHDI = ('glx1', ['rhd_qtree2c.c', rhd_qtree], dlibs + ['GLU', 'GL',
            'X11'] + mlib, 'rhd_glx1', 'rhd_glx1.c', ['-DNOSTEREO']), ('ogl',
            ogl_common, rgllibs + dlibs + ['GLU', 'GL', 'X11'] + mlib,
            'rhd_ogl0', 'rhd_ogl.c', ['-DNOSTEREO']), ('oglo', [rhdobj] +
            ogl_common, rgllibs + ['rtproc'] + dlibs + ['GLU', 'GL', 'X11'] +
            mlib, 'rhd_oglo', 'rhd_ogl.c', ['-DDOBJ', '-DNOSTEREO'])
        for p in GLHDI:
            make_hdi(p)
        if xenv['RAD_STEREO'] == '-DSTEREO':
            GLSHDI = ('ogls', ogl_common, rgllibs + dlibs + ['GLU', 'GL',
                'X11', 'Xext'] + mlib, 'rhd_ogls', 'rhd_ogl.c'['-DSTEREO']), (
                'oglso', [rhdobj] + ogl_common, rgllibs + dlibs + ['GLU',
                'GL', 'X11', 'Xext'] + mlib, 'rhd_oglso', 'rhd_ogl.c'[
                '-DDOBJ', '-DSTEREO'])
            for p in GLHDI:
                make_hdi(p)

import os

Import('env')

# math libs
mlib = env['RAD_MLIB']

# common objects
viewbeams = env.Object(source='viewbeams.c')
holo = env.Object(source='holo.c')
holofile = env.Object(source='holofile.c')
clumpbeams = env.Object(source='clumpbeams.c')
Version = env.Object(source='../rt/Version.c') # XXX ../rt/not_nice


# standard targets
PROGS = (
('rholo', Split('''rholo.c rholo2.c rholo2l.c rholo3.c rholo4.c''')
	 + [Version, holofile, holo, viewbeams],
	['rtpic','rtproc','rtpath','rtio','rtargs','rtmath','rtmem','rterror']),
('rhpict', Split('rhpict.c rhpict2.c')+[Version, holofile, holo, viewbeams],
	['rtpic','rtproc','rtargs','rtio','rtmath','rtmem','rterror']),
('rhcopy', Split('rhcopy.c') + [clumpbeams, holofile, holo],
	['rtpic','rtproc','rtargs','rtio','rtmath','rtmem','rterror']),
('rhinfo', Split('rhinfo.c') + [holofile, holo],
	['rtio','rtproc', 'rtmath','rterror']),
('rhoptimize', Split('rhoptimize.c') + [clumpbeams, holofile, holo],
	['rtio','rtproc', 'rtmath','rterror']),
('genrhgrid', Split('genrhgrid.c') + [holofile, holo],
 ['rtio','rtmath','rtproc','rterror']),
)
if os.name != 'nt': # pending some major work...
	for p in PROGS:
		prog = env.Program(target=os.path.join(env['RAD_BUILDBIN'], p[0]),
				source=p[1], LIBS=p[2] + mlib)
		Default(prog)
		env.Append(RAD_BININSTALL=[env.Install(env['RAD_BINDIR'], prog)])

# display drivers
if env.has_key('X11INCLUDE'):
	xenv = env.Clone(CPPPATH=[env['X11INCLUDE']] + env['CPPPATH'],
			LIBPATH=[env['X11LIB']] + env['LIBPATH'],)
	# common objects
	rhdisp = xenv.Object(source='rhdisp.c')
	rhdisp2 = xenv.Object(source='rhdisp2.c')
	rhd_qtree = env.Object(source='rhd_qtree.c')
	xcommon = [rhdisp, rhdisp2, holo, viewbeams]
	# other stuff
	devdir = os.path.join(xenv['RAD_BUILDBIN'],'dev')
	idevdir = os.path.join(xenv['RAD_BINDIR'],'dev')
	ocppflags = xenv.get('CPPFLAGS', [])

	# XXX the .hdi extension will cause problems on Windows
	xenv['PROGSUFFIX'] = '.hdi'

	dlibs = ['rtpic','rtmath','rtcont','rtmem','rtargs','rtio','rterror','rtdummy']
	def make_hdi(p): # build them
		obj = xenv.Object(target=p[3], source=p[4], CPPFLAGS=ocppflags + p[5])
		prog = xenv.Program(target=os.path.join(devdir, p[0]),
				source=[obj] + p[1] + xcommon, LIBS=p[2])
		Default(prog)
		inst = xenv.Install(idevdir, prog)
		# XXX what are the alternative "<driver>h" names good for?
		insth = xenv.InstallAs(target=os.path.join(idevdir,
					p[0] + 'h' + xenv['PROGSUFFIX']), source=prog)
		env.Append(RAD_BININSTALL=[inst, insth])

	# (name, sources,   libs,   obj, objsrc, objflags)
	XHDI = (('x11',  Split('rhd_ctab.c rhd_qtree2r.c') + [rhd_qtree],
				dlibs + ['X11'] + mlib,
				'rhd_x11', 'rhd_x11.c', []),
		   )
	for p in XHDI:
		make_hdi(p)

	if env.has_key('OGL'):
		rgllibs = ['rgl','rtscene','rtpath']
		ogl_common_s = Split('rhd_odraw.c rhd_geom.c')
		ogl_common = map(lambda s:xenv.Object(source=s), ogl_common_s)
		rhdobj = xenv.Object(source='rhdobj.c')

		GLHDI = (
			# glx1h
			('glx1', ['rhd_qtree2c.c', rhd_qtree],
			 dlibs + ['GLU','GL','X11'] + mlib,
			 'rhd_glx1', 'rhd_glx1.c', ['-DNOSTEREO']),

			# oglh
			('ogl', ogl_common,
			 rgllibs+dlibs+['GLU','GL','X11'] + mlib,
			 'rhd_ogl0', 'rhd_ogl.c', ['-DNOSTEREO']),

			# ogloh
			('oglo', [rhdobj] + ogl_common,
			 rgllibs+['rtproc']+dlibs+['GLU','GL','X11'] + mlib,
			 'rhd_oglo', 'rhd_ogl.c', ['-DDOBJ', '-DNOSTEREO']),
			)
		for p in GLHDI:
			make_hdi(p)
		if xenv['RAD_STEREO'] == '-DSTEREO':

			GLSHDI = (
				# oglsh
				('ogls', ogl_common,
				 rgllibs+dlibs+['GLU','GL','X11','Xext'] + mlib,
				 'rhd_ogls', 'rhd_ogl.c' ['-DSTEREO']),
					
				# oglsoh
				('oglso', [rhdobj] + ogl_common,
				 rgllibs+dlibs+['GLU','GL','X11','Xext'] + mlib,
				 'rhd_oglso', 'rhd_ogl.c' ['-DDOBJ', '-DSTEREO']),
					)
			for p in GLHDI:
				make_hdi(p)



