#####################################################################
#                                                                   #
# PARKBENCH Version 2.0                                             #
#                                                                   #
# November 10, 1995                                                 #
#                                                                   #
# University of Tennessee, Knoxville                                #
# University of Southampton, United Kingdom                         #
#                                                                   #
#####################################################################
make.def =  ../../../conf/make.def
include $(make.def)

SHELL	=	/bin/sh

default:	all

program=  comms2_mpi
executable = $(XDIR)/$(program)
comms2:	$(program)

###  List of all object files  ###
lobj = \
COMMS2.o \
ESTCOM.o

obj:		$(lobj)

.f.o:
	- ${F77_MPI} -c $(FMPI_INC) ${FFLAGS} $<

### List of all include files in other (!!!) directories  ###
$(lobj): 	$(linclude) comms2.inc

###  Major targets for build  ###
all:	$(program) 

###  Executables  ###
$(program):	$(executable)
$(executable):	${lobj}
	- $(F77MPI_LOADER) $(F77LOADFLAGS) -o $@ ${lobj} \
	$(ParkBench_mpi_lib) $(MPI_LIBS)

###  Cleanup  ###
clean:
	- rm -f *.o *~ $(linclude) core

clobber: clean
	- rm -f $(executable)
