# makefile for LAPACK usage examples SHELL=/bin/sh .SUFFIXES: .o .f90 .f # C compiler CC = pgcc # LAPACK lib LIBC = -llapack -lblas -pgf77libs OPT = -O3 default: sgetrf_example_c sgetrf_example_c: sgetrf_example_c.o $(CC) $(OPT) -o $@ sgetrf_example_c.o $(LIBC) clean: rm -f *.o sgetrf_exmaple_c .c.o: $(CC) $(OPT) -c $*.c