kusano 7d535a
include ../make.inc
kusano 7d535a
kusano 7d535a
#######################################################################
kusano 7d535a
#  This makefile creates the example programs for the linear equation
kusano 7d535a
#  routines in SuperLU.  The files are grouped as follows:
kusano 7d535a
#
kusano 7d535a
#       SLINEXM -- Single precision real example routines
kusano 7d535a
#       DLINEXM -- Double precision real example routines
kusano 7d535a
#       CLINEXM -- Double precision complex example routines
kusano 7d535a
#       ZLINEXM -- Double precision complex example routines
kusano 7d535a
#
kusano 7d535a
#  Example programs can be generated for all or some of the four different
kusano 7d535a
#  precisions.  Enter make followed by one or more of the data types
kusano 7d535a
#  desired.  Some examples:
kusano 7d535a
#       make single
kusano 7d535a
#       make single double
kusano 7d535a
#  Alternatively, the command
kusano 7d535a
#       make
kusano 7d535a
#  without any arguments creates all four example programs.
kusano 7d535a
#  The executable files are called
kusano 7d535a
#       slinsol		slinsolx
kusano 7d535a
#       dlinsol		dlinsolx
kusano 7d535a
#       clinsol		clinsolx
kusano 7d535a
#       zlinsol		zlinsolx
kusano 7d535a
#
kusano 7d535a
#  To remove the object files after the executable files have been
kusano 7d535a
#  created, enter
kusano 7d535a
#       make clean
kusano 7d535a
#  On some systems, you can force the source files to be recompiled by
kusano 7d535a
#  entering (for example)
kusano 7d535a
#       make single FRC=FRC
kusano 7d535a
#
kusano 7d535a
#######################################################################
kusano 7d535a
kusano 7d535a
HEADER   = ../SRC
kusano 7d535a
kusano 7d535a
SLINEXM		= slinsol.o
kusano 7d535a
SLINEXM1	= slinsol1.o
kusano 7d535a
SLINXEXM 	= slinsolx.o
kusano 7d535a
SLINXEXM1 	= slinsolx1.o
kusano 7d535a
SLINXEXM2	= slinsolx2.o
kusano 7d535a
SITSOL	     	= sitersol.o sfgmr.o
kusano 7d535a
kusano 7d535a
DLINEXM		= dlinsol.o
kusano 7d535a
DLINEXM1	= dlinsol1.o
kusano 7d535a
DLINXEXM 	= dlinsolx.o
kusano 7d535a
DLINXEXM1 	= dlinsolx1.o
kusano 7d535a
DLINXEXM2 	= dlinsolx2.o
kusano 7d535a
SUPERLUEXM 	= superlu.o sp_ienv.o
kusano 7d535a
DITSOL	     	= ditersol.o dfgmr.o
kusano 7d535a
kusano 7d535a
CLINEXM 	= clinsol.o
kusano 7d535a
CLINEXM1 	= clinsol1.o
kusano 7d535a
CLINXEXM 	= clinsolx.o
kusano 7d535a
CLINXEXM1 	= clinsolx1.o
kusano 7d535a
CLINXEXM2 	= clinsolx2.o
kusano 7d535a
CITSOL	     	= citersol.o cfgmr.o
kusano 7d535a
kusano 7d535a
ZLINEXM 	= zlinsol.o
kusano 7d535a
ZLINEXM1 	= zlinsol1.o
kusano 7d535a
ZLINXEXM 	= zlinsolx.o
kusano 7d535a
ZLINXEXM1 	= zlinsolx1.o
kusano 7d535a
ZLINXEXM2 	= zlinsolx2.o
kusano 7d535a
ZITSOL	     	= zitersol.o zfgmr.o
kusano 7d535a
kusano 7d535a
kusano 7d535a
all:    single double complex complex16
kusano 7d535a
kusano 7d535a
single:    slinsol slinsol1 slinsolx slinsolx1 slinsolx2 sitersol
kusano 7d535a
double:    dlinsol dlinsol1 dlinsolx dlinsolx1 dlinsolx2 superlu ditersol
kusano 7d535a
complex:   clinsol clinsol1 clinsolx clinsolx1 clinsolx2 citersol
kusano 7d535a
complex16: zlinsol zlinsol1 zlinsolx zlinsolx1 zlinsolx2 zitersol
kusano 7d535a
kusano 7d535a
slinsol: $(SLINEXM) $(SUPERLULIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(SLINEXM) $(LIBS) -lm -o $@
kusano 7d535a
kusano 7d535a
slinsol1: $(SLINEXM1) $(SUPERLULIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(SLINEXM1) $(LIBS) -lm -o $@
kusano 7d535a
kusano 7d535a
slinsolx: $(SLINXEXM) $(SUPERLULIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(SLINXEXM) $(LIBS) -lm -o $@
kusano 7d535a
kusano 7d535a
slinsolx1: $(SLINXEXM1) $(SUPERLULIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(SLINXEXM1) $(LIBS) -lm -o $@
kusano 7d535a
kusano 7d535a
slinsolx2: $(SLINXEXM2) $(SUPERLULIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(SLINXEXM2) $(LIBS) -lm -o $@
kusano 7d535a
kusano 7d535a
sitersol: $(SITSOL) $(SUPERLULIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(SITSOL) $(LIBS) -lm -o $@
kusano 7d535a
kusano 7d535a
dlinsol: $(DLINEXM) $(SUPERLULIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(DLINEXM) $(LIBS) -lm -o $@
kusano 7d535a
kusano 7d535a
dlinsol1: $(DLINEXM1) $(SUPERLULIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(DLINEXM1) $(LIBS) -lm -o $@
kusano 7d535a
kusano 7d535a
dlinsolx: $(DLINXEXM) $(SUPERLULIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(DLINXEXM) $(LIBS) -lm -o $@
kusano 7d535a
kusano 7d535a
dlinsolx1: $(DLINXEXM1) $(SUPERLULIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(DLINXEXM1) $(LIBS) -lm -o $@
kusano 7d535a
kusano 7d535a
dlinsolx2: $(DLINXEXM2) $(SUPERLULIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(DLINXEXM2) $(LIBS) -lm -o $@
kusano 7d535a
kusano 7d535a
superlu: $(SUPERLUEXM) $(SUPERLULIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(SUPERLUEXM) $(LIBS) -lm -o $@
kusano 7d535a
kusano 7d535a
ditersol: $(DITSOL) $(SUPERLULIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(DITSOL) $(LIBS) -lm -o $@
kusano 7d535a
kusano 7d535a
clinsol: $(CLINEXM) $(SUPERLULIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(CLINEXM) $(LIBS) -lm -o $@
kusano 7d535a
kusano 7d535a
clinsol1: $(CLINEXM1) $(SUPERLULIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(CLINEXM1) $(LIBS) -lm -o $@
kusano 7d535a
kusano 7d535a
clinsolx: $(CLINXEXM) $(SUPERLULIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(CLINXEXM) $(LIBS) -lm -o $@
kusano 7d535a
kusano 7d535a
clinsolx1: $(CLINXEXM1) $(SUPERLULIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(CLINXEXM1) $(LIBS) -lm -o $@
kusano 7d535a
kusano 7d535a
clinsolx2: $(CLINXEXM2) $(SUPERLULIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(CLINXEXM2) $(LIBS) -lm -o $@
kusano 7d535a
kusano 7d535a
citersol: $(CITSOL) $(SUPERLULIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(CITSOL) $(LIBS) -lm -o $@
kusano 7d535a
kusano 7d535a
zlinsol: $(ZLINEXM) $(SUPERLULIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(ZLINEXM) $(LIBS) -lm -o $@
kusano 7d535a
kusano 7d535a
zlinsol1: $(ZLINEXM1) $(SUPERLULIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(ZLINEXM1) $(LIBS) -lm -o $@
kusano 7d535a
kusano 7d535a
zlinsolx: $(ZLINXEXM) $(SUPERLULIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(ZLINXEXM) $(LIBS) -lm -o $@
kusano 7d535a
kusano 7d535a
zlinsolx1: $(ZLINXEXM1) $(SUPERLULIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(ZLINXEXM1) $(LIBS) -lm -o $@
kusano 7d535a
kusano 7d535a
zlinsolx2: $(ZLINXEXM2) $(SUPERLULIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(ZLINXEXM2) $(LIBS) -lm -o $@
kusano 7d535a
kusano 7d535a
zitersol: $(ZITSOL) $(SUPERLULIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(ZITSOL) $(LIBS) -lm -o $@
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 *linsol *linsol1 *linsolx *linsolx1 *linsolx2 \
kusano 7d535a
	    superlu *itersol
kusano 7d535a
kusano 7d535a
kusano 7d535a