Edit 'make.inc' to look like this ( The first 20 lines ) :
Code:
LIB=../lib/libspherepack.a
UNAMES := $(shell uname -s)
ifeq ($(UNAMES),Linux)
PGI := $(shell gfortran 2>&1)
ifeq ($(PGI),pgf90-Warning-No files to process)
F90 := pgf90 -module ../lib -I../lib
CPP := pgf90 -E
else
F90 := gfortran -DG95 -g -L=../lib -I../lib
CPP := gfortran -E -DG95
endif
... Result : spherepack3.2/lib/libspherepack.a
.