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

#
include ${DEPTROOT}/etc/gmake.init
include ${DEPTROOT}/etc/gmake.motif1.2

CSrcs		:=	XmCreateVa.c
CSQLSrcs	:=
F77Srcs		:=
F8xSrcs		:=
FSQLSrcs	:=

LIB		:=      ${LocalLib}/libXmCreateVa.a

sun4cg92CCFlags	:=	${sun4cg92CCFlags} -vc
CCFlags         :=      ${CCFlags} -O
FCFlags		:=	${FCFlags} -O
FLFlags         :=      ${FLFlags} -s

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

targets: ${LIB}

all:	safe targets remotes

debug:
	@echo CompileC = ${LinkC}
	@echo LinkC = ${LinkC}

${LIB}:	${AllObjs}
	${AR} r ${LIB}  $?
	${RANLIB} $@

.PHONY:	all remotes safe targets flow xflow

remotes:	safe RemoteCopies RemoteMakes

flow:
	cflow ${CIncludes} ${CSrcs} | lpr

xflow:
	cflow -ix ${CIncludes} ${CSrcs} | lpr

RemoteCopies:	${SafeFiles}
	shadowcopy $?
	touch RemoteCopies
 
RemoteMakes:	${SafeFiles}
	shadowexec ${MAKE} -f Makefile.jmw
	touch RemoteMakes

safe:	.safe.${jdate}.Z

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

include ${TArchDir}/included.files

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

clean:
	-rm ${TArchDir}/included.files ${AllObjs} ${LIB} \
	${TArchDir}/XmCreateVa.o RemoteCopies RemoteMakes
