#	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 at.sml $<

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 at.sml
	make mac.objs
	link -o=macro exec macro code expr fltg getl lout mac srch \
		xlat misc pst xpcor
	rm *.obj
	install macro.out bin 0711 /bin/macro

macxrf:	cref.mac srch.mac misc.mac at.sml
	make xrf.objs
	link -o=cref cref srch misc
	rm *.obj

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

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

exec.obj:	exec.mac sysmac.sml at.sml
	macro -xs:6 at.sml sysmac.sml exec
