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.
104 lines
2.1 KiB
Makefile
104 lines
2.1 KiB
Makefile
|
|
.SUFFIXES:
|
|
.SUFFIXES: .c .f .o
|
|
|
|
CC = @CC@
|
|
|
|
C_COMPILE_FLAGS=@CFLAGS@
|
|
CINCLUDES=@INCLUDES@ @MPIINCLUDE@
|
|
CDEFS =
|
|
|
|
CFLAGS =\
|
|
${C_COMPILE_FLAGS}\
|
|
-I..\
|
|
-I../utilities\
|
|
-I../IJ_matrix_vector\
|
|
-I../seq_matrix_vector\
|
|
-I../parcsr_matrix_vector\
|
|
-I../parcsr_linear_solvers\
|
|
-I../CI_struct_matrix_vector\
|
|
${CINCLUDES} ${CDEFS}
|
|
|
|
RANLIB= @RANLIB@
|
|
|
|
HEADERS =\
|
|
headers.h\
|
|
structIJ_matrix_vector.h\
|
|
HYPRE_structIJ_mv.h
|
|
|
|
FILES =\
|
|
structIJ_matrix.c\
|
|
structIJ_vector.c\
|
|
HYPRE_structIJ_matrix.c\
|
|
HYPRE_structIJ_vector.c
|
|
|
|
OBJS = ${FILES:.c=.o}
|
|
|
|
##################################################################
|
|
# Targets
|
|
##################################################################
|
|
|
|
all: libHYPRE_structIJ_mv.a
|
|
|
|
install: all
|
|
|
|
clean:
|
|
@rm -f *.o
|
|
|
|
veryclean: clean
|
|
@rm -f libHYPRE_*.a
|
|
|
|
##################################################################
|
|
# Rules
|
|
##################################################################
|
|
|
|
libHYPRE_structIJ_mv.a: ${OBJS}
|
|
@echo "Building $@ ... "
|
|
ar -rcu $@ ${OBJS}
|
|
${RANLIB} $@
|
|
|
|
${OBJS}: ${HEADERS}
|
|
|
|
##################################################################
|
|
# Rules for test driver
|
|
##################################################################
|
|
|
|
MPILIBFLAGS = @MPILIBDIRS@ @MPILIBS@ @MPIFLAGS@
|
|
LIBFLAGS = @LIBDIRS@ @LIBS@
|
|
LDLIBFLAGS = @LDLIBDIRS@ @LDLIBS@
|
|
BLASLIBFLAGS = @BLASLIBFLAGS@
|
|
X11_LIB = -L/usr/openwin/lib -lX11
|
|
PETSCLIBFLAGS = @PETSCLIBDIRS@ @PETSCLIBS@ ${X11_LIB}
|
|
|
|
LFLAGS =\
|
|
-L.\
|
|
-L../hypre/lib\
|
|
-L../CI_struct_matrix_vector\
|
|
-lHYPRE_structIJ_mv \
|
|
-lHYPRE_CI_mv \
|
|
-lHYPRE_ls\
|
|
-lHYPRE_mv\
|
|
-lHYPRE_parcsr_ls\
|
|
-lHYPRE_DistributedMatrixPilutSolver \
|
|
-lHYPRE_ParaSails \
|
|
-lHYPRE_MatrixMatrix \
|
|
-lHYPRE_DistributedMatrix \
|
|
-lHYPRE_IJ_mv\
|
|
-lHYPRE_parcsr_mv\
|
|
-lHYPRE_seq_mv\
|
|
-lHYPRE_utilities\
|
|
${PETSCLIBFLAGS} \
|
|
${BLASLIBFLAGS} \
|
|
${MPILIBFLAGS} ${LIBFLAGS} ${LDLIBFLAGS}
|
|
|
|
driver: driver.o
|
|
${CC} -o driver driver.o ${LFLAGS}
|
|
|
|
##################################################################
|
|
# Generic rules
|
|
##################################################################
|
|
|
|
.c.o:
|
|
${CC} -o $@ -c ${CFLAGS} $<
|
|
|