############################################################# # Building 'tdgesv' and sample output on the SGIs ############################################################# einstein% pwd; ls Makefile tdgesv1.f einstein% printenv LIBBLAS -lblas einstein% more Makefile ############################################################ # Note that this 'Makefile' assumes that the following # environment variables are set: # # F77 # F77FLAGS # F77CFLAGS # F77LFLAGS # LIBBLAS # # Put the appropriate 'setenv' commands in your '~/.cshrc'. # See 'phy329@einstein:~/.cshrc' for an example. ############################################################ .IGNORE: F77_COMPILE = $(F77) $(F77FLAGS) $(F77CFLAGS) F77_LOAD = $(F77) $(F77FLAGS) $(F77LFLAGS) .f.o: $(F77_COMPILE) $*.f EXECUTABLES = tdgesv1 all: $(EXECUTABLES) tdgesv1: tdgesv1.o $(F77_LOAD) tdgesv1.o -lp329f -llapack $(LIBBLAS) \ -o tdgesv1 clean: rm *.o rm $(EXECUTABLES) einstein% make f77 -g -c tdgesv1.f f77 -g -L/usr/local/lib tdgesv1.o -lp329f -llapack -lblas \ -o tdgesv1 einstein% tdgesv1 5.426364412431639 -0.3257753768173935 -0.4083508069894624