#-----------------------------------------------------------------------------
#
# make install	- builds assorted utility binarys and places them in ../bin
#
#-----------------------------------------------------------------------------

CFLAGS = $(RCC_CFLAGS)
AS11 = ../Xcompile/bin/as11
LOAD11 = ../Xcompile/bin/ld11

PROGS =	rcc xargs tcmp eqenv qsubst

#ifdef uVaxConfig
ALL_PROGS = $(PROGS) cc ld bsstodata
#else
ALL_PROGS = $(PROGS)
#endif

basicProgram(rcc,rcc.o,)
basicProgram(xargs,xargs.o,)
basicProgram(tcmp,tcmp.o,)
basicProgram(eqenv,eqenv.o,)
basicProgram(qsubst,qsubst.o,-ltermcap)
#ifdef SunArch
basicProgram(patchsym,patchsym.o,)
#endif
#ifdef uVaxConfig
basicProgram(cc,cc.o,)
basicProgram(bsstodata,bsstodata.o,)
basicProgram(ld,ld.o,)
#endif

utilityProgram(rcc,rcc.o,)
utilityProgram(xargs,xargs.o,)
utilityProgram(makeRciConfig,makeRciConfig.o,)
utilityProgram(tcmp,tcmp.o,)
utilityProgram(eqenv,eqenv.o,)
utilityProgram(qsubst,qsubst.o,-ltermcap)
#ifdef SunArch
utilityProgram(patchsym,patchsym.o,)
#endif
#ifdef uVaxConfig
utilityProgram(cc,cc.o,)
utilityProgram(../lib/bsstodata,bsstodata.o,)
utilityProgram(ld,ld.o,)
#endif
utilityProgram(atob,atob.o,)
utilityProgram(btoa,btoa.o,)

#ifndef LinuxConfig
install:	../lib/lsiboot
../lib/lsiboot:	lsiboot
		cp lsiboot ../lib

#lsiboot:	lsiboot.s od11
#		$(AS11) -o boot lsiboot.s 
#		od11 boot > lsiboot
#		rm -f boot

lsiboot:
		cp lsiboot.mcgill lsiboot

basicProgram(od11,od11.o,)


utilityManPage(../man/man1/imake.1,imake.man)
utilityManPage(../man/man1/qsubst.1,qsubst.1)

#if !HasNroff
install:	../bin/nroff ../bin/tbl ../bin/neqn ../bin/awf
../bin/nroff:	awf/sgi-awf-fakes
		cp awf/sgi-awf-fakes ../bin/nroff
../bin/tbl:
		cd ../bin; ln -s nroff tbl
../bin/neqn:
		cd ../bin; ln -s nroff neqn
../bin/awf:	awf/awf
		cp awf/awf ../bin/awf
#endif
#endif
maintainUtils(install)

clean:: 
	$(RMCMD) $(JUNKFILES) $(PROGS) od11 ccimake bsstodata

makeDepend()
