141 lines
2.6 KiB
Makefile
141 lines
2.6 KiB
Makefile
#BHEADER***********************************************************************
|
|
# (c) 1997 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@
|
|
F77_COMPILE_FLAGS=@F77FLAGS@
|
|
CINCLUDES=@INCLUDES@ @MPIINCLUDE@
|
|
CDEFS = @HYPREDEFS@ -DHYPRE_NO_PTHREAD_MANGLING
|
|
|
|
CFLAGS = \
|
|
${C_COMPILE_FLAGS}\
|
|
-I../utilities\
|
|
-I../struct_matrix_vector\
|
|
${CINCLUDES}\
|
|
${CDEFS}
|
|
|
|
RANLIB = @RANLIB@
|
|
|
|
MPILIBFLAGS = @MPILIBDIRS@ @MPILIBS@ @MPIFLAGS@
|
|
LIBFLAGS = @LIBDIRS@ @LIBS@
|
|
LDLIBFLAGS = @LDLIBDIRS@ @LDLIBS@
|
|
|
|
LFLAGS =\
|
|
-L.\
|
|
-L../struct_matrix_vector\
|
|
-L../utilities\
|
|
-lHYPRE_ls\
|
|
-lHYPRE_mv\
|
|
-lHYPRE_utilities\
|
|
${MPILIBFLAGS} ${LIBFLAGS} ${LDLIBFLAGS}
|
|
|
|
|
|
HEADERS =\
|
|
fortran.h\
|
|
headers.h\
|
|
pfmg.h\
|
|
smg.h\
|
|
struct_linear_solvers.h\
|
|
HYPRE_ls.h
|
|
|
|
FILES =\
|
|
cyclic_reduction.c\
|
|
general.c\
|
|
hybrid.c\
|
|
jacobi.c\
|
|
pcg.c\
|
|
pcg_struct.c\
|
|
pfmg.c\
|
|
pfmg2_setup_rap.c\
|
|
pfmg3_setup_rap.c\
|
|
pfmg_interp.c\
|
|
pfmg_relax.c\
|
|
pfmg_restrict.c\
|
|
pfmg_setup.c\
|
|
pfmg_setup_interp.c\
|
|
pfmg_setup_rap.c\
|
|
pfmg_solve.c\
|
|
point_relax.c\
|
|
smg2_setup_rap.c\
|
|
smg3_setup_rap.c\
|
|
smg.c\
|
|
smg_intadd.c\
|
|
smg_relax.c\
|
|
smg_residual.c\
|
|
smg_restrict.c\
|
|
smg_setup.c\
|
|
smg_setup_interp.c\
|
|
smg_setup_rap.c\
|
|
smg_setup_restrict.c\
|
|
smg_solve.c\
|
|
thread_wrappers.c\
|
|
HYPRE_struct_hybrid.c\
|
|
HYPRE_struct_jacobi.c\
|
|
HYPRE_struct_pfmg.c\
|
|
HYPRE_struct_smg.c\
|
|
HYPRE_struct_pcg.c\
|
|
F90_HYPRE_struct_hybrid.c\
|
|
F90_HYPRE_struct_pcg.c\
|
|
F90_HYPRE_struct_pfmg.c\
|
|
F90_HYPRE_struct_smg.c
|
|
|
|
OBJS = ${FILES:.c=.o}
|
|
|
|
##################################################################
|
|
# Targets
|
|
##################################################################
|
|
|
|
all: libHYPRE_ls.a
|
|
|
|
install: all
|
|
@cp -f HYPRE_*.h struct_linear_solvers.h $$HYPRE_INSTALL_DIR/include
|
|
@cp -f libHYPRE_*.a $$HYPRE_INSTALL_DIR/lib
|
|
clean:
|
|
@rm -f *.o *.dxx
|
|
@rm -f *.prj
|
|
@rm -f *.kdd
|
|
|
|
veryclean: clean
|
|
@rm -f libHYPRE_*.a
|
|
|
|
|
|
##################################################################
|
|
# Rules
|
|
##################################################################
|
|
|
|
libHYPRE_ls.a: ${OBJS}
|
|
@echo "Building $@ ... "
|
|
ar -rcu $@ ${OBJS}
|
|
${RANLIB} $@
|
|
|
|
${OBJS}: ${HEADERS}
|
|
|
|
|
|
|
|
##################################################################
|
|
# Generic rules
|
|
##################################################################
|
|
|
|
.c.o:
|
|
${CC} -o $@ -c ${CFLAGS} $<
|
|
|
|
.f.o:
|
|
${F77} -o $@ -c ${FFLAGS} $<
|
|
|
|
|