#	Makefile to put the macro act together, and install it.
#	As the *.obj files are not normally left lying around
#	(to save space), this make script must be recursive.

.SUFFIXES:	.obj .m11
.m11.obj:
	macro -xs:4 $<

all:	macro linkr clean

macro:	/bin/macro
/bin/macro:	exec.m11 macro.m11 code.m11 expr.m11 fltg.m11 getl.m11 \
	lout.m11 mac.m11 srch.m11 xlat.m11 misc.m11 pst.m11 xpcor.m11
	make mac.objs
	linkr -ns -na:macro exec macro code expr fltg getl lout mac srch \
		xlat misc pst xpcor
	install macro.out bin 0701 /bin/macro

linkr:	/bin/linkr
/bin/linkr:	exec.m11 linkr.m11 srch.m11 misc.m11 xpcor.m11
	make lnk.objs
	linkr -ns -na:linkr exec linkr srch misc xpcor
	install linkr.out bin 0701 /bin/linkr

macxrf:	cref.m11 srch.m11 misc.m11
	make xrf.objs
	linkr -ns -na:cref cref srch misc

mac.objs:	exec.obj macro.obj code.obj expr.obj fltg.obj getl.obj \
	lout.obj mac.obj srch.obj xlat.obj misc.obj pst.obj xpcor.obj

lnk.objs:	exec.obj linkr.obj srch.obj misc.obj xpcor.obj

xrf.objs:	cref.obj srch.obj misc.obj

clean:
	create o.obj
	rm *.obj
