BCPL = bcpl

.SUFFIXES:
.SUFFIXES: .b .g .g1 .g2

.b.g:;	-$(BCPL) $< -to $@
.b.g1:; -nubcpl $< -to $@
.b.g2:; -nubcpl1 $< -to $@

nubcpl: g.root g.syn g.trn g.cgm g.cga g.cgb g.cgc g.cgd \
	g.cge g.cgf g.cgg g.cgh g.cgi g.cgj g.cgk
	join $.alib.newlib g -to nubcpl
	settype nubcpl absolute
	squeeze nubcpl

nubcpl1: g1.root g1.syn g1.trn g1.cgm g1.cga g1.cgb g1.cgc g1.cgd \
	g1.cge g1.cgf g1.cgg g1.cgh g1.cgi g1.cgj g1.cgk
	join $.alib.newlib g1 -to nubcpl1
	rm -f g1.*

nubcpl2: g2.root g2.syn g2.trn g2.cgm g2.cga g2.cgb g2.cgc g2.cgd \
	g2.cge g2.cgf g2.cgg g2.cgh g2.cgi g2.cgj g2.cgk
	join $.alib.newlib g2 -to nubcpl2
	rm -f g2.*
	compx nubcpl1 nubcpl2

clean:; rm -f g.* g1.* g2.* nubcpl*

g.root: b.root b.header  b.ops
g.syn:	b.syn  b.header  b.ops
g.trn:	b.trn  b.header  b.ops
g.cgm:	b.cgm b.cgheader b.ops
g.cga:	b.cga b.cgheader b.ops
g.cgb:	b.cgb b.cgheader b.ops
g.cgc:	b.cgc b.cgheader b.ops
g.cgd:	b.cgd b.cgheader b.ops
g.cge:	b.cge b.cgheader b.ops
g.cgf:	b.cgf b.cgheader b.ops
g.cgg:	b.cgg b.cgheader b.ops
g.cgh:	b.cgh b.cgheader b.ops b.fp2ops
g.cgi:	b.cgi b.cgheader b.ops
g.cgj:	b.cgj b.cgheader b.ops
g.cgk:	b.cgk b.cgheader b.ops b.fp2ops

g1.root: b.root b.header  b.ops
g1.syn:  b.syn	b.header  b.ops
g1.trn:  b.trn	b.header  b.ops
g1.cgm:  b.cgm b.cgheader b.ops
g1.cga:  b.cga b.cgheader b.ops
g1.cgb:  b.cgb b.cgheader b.ops
g1.cgc:  b.cgc b.cgheader b.ops
g1.cgd:  b.cgd b.cgheader b.ops
g1.cge:  b.cge b.cgheader b.ops
g1.cgf:  b.cgf b.cgheader b.ops
g1.cgg:  b.cgg b.cgheader b.ops
g1.cgh:  b.cgh b.cgheader b.ops b.fp2ops
g1.cgi:  b.cgi b.cgheader b.ops
g1.cgj:  b.cgj b.cgheader b.ops
g1.cgk:  b.cgk b.cgheader b.ops b.fp2ops

g2.root: b.root b.header  b.ops
g2.syn:  b.syn	b.header  b.ops
g2.trn:  b.trn	b.header  b.ops
g2.cgm:  b.cgm b.cgheader b.ops
g2.cga:  b.cga b.cgheader b.ops
g2.cgb:  b.cgb b.cgheader b.ops
g2.cgc:  b.cgc b.cgheader b.ops
g2.cgd:  b.cgd b.cgheader b.ops
g2.cge:  b.cge b.cgheader b.ops
g2.cgf:  b.cgf b.cgheader b.ops
g2.cgg:  b.cgg b.cgheader b.ops
g2.cgh:  b.cgh b.cgheader b.ops b.fp2ops
g2.cgi:  b.cgi b.cgheader b.ops
g2.cgj:  b.cgj b.cgheader b.ops
g2.cgk:  b.cgk b.cgheader b.ops b.fp2ops

