# Generated automatically from Makefile.in by configure.
ALL: default
##### User configurable options #####

SHELL       = /bin/sh
ARCH        = solaris
COMM        = ch_p4
MPIR_HOME   = /usr/local/mpich 
CC          = /usr/local/mpich/lib/solaris/ch_p4/mpicc
CLINKER     = $(CC)
F77          = /usr/local/mpich/lib/solaris/ch_p4/mpif77
FLINKER     = $(F77)
CCC          = /usr/local/mpich/lib/solaris/ch_p4/mpiCC
CCLINKER    = $(CCC)
AR          = ar cr
RANLIB      = ranlib
PMPILIB     = -lpmpich
OPTFLAGS    =  -fast -O -xarch=v8plusa -xsafe=mem -xchip=ultra -fns 
#OPTFLAGS    =  -fast -O -xarch=v8plusa -xsafe=mem -xchip=ultra 
MPE_LIBS    = -L/usr/openwin/lib -lmpe -lX11 -lm
MPE_DIR     = /usr/local/mpi1.1/mpich/mpe
#

### End User configurable options ###

CFLAGS	  = $(OPTFLAGS) 
CFLAGSMPE = $(CFLAGS) -I$(MPE_DIR)
CCFLAGS	  = $(CFLAGS)
#FFLAGS	  = '-qdpc=e' 
FFLAGS	  = $(OPTFLAGS) -silent
EXECS	  =  run 

default: $(EXECS)

all     : run


OBJECTS = sp_main.o sp_input.o sp_row.o sp_scat.o \
	  sp_sermv.o sp_outg.o 

#HEADER = ../include/define.h ../include/sp.h ../include/proto.h

run: $(OBJECTS) $(MPIR_HOME)/include/mpif.h
	$(FLINKER) $(FFLAGS) -o run $(OBJECTS) -xlic_lib=sunperf
#	$(FLINKER) $(OPTFLAGS) -o run $(OBJECTS) -xlic_lib=sunperf

.f.o:
	$(F77) $(FFLAGS) -c $*.f

clean : 
	$(RM) *.o core run 
