FORTRAN = f77 $(VERBOSE)
OPTS  =  -O
LOADER = f77 $(VERBOSE)
LOADOPTS = -O

#LAPACKLIB = /usr/local/lib/liblapack.a
#BLASLIB = -xlic_lib=sunperf
LAPACKLIB = -llapack
BLASLIB = -lblas

ALINTST = \
   testdgesv.o testaux.o

all: testdgesv testdgesv.out

testdgesv : $(ALINTST)
	$(LOADER) $(LOADOPTS)  $(ALINTST) \
        $(LAPACKLIB) $(BLASLIB)  -o $@

testdgesv.out: testdgesv
	@echo Testing DGESV
	./testdgesv > $@ 2>&1
	cat $@

clean:
	rm -f testdgesv testdgesv.out *.o *.core core
 
.f.o: 
	$(FORTRAN) -c $(OPTS) $*.f
