#FIX=fixstack		# use this for Coherent 3.x
FIX=true		# and that for Coherent 4.0
BINDIR=/usr/local/bin

objs = basename.o checkperm.o dir-io.o display.o fileid.o getcfile.o \
	getfield.o getjid.o getnarg.o getsend.o getsystem.o getuname.o \
	isctrlfile.o mailuser.o main.o mkuupath.o perfact.o procfile.o \
	procsite.o touchfile.o usage.o getelname.o getfage.o getclstat.o \
	strupr.o

uustat : $(objs)
	cc -o uustat $(objs)
	@$(FIX) +1000 uustat
	@echo uustat has been built
	@echo
	@echo "don't forget to do the following:"
	@echo '    move uustat to your favorite place'
	@echo '    chown uucp /path/uustat'
	@echo '    chgrp uucp /path/uustat'
	@echo '    chmod 6111 /path/uustat'
	@echo
	@echo "You can have make do it for you by loggin in as root or giving the"
	@echo "'su' command and typing 'make install'."
	@echo "BUT BEFORE YOU DO, CHECK THE MAKEFILE!!!!"


install :
	mv uustat $(BINDIR)
	chown uucp $(BINDIR)/uustat
	chgrp uucp $(BINDIR)/uustat
	chmod 6111 $(BINDIR)/uustat
