--- superlu-3.0+20070106.orig/make.inc
+++ superlu-3.0+20070106/make.inc
@@ -14,12 +14,16 @@
 #
 ############################################################################
 #
+#  The machine (platform) identifier to append to the library names
+#
+PLAT = 
+
 #
 #  The name of the libraries to be created/linked to
 #
-TMGLIB       = libtmglib.a
-SUPERLULIB   = libsuperlu_3.0.a
-BLASLIB      = ../libblas.a
+TMGLIB       = libtmglib$(PLAT).a
+SUPERLULIB   = libsuperlu$(PLAT).a
+BLASLIB      = -lblas
 
 #
 #  The archiver and the flag(s) to use when building archive (library)
@@ -29,12 +33,12 @@
 ARCHFLAGS    = cr
 RANLIB       = ranlib
 
-CC           = cc
-CFLAGS       = -xO3 -xcg92
-FORTRAN	     = f77
+CC           = gcc
+CFLAGS       = -O2
+FORTRAN	     = g77
 FFLAGS       = -O
-LOADER       = cc
-LOADOPTS     = -xO3
+LOADER       = gcc
+LOADOPTS     = 
 
 #
 #  C preprocessor defs for compilation (-DNoChange, -DAdd_, or -DUpCase)
@@ -43,4 +47,4 @@
 #
 # The directory in which Matlab is installed
 #
-MATLAB	     = /usr/sww/pkg/matlab
+MATLAB	     = /opt/matlab
