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

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

CCFlags		:=	-O -Dlint
convexCCFlags	:=	-O2 -pa

LIB		:=	${LocalLib}/libieeeio.a

CSrcs		:=	_error.c _fitinit.c _flushit.c _initial.c _isdisk.c \
			_readit.c _readpipe.c _readsb.c _sisfit.c _strf2c.c \
			_strlower.c _writeit.c bkspt.c lbclos.c lbopen.c \
			rtape.c rtape4.c rwd.c seekt.c \
			sisabort.c sisb4msg.c siserror.c sisfdfit.c sisfmt.c \
			sisinfo.c sislgbuf.c sisprt.c sisseek.c sistrace.c \
			sisver.c siswhen.c skipt.c wrtape.c lucfd.c

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

targets:	${Vendor}Targets

intelTargets:	no_build

sunTargets:	${LIB}

sgiTargets:	${LIB}

ibmTargets:	${LIB}

crayTargets:	no_build

convexTargets:	${LIB}

no_build:
	@echo Bypassing build of ${LIB} on ${Vendor} architecture from ${DEPTROOT}/usp/src/lib/ieeeio

${LIB}:  ${AllObjs}
	@echo Vendor = ${Vendor}
	rm -f ${LIB}
	${AR} r ${LIB} ${AllObjs}
	${RANLIB} ${LIB}

.PHONY:	all remotes safe ${TArchDir}targets

all :	safe targets remotes

remotes:	RemoteCopies RemoteMakes

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

RemoteMakes:	${SafeFiles}
	shadowexec ${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} RemoteCopies RemoteMakes ${LIB}
