#	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 .mac
.mac.obj:
	macro -xs:4 $<

all:	macro linkr clean

macro:	/bin/macro
/bin/macro:	exec.mac macro.mac code.mac expr.mac fltg.mac getl.mac \
	lout.mac mac.mac srch.mac xlat.mac misc.mac pst.mac xpcor.mac
	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.mac linkr.mac srch.mac misc.mac xpcor.mac
	make lnk.objs
	linkr -ns -na:linkr exec linkr srch misc xpcor
	install linkr.out bin 0701 /bin/linkr

macxrf:	cref.mac srch.mac misc.mac
	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
