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


# gmake Makefile for ~usp/src/lib/x11util
# 89/5/11	Bill Done

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

sun3CCFlags	:=	${sun3CCFlags} -DSUN
sun3fpaCCFlags	:=	${sun3fpaCCFlags} -DSUN -ffpa -O
sun4CCFlags	:=	${sun4CCFlags} -DSUN -g
cray2CCFlags	:=	${cray2CCFlags} -DCRAY

sun3FCFlags	:=	${sun3FCFlags} -DSUN -O
sun3fpaFCFlags	:=	${sun3fpaFCFlags} -DSUN -ffpa -O
sun4FCFlags	:=	${sun4FCFlags} -DSUN -O
cray2FCFlags	:=	${cray2FCFlags} -DCRAY -Wf"-es" -Wf"-dp"

CIncludes	:=	${strip -I/usr/include/X11 ${IncludeDirs} }

LIB	:=	${LocalLib}/libxlibplot.a

CSrcs		:=	xlibplot.c

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

${LIB}:	${CObjs}
	ar rv ${LIB}	$?
	${RANLIB} ${LIB}

.PHONY:	all remotes safe targets

targets:	${LIB}

all :	safe targets remotes

remotes:	RemoteCopies RemoteMakes

RemoteCopies:	${SafeFiles}
	shadowcopy -v -d $?
	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 ${wildcard ShdCpy*}
