############################################################# # Building 'tdgesv' and sample output on the SGIs ############################################################# einstein% pwd; ls /usr2/people/phy329/linsys/ex1 Makefile tdgesv.f einstein% printenv LIBBLAS -lblas einstein% more Makefile ############################################################ # Note that this 'Makefile' assumes that the following # environment variables are set: # # F77 # F77PP # F77FLAGS # F77CFLAGS # F77LFLAGS # LIBBLAS # # Put the appropriate 'setenv' commands in your '~/.cshrc'. # See 'phy329@einstein:~/.cshrc' for an example. # # IMPORTANT: Note the use of LIBBLAS which should be # set to '-lblas' on the SGI machines. BLAS stands for # Basic Linear Algebra Support 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: $(F77PP) $*.f $(F77_COMPILE) $*.f EXECUTABLES = tdgesv all: $(EXECUTABLES) tdgesv: tdgesv.o $(F77_LOAD) tdgesv.o -llapack $(LIBBLAS) -o tdgesv clean: rm *.o rm $(EXECUTABLES) einstein% make touch tdgesv.f f77 -g -n32 -c tdgesv.f f77 -g -n32 -L/usr/localn32/lib -n32 tdgesv.o \ -llapack -lblas -o tdgesv einstein% tdgesv 5.426364412431639 -0.3257753768173935 -0.4083508069894624