freebsd-ports/math/scalapack/files/SLmake.inc-mpich.diff

73 lines
2.4 KiB
Diff

--- SLmake.inc.example 2007-04-04 13:24:52.000000000 +0900
+++ SLmake.inc.example 2007-10-06 18:47:01.000000000 +0900
@@ -19,26 +19,26 @@
# The complete path to the top level of ScaLAPACK directory, usually
# $(HOME)/SCALAPACK
#
-home = $(HOME)/SCALAPACK
+home = @WRKSRC@
#
# The platform identifier to suffix to the end of library names
#
-PLAT = LINUX
+PLAT = FreeBSD
#
# BLACS setup. All version need the debug level (0 or 1),
# and the directory where the BLACS libraries are
#
BLACSDBGLVL = 0
-BLACSdir = /usr/local/lib
+BLACSdir = @LOCALBASE@/lib
#
# MPI setup; tailor to your system if using MPIBLACS
# Will need to comment out these 6 lines if using PVM
#
USEMPI = -DUsingMpiBlacs
-SMPLIB = /usr/local/mpich-1.2.1/lib/libmpich.a
-BLACSFINIT = $(BLACSdir)/libmpiblacsF77init-p4.a
-BLACSCINIT = $(BLACSdir)/libmpiblacsCinit-p4.a
-BLACSLIB = $(BLACSdir)/libmpiblacs-p4.a
+SMPLIB = -L@LOCALBASE@/mpich2 -lmpich
+BLACSFINIT = $(BLACSdir)/libblacsf77.a #-L$(BLACSdir) -lblacsf77
+BLACSCINIT = $(BLACSdir)/libblacsc.a #-L$(BLACSdir) -lblacsc
+BLACSLIB = $(BLACSdir)/libblacs.a #-L$(BLACSdir) -lblacs
TESTINGdir = $(home)/TESTING
#
@@ -67,11 +67,11 @@
#
# The fortran and C compilers, loaders, and their flags
#
-F77 = mpif77
-CC = mpicc
-NOOPT =
-F77FLAGS = -O3 $(NOOPT)
-CCFLAGS = -O4
+F77 = @MPIF77@
+CC = @MPICC@
+NOOPT = @NOOPT@
+F77FLAGS = @FFLAGS@
+CCFLAGS = @CFLAGS@
SRCFLAG =
F77LOADER = $(F77)
CCLOADER = $(CC)
@@ -81,7 +81,7 @@
# C preprocessor defs for compilation
# (-DNoChange, -DAdd_, -DUpCase, or -Df77IsF2C)
#
-CDEFS = -Df77IsF2C -DNO_IEEE $(USEMPI)
+CDEFS = -DAdd_ -DNO_IEEE $(USEMPI)
#
# The archiver and the flag(s) to use when building archive (library)
# Also the ranlib routine. If your system has no ranlib, set RANLIB = echo
@@ -93,8 +93,8 @@
# The name of the libraries to be created/linked to
#
SCALAPACKLIB = $(home)/libscalapack.a
-BLASLIB = /usr/local/lib/libf77blas.a /usr/local/lib/libatlas.a
-LAPACKLIB = /usr/local/lib/liblapack.a
+BLASLIB = -L@LOCALBASE@/lib @BLAS@
+LAPACKLIB = -L@LOCALBASE@/lib @LAPACK@
#
PBLIBS = $(SCALAPACKLIB) $(FBLACSLIB) $(LAPACKLIB) $(BLASLIB) $(SMPLIB)
PRLIBS = $(SCALAPACKLIB) $(CBLACSLIB) $(SMPLIB)