functions in HYPRE_csr{gmres,pcg} do nothing but call the generic ones;
all but Create, Destroy, and diagonal scaling are now obsolete.
128 lines
2.2 KiB
Makefile
128 lines
2.2 KiB
Makefile
# Generated automatically from Makefile.in by configure.
|
|
#BHEADER***********************************************************************
|
|
# (c) 1998 The Regents of the University of California
|
|
#
|
|
# See the file COPYRIGHT_and_DISCLAIMER for a complete copyright
|
|
# notice, contact person, and disclaimer.
|
|
#
|
|
# $Revision$
|
|
#EHEADER***********************************************************************
|
|
|
|
.SUFFIXES:
|
|
.SUFFIXES: .c .f .o
|
|
|
|
srcdir = .
|
|
|
|
CC = mpicc
|
|
|
|
C_COMPILE_FLAGS= -g
|
|
CXX_COMPILE_FLAGS=-DNOFEI -g
|
|
F77_COMPILE_FLAGS= -g -silent
|
|
CINCLUDES=
|
|
CDEFS =
|
|
|
|
CFLAGS =\
|
|
${C_COMPILE_FLAGS}\
|
|
-I$(srcdir)\
|
|
-I$(srcdir)/../..\
|
|
-I$(srcdir)/../../utilities\
|
|
-I$(srcdir)/../../krylov\
|
|
-I$(srcdir)/../../seq_matrix_vector\
|
|
${CINCLUDES}\
|
|
${CDEFS}
|
|
|
|
RANLIB= ranlib
|
|
|
|
MPILIBFLAGS =
|
|
LIBFLAGS = -lm
|
|
LDLIBFLAGS =
|
|
|
|
LFLAGS =\
|
|
-L.\
|
|
-L../../seq_matrix_vector\
|
|
-L../../utilities\
|
|
-lHYPRE_amg_ls\
|
|
-lHYPRE_seq_mv\
|
|
-lHYPRE_utilities\
|
|
-L../../krylov -lkrylov\
|
|
${MPILIBFLAGS} ${LIBFLAGS} ${LDLIBFLAGS}
|
|
|
|
|
|
HEADERS =\
|
|
headers.h\
|
|
amg.h\
|
|
pcg.h\
|
|
pamg.h\
|
|
HYPRE_ls.h
|
|
|
|
FILES =\
|
|
driver.c\
|
|
amg.c\
|
|
amgstats.c\
|
|
amg_setup.c\
|
|
amg_solve.c \
|
|
cg_fun.c\
|
|
coarsen.c\
|
|
coarsenCR.c\
|
|
cycle.c\
|
|
difconv.c\
|
|
indepset.c\
|
|
interp.c\
|
|
interpCR.c\
|
|
interpRBM.c\
|
|
laplace.c\
|
|
laplace_9pt.c\
|
|
laplace_27pt.c\
|
|
random.c\
|
|
rap.c \
|
|
relax.c\
|
|
schwarz.c\
|
|
scaled_matnorm.c\
|
|
transpose.c\
|
|
HYPRE_amg.c\
|
|
HYPRE_csr_pcg.c\
|
|
HYPRE_csr_gmres.c
|
|
|
|
OBJS = ${FILES:.c=.o}
|
|
|
|
|
|
|
|
|
|
##################################################################
|
|
# Targets
|
|
##################################################################
|
|
|
|
all: libHYPRE_amg_ls.a driver
|
|
|
|
install: all
|
|
|
|
clean:
|
|
@rm -f *.o
|
|
|
|
veryclean: clean
|
|
@rm -f driver
|
|
@rm -f libHYPRE_amg_ls.a
|
|
|
|
##################################################################
|
|
# Rules
|
|
##################################################################
|
|
|
|
driver: driver.o libHYPRE_amg_ls.a
|
|
@echo "Linking" $@ "... "
|
|
${CC} -o driver driver.o ${LFLAGS}
|
|
|
|
libHYPRE_amg_ls.a: ${OBJS}
|
|
@echo "Building $@ ... "
|
|
ar -rcu $@ ${OBJS}
|
|
${RANLIB} $@
|
|
|
|
${OBJS}: ${HEADERS}
|
|
|
|
##################################################################
|
|
# Generic rules
|
|
##################################################################
|
|
|
|
.c.o:
|
|
${CC} -o $@ -c ${CFLAGS} $<
|
|
|