########################################################################
#                 copyright 2001, Amoco Production Company             #
#                             All Rights Reserved                      #
#                     an affiliate of BP America Inc.                  #
########################################################################

include ${DEPTROOT}/etc/gmake.init

CSrcs		:=	echo2.c
PRGM		:=	${LocalBin}/echo2
SafeFiles	:=	${CSrcs} Makefile

.PHONY: targets all safe remotes

targets:	${PRGM}

${PRGM}:	${CObjs}
	${LinkC} -o $@ ${CObjs} -lcu

all : safe targets install remotes

safe:	.safe.${jdate}.Z

.safe.${jdate}.Z:	${SafeFiles}
	${MakeSafe}

remotes:	RemoteCopies RemoteMakes

install:	RemoteCopies RemoteMakes
		shadowexec -v ${MAKE} && touch RemoteMakes

RemoteCopies:	${SafeFiles}
	shadowcopy $?
	touch RemoteCopies

RemoteMakes:	${SafeFiles}
	shadowexec ${MAKE}
	touch RemoteMakes

clean:
	-rm ${TArchDir}/included.files ${AllObjs} ${PRGM} RemoteCopies RemoteMakes ${wildcard ShdCpy*}
