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

 
include ${DEPTROOT}/usp/etc/gmake.init

# define the targets

PRGM		:=	${LocalBin}/readtape

# set the architecture dependent variables

LIBES           :=      -lcu -lut -lieeeio

Libes	:=	${Libes} ${${Vendor}Libes} ${${TArchDir}Libes}

CSrcs		:=	readtape.c

SafeFiles	:=	${AllSrcs} Makefile ${wildcard *.h}

.PHONY:	all

targets:	${PRGM}

all:	safe clean targets install remotes

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

install:
	mancopy 1 readtape 
	execopy readtape 
	shadowexec -v ${MAKE} install

remotes:	RemoteCopies  RemoteMakes

RemoteCopies:	${SafeFiles}
	shadowcopy -v $? && touch RemoteCopies

RemoteMakes:	${SafeFiles}
	shadowexec -v ${MAKE} && touch RemoteMakes

include ${TArchDir}/included.files

${TArchDir}/included.files:	${AllSrcs}
	${FindIncludes}

safe:	.safe.${jdate}.Z

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


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