# Makefile.template # - template to assist with the compilation of MPI programs # This template only works in ritchie till now (2000.12). In case of the directory # changed, ensure the exact MPI home directory before using it. # # Written by Dave Alpert, June 1997 # Modified from the file generated automatically by configure from Makefile.in ALL: default # Begin MPICH configured options # PATH = /local/bin:/usr/local/bin:/usr/local/mpich-1.2.0/bin:/usr/bin:/usr/ucb SHELL = /bin/sh # ARCH = must be defined as an environment var {ie. solaris, sun4 . . .} COMM = ch_p4 MPIR_HOME = /usr/local/mpich-1.2.0/bin CC = /usr/local/mpich-1.2.0/bin/mpicc CLINKER = $(CC) F77 = /usr/local/mpich-1.2.0/bin/mpif77 FLINKER = $(F77) CCC = /usr/local/mpich-1.2.0/bin/mpiCC CCLINKER = $(CCC) AR = ar cr RANLIB = ranlib PROFILING = $(PMPILIB) OPTFLAGS = MPE_GRAPH = -DMPE_GRAPHICS # End MPICH configured options # CFLAGS = $(OPTFLAGS) CFLAGSMPE = $(CFLAGS) -I$(MPE_DIR) $(MPE_GRAPH) CCFLAGS = $(CFLAGS) #FFLAGS = '-qdpc=e' FFLAGS = $(OPTFLAGS) ##### User configurable options ##### EXEC = .$(ARCH) USRLIBS = -L -l SOURCES = ### End User configurable options ### OBJS = $(SOURCES:%.c=%_$(ARCH).o) default: $(EXEC) all: default %_$(ARCH).o: %.c $(CC) -c $(CFLAGS) -o $@ $(SOURCES); .$(ARCH): $(OBJS) $(CLINKER) $(OPTFLAGS) $(USRLIBS) -o $@ $(OBJS)