############################################################ # Building 'tdgesv' and sample output on lnx1 ############################################################# lnx1 1> pwd; ls /home/phys410/linsys/ex1 Makefile tdgesv.f lnx1 2> printenv LIBBLAS -lblas lnx1 3> cat Makefile ############################################################ # IMPORTANT: Note the use of LIBBLAS which should be # set to '-lblas' on the SGI and Linux machines. # BLAS is a acronym for Basic Linear Algebra Subprograms # and is a Fortran- and C-callable library which implements # basic manipulations useful in numerical linear algebra. ############################################################ .IGNORE: F77_COMPILE = $(F77) $(F77FLAGS) $(F77CFLAGS) F77_LOAD = $(F77) $(F77FLAGS) $(F77LFLAGS) .f.o: $(F77_COMPILE) $*.f EXECUTABLES = tdgesv all: $(EXECUTABLES) tdgesv: tdgesv.o $(F77_LOAD) tdgesv.o -llapack $(LIBBLAS) -o tdgesv clean: rm *.o rm $(EXECUTABLES) lnx1 4> make pgf77 -g -c tdgesv.f pgf77 -g -L/usr/local/PGI/lib tdgesv.o -llapack -lblas -o tdgesv lnx1 5> tdgesv 5.426364412431639 -0.3257753768173936 -0.4083508069894625