# makefile for LAPACK usage examples SHELL=/bin/sh .SUFFIXES: .o .f90 .f # f90 compiler FC = pgf95 # LAPACK lib LIBF = -llapack -lblas OPT = -O3 default: sgetrf_example_f sgetrf_example_c sgetrf_example_f: sgetrf_example_f.o $(FC) $(OPT) -o $@ sgetrf_example_f.o $(LIBF) clean: rm -f *.o sgetrf_example_f .f90.o: $(FC) $(OPT) -c $*.f90