#/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
# *                                                                 *
# * Copyright (C) 1998 Timothy E. Dowling                           *
# *                                                                 *
# * This program is free software; you can redistribute it and/or   *
# * modify it under the terms of the GNU General Public License     *
# * as published by the Free Software Foundation; either version 2  *
# * of the License, or (at your option) any later version.          *
# * A copy of this License is in the file:                          *
# *   $EPIC_PATH/License.txt                                        *
# *                                                                 *
# * This program is distributed in the hope that it will be useful, *
# * but WITHOUT ANY WARRANTY; without even the implied warranty of  *
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.            *
# *                                                                 *
# * You should have received a copy of the GNU General Public       *
# * License along with this program; if not, write to the Free      *
# * Software Foundation, Inc., 59 Temple Place - Suite 330,         *
# * Boston, MA  02111-1307, USA.                                    *
# *                                                                 *
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

# Supported MPI implementations: 
#   LAM
#   mpich


all:
	@if [ $(MPI_TYPE) = LAM ] ; then \
	  echo "Making mpg..." ; \
	  make -f Makefile.lam ; \
	else \
	  mpireconfig Makefile.mpich ; \
	  echo "Making mpg..." ; \
	  make -f Makefile.mpich ; \
	fi 

install:
	@if [ $(MPI_TYPE) = LAM ] ; then \
	  echo "Installing mpg... ********************* LAM TYPE **********************" ; \
	  make install -f Makefile.lam ; \
	else \
	  mpireconfig Makefile.mpich ; \
	  echo "Installing mpg..." ; \
	  make install -f Makefile.mpich ; \
	fi 

clean:
	@rm -f core *o *BAK *bak *~ *% *.log

clear:
	@rm -f core *o *BAK *bak *~ *% *.log *.a
	
depend: 
	@if [ $(MPI_TYPE) = LAM ] ; then \
	  make depend -f Makefile.lam ; \
	else \
	  mpireconfig Makefile.mpich ; \
	  make depend -f Makefile.mpich ; \
	fi
