# Generated automatically from Makefile.in by configure.
#
#  (C) 1993 by Argonne National Laboratory and Mississipi State University.
#      All rights reserved.  See COPYRIGHT in top-level directory.
#

ALL: default

CC          = cc
F77         = g77
AR          = ar crl
RANLIB      = ranlib
OPTFLAGS    = -O2
OPTFLAGSC   = 
prefix      = /usr/rels/mpich-1.2..4pre2
top_srcdir  = /usr/rels/mpich-1.2..4pre2
srcdir      = /usr/rels/mpich-1.2..4pre2/src/util
libbuild_dir      = /usr/rels/mpich-1.2..4pre2/lib

DEFS        = -DHAVE_CONFIG_H ${MPIPROFILE} -I. -I${srcdir} -I/usr/rels/mpich-1.2..4pre2/include -I/usr/rels/mpich-1.2..4pre2/include -I/usr/rels/mpich-1.2..4pre2/mpid/ch_gm
CFLAGS      =  -I/GM/binary/include -I/GM/include -DGM_DEV -DFORTRANDOUBLEUNDERSCORE -DHAVE_MPICHCONF_H 

SHELL       = /bin/sh

VPATH=.:$(srcdir)

.SUFFIXES:
.SUFFIXES: .o .c .f

LIBS = ${libbuild_dir}/libmpich.a

MPI_CSOURCES = util_hbt.c mpirutil.c ptrcvt.c bsendutil2.c
MPI_SOURCES =  ${MPI_CSOURCES}
MPI_COBJECTS = util_hbt.o mpirutil.o ptrcvt.o bsendutil2.o
MPI_OBJECTS =  ${MPI_COBJECTS}
MPI_WOBJECTS = 

default: ${libbuild_dir}/libmpich.a

bsendutil.o: bsendutil.c bsendutil2.c
profile: ${libbuild_dir}/libpmpich.a

# default_all is the same as default, but without the RANLIB.  This
# can speed up the build (ranlibs can take a LONG time).  profile_all 
# is the same, but for the profile library
default_all: ${MPI_OBJECTS}
	${AR} ${libbuild_dir}/libmpich.a $?
profile_all: ${MPI_OBJECTS}
	${AR} ${libbuild_dir}/libpmpich.a $?
wrapperlib: ${MPI_WOBJECTS}
	if [ "${MPI_WOBJECTS}" != "" ] ; then \
	${AR} ${libbuild_dir}/libfmpich.a $?	; fi

source_names:
	@echo ${MPI_CSOURCES}

.c.o:
	${CC} ${DEFS} ${INCLUDES} ${CFLAGS} ${OPTFLAGSC} ${OPTFLAGS} -c $<

${libbuild_dir}/libmpich.a: ${MPI_OBJECTS} 
	${AR} $@ $?
	${RANLIB} $@

${libbuild_dir}/libpmpich.a: ${MPI_OBJECTS} 
	${AR} $@ $?
	${RANLIB} $@

# We need to clean the srcdir of any .o files because they can confuse the
# VPATH build process
clean:
	/bin/rm -f *.o *~ ${srcdir}/*.o
