# $Id: base,v 1.37 1998/04/26 00:59:43 balay Exp $ 

PARCH    = t3d
CC       = cc -h jump
#
#  Indicates the version of the compiler you are using; if you do not know
#  how to get the version number then use: unknown
#
CCV      = ${CC} -V
#
FC       = cf77 -dp
AR       = ar
RM       = rm -f
RANLIB   = true
OMAKE    = make
SHELL    = /bin/sh
CLINKER  = ${CC} ${COPTFLAGS}
FLINKER  = ${FC} ${FOPTFLAGS} -M7207
SYS_LIB  =
SHELL    = /bin/sh

include ${PETSC_DIR}/bmake/common

libc:
	for i in ${OBJSC}; do ${OMAKE} BOPT=${BOPT} libmember LIBMEMBER=$$i ; done

libf:
	for i in ${OBJSF}; do ${OMAKE} BOPT=${BOPT} libmember LIBMEMBER=$$i ; done

libmember:    ${LIBNAME}(${LIBMEMBER})
	@-true

#########
.F.f:
	-${RM} /tmp/$*.f
	-${CC} -E ${CPPFLAGS} $*.F | sed -e 's/^#line/#/g'  > /tmp/$*.f
.F.o:
	-${RM} /tmp/$*.f
	-${CC} -E ${CPPFLAGS} $*.F | sed -e 's/^#line/#/g'  > /tmp/$*.f
	-${FC} -c ${FOPTFLAGS} ${FFLAGS} /tmp/$*.f
	-${RM} /tmp/$*.f

.F.a:
	-${RM} /tmp/$*.f
	-${CC} -E ${CPPFLAGS} $*.F | sed -e 's/^#line/#/g'  > /tmp/$*.f
	-${FC} -c ${FOPTFLAGS} ${FFLAGS} /tmp/$*.f
	-${AR} cr ${LIBNAME} $*.o
	-${RM} /tmp/$*.f

shared:
