# 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.
#

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/coll
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 = barrier.c bcast.c gather.c gatherv.c scatter.c scatterv.c \
               allgather.c allgatherv.c alltoall.c alltoallv.c reduce.c \
               allreduce.c red_scat.c scan.c global_ops.c \
	       opcreate.c opfree.c oputil.c intra_fns.c inter_fns.c \
	       intra_scan.c

MPI_TSOURCES = global_ops.c 

MPI_WSOURCES = barrierf.c bcastf.c gatherf.c gathervf.c scatterf.c scattervf.c\
               allgatherf.c allgathervf.c alltoallf.c alltoallvf.c reducef.c \
               allreducef.c red_scatf.c scanf.c global_opsf.c \
	       opcreatef.c opfreef.c

MPI_COBJECTS = barrier.o bcast.o gather.o gatherv.o scatter.o scatterv.o \
               allgather.o allgatherv.o alltoall.o alltoallv.o reduce.o \
               allreduce.o red_scat.o scan.o global_ops.o \
	       opcreate.o opfree.o oputil.o intra_fns.o inter_fns.o \
	       intra_scan.o

MPI_WOBJECTS = barrierf.o bcastf.o gatherf.o gathervf.o scatterf.o scattervf.o\
               allgatherf.o allgathervf.o alltoallf.o alltoallvf.o reducef.o \
               allreducef.o red_scatf.o scanf.o \
	       opcreatef.o opfreef.o

default: ${libbuild_dir}/libmpich.a

MPI_SOURCES = ${MPI_CSOURCES} ${MPI_WSOURCES}
MPI_OBJECTS = ${MPI_COBJECTS} ${MPI_WOBJECTS}

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}
	${AR} ${libbuild_dir}/libfmpich.a $?	

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} $@

${libbuild_dir}/libfmpich.a: ${MPI_WOBJECTS} 
	${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

