kusano 7d535a
include ../make.inc
kusano 7d535a
kusano 7d535a
#######################################################################
kusano 7d535a
#  This makefile creates the Fortran example interface to use the
kusano 7d535a
#  C routines in SuperLU.
kusano 7d535a
#######################################################################
kusano 7d535a
kusano 7d535a
HEADER   = ../SRC
kusano 7d535a
LIBS	= $(SUPERLULIB) $(BLASLIB) -lm
kusano 7d535a
kusano 7d535a
F77EXM	= f77_main.o hbcode1.o c_fortran_dgssv.o
kusano 7d535a
kusano 7d535a
all:	f77exm
kusano 7d535a
kusano 7d535a
f77exm: $(F77EXM) $(SUPERLULIB)
kusano 7d535a
	$(FORTRAN) $(LOADOPTS) $(F77EXM) $(LIBS) -o $@
kusano 7d535a
kusano 7d535a
c_fortran_zgssv.o: c_fortran_zgssv.c
kusano 7d535a
	$(CC) $(CFLAGS) $(CDEFS) -I$(HEADER) -c $< $(VERBOSE)
kusano 7d535a
kusano 7d535a
.c.o:
kusano 7d535a
	$(CC) $(CFLAGS) $(CDEFS) -I$(HEADER) -c $< $(VERBOSE)
kusano 7d535a
kusano 7d535a
.f.o:
kusano 7d535a
	$(FORTRAN) $(FFLAGS) -c $< $(VERBOSE)
kusano 7d535a
kusano 7d535a
clean:	
kusano 7d535a
	rm -f *.o f77exm