# makefile for mpi_layer2 project 

ALL: default

##### User configurable options #####
SHELL       = /bin/sh
ARCH        = LINUX
MPIR_HOME   = /usr/local/mpich-1.2.1
CC          = /usr/local/mpich-1.2.1/bin/mpicc
CLINKER     = $(CC)
AR          = ar crl
RANLIB      = ranlib
LOG_LIB     = -mpilog -lm
PROF_LIB    = -lmpe -lm
OPTFLAGS    = 
MPE_DIR     = /usr/local/mpich-1.2.1/mpe
MAKE        = make --no-print-directory
#
srcdir=/usr/local/mpich-1.2.1/examples/myprog
VPATH=.:$(srcdir)
### End User configurable options ###

CFLAGS	  = $(OPTFLAGS) 
CFLAGSMPE = $(CFLAGS) -I$(MPE_DIR)/include 
CCFLAGS	  = $(CFLAGS)
#FFLAGS	  = '-qdpc=e' 
FFLAGS	  = $(OPTFLAGS)
EXECS	  = mpi_layer2
ALL_EXECS = ${EXECS} mpi_layer2 

all: mpi_layer2

mpi_layer2: mpi_layer2.o
	$(CLINKER) $(OPTFLAGS) -o mpi_layer2 mpi_layer2.o -lm

clean:
	/bin/rm -f *.o *~ PI* $(ALL_EXECS) upshot rdb.* startup.* core

.c.o:
	$(CC) $(CFLAGS) -c $<
	
### End Makefile ###