Makefiles). To be re-added later (possibly) in a cleaner form. Added DOC++ reference comments to Struct '.h' files. Changed names of Struct include and lib files. Removed 'stencil' argument from interface for StructVectorCreate.
107 lines
2.2 KiB
Makefile
107 lines
2.2 KiB
Makefile
#BHEADER***********************************************************************
|
|
# (c) 1999 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 = @srcdir@
|
|
VPATH = @srcdir@
|
|
|
|
|
|
CC = @CC@
|
|
|
|
C_COMPILE_FLAGS=@CFLAGS@
|
|
CXX_COMPILE_FLAGS=@CXXFLAGS@
|
|
CINCLUDES=@INCLUDES@ @MPIINCLUDE@
|
|
|
|
CFLAGS =\
|
|
${C_COMPILE_FLAGS}\
|
|
-I..\
|
|
-I../utilities\
|
|
-I../struct_matrix_vector\
|
|
-I../seq_matrix_vector\
|
|
-I../parcsr_matrix_vector\
|
|
-I../parcsr_linear_solvers\
|
|
${CINCLUDES} ${CDEFS}
|
|
|
|
RANLIB= @RANLIB@
|
|
|
|
MPILIBFLAGS = @MPILIBDIRS@ @MPILIBS@ @MPIFLAGS@
|
|
LIBFLAGS = @LIBDIRS@ @LIBS@
|
|
LDLIBFLAGS = @LDLIBDIRS@ @LDLIBS@
|
|
|
|
LFLAGS =\
|
|
-L.\
|
|
-L../utilities\
|
|
-L../struct_matrix_vector\
|
|
-L../seq_matrix_vector\
|
|
-L../parcsr_matrix_vector\
|
|
-lHYPRE_IJ_mv\
|
|
-lHYPRE_parcsr_mv\
|
|
-lHYPRE_seq_mv\
|
|
-lHYPRE_mv\
|
|
-lHYPRE_utilities\
|
|
${MPILIBFLAGS} ${LIBFLAGS} ${LDLIBFLAGS}
|
|
|
|
HEADERS =\
|
|
aux_parcsr_matrix.h\
|
|
HYPRE_IJ_mv.h \
|
|
IJ_matrix_vector.h \
|
|
IJ_matrix.h
|
|
|
|
FILES =\
|
|
aux_parcsr_matrix.c\
|
|
hypre_IJMatrix_parcsr.c\
|
|
hypre_IJVector_parcsr.c\
|
|
HYPRE_IJMatrix.c\
|
|
HYPRE_IJVector.c\
|
|
F90_HYPRE_IJMatrix.c\
|
|
F90_HYPRE_IJVector.c
|
|
|
|
OBJS = ${FILES:.c=.o}
|
|
|
|
##################################################################
|
|
# Targets
|
|
##################################################################
|
|
|
|
all: libHYPRE_IJ_mv.a
|
|
|
|
install: all
|
|
@cp -f HYPRE_*.h IJ_matrix_vector.h $$HYPRE_INSTALL_DIR/include/.
|
|
@cp -f libHYPRE_*.a $$HYPRE_INSTALL_DIR/lib/.
|
|
|
|
clean:
|
|
@rm -f *.o
|
|
|
|
veryclean: clean
|
|
@rm -f libHYPRE_*.a
|
|
@rm -f driver
|
|
|
|
##################################################################
|
|
# Rules
|
|
##################################################################
|
|
|
|
libHYPRE_IJ_mv.a: ${OBJS}
|
|
@echo "Building $@ ... "
|
|
ar -rcu $@ ${OBJS}
|
|
${RANLIB} $@
|
|
|
|
driver: driver.o libHYPRE_IJ_mv.a
|
|
@echo "Linking" $@ "... "
|
|
${CC} -o driver driver.o ${LFLAGS}
|
|
|
|
${OBJS}: ${HEADERS}
|
|
|
|
##################################################################
|
|
# Generic rules
|
|
##################################################################
|
|
|
|
.c.o:
|
|
${CC} -o $@ -c ${CFLAGS} $<
|