134 lines
2.6 KiB
Makefile
134 lines
2.6 KiB
Makefile
#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 = @srcdir@
|
|
VPATH = @srcdir@
|
|
|
|
CC = @CC@
|
|
|
|
C_COMPILE_FLAGS=@CFLAGS@
|
|
CXX_COMPILE_FLAGS=@CXXFLAGS@
|
|
F77_COMPILE_FLAGS=@F77FLAGS@
|
|
CINCLUDES=@INCLUDES@ @MPIINCLUDE@
|
|
CDEFS =
|
|
|
|
CFLAGS =\
|
|
${C_COMPILE_FLAGS}\
|
|
-I$(srcdir)\
|
|
-I$(srcdir)/../..\
|
|
-I$(srcdir)/../../utilities\
|
|
-I$(srcdir)/../../seq_mv\
|
|
${CINCLUDES}\
|
|
${CDEFS}
|
|
|
|
RANLIB= @RANLIB@
|
|
|
|
MPILIBFLAGS = @MPILIBDIRS@ @MPILIBS@ @MPIFLAGS@
|
|
LIBFLAGS = @LIBDIRS@ @LIBS@
|
|
LDLIBFLAGS = @LDLIBDIRS@ @LDLIBS@
|
|
|
|
LFLAGS =\
|
|
-L.\
|
|
-lX11\
|
|
-L../../seq_mv\
|
|
-L../../utilities\
|
|
-lHYPRE_amge_ls\
|
|
-lHYPRE_seq_mv\
|
|
-lHYPRE_utilities\
|
|
${MPILIBFLAGS} ${LIBFLAGS} ${LDLIBFLAGS}
|
|
|
|
|
|
HEADERS =\
|
|
headers.h\
|
|
AMGe_matrix_topology.h\
|
|
HYPRE_amge.h
|
|
|
|
FILES =\
|
|
driver_amge.c\
|
|
amge_initial_graphs.c\
|
|
amge_topology_setup.c\
|
|
amge_coarsenode_setup.c\
|
|
amge_interpolation_setup.c\
|
|
amge_smoother_setup.c\
|
|
matrix_topology.c\
|
|
AMGe_matrix_topology.c\
|
|
amge_coarsen_topology.c\
|
|
transpose_matrix_create.c\
|
|
matrix_matrix_product.c\
|
|
create_maximal_intersection_sets.c\
|
|
matrix_matrix_t_product.c\
|
|
agglomerate.c\
|
|
coarse_node_selection.c\
|
|
build_interpolation.c\
|
|
Schur_complement.c\
|
|
create_element_matrices_dofs.c\
|
|
domain_assemble.c\
|
|
compute_dof_node.c\
|
|
amge_elmmat_read.c\
|
|
boundarysurfaces.c\
|
|
assemble.c\
|
|
rap.c\
|
|
ILU_factor.c\
|
|
compute_dof_on_boundary.c\
|
|
ILU_pcg.c\
|
|
ILU_solve.c\
|
|
V_cycle_ILU_smoothing.c\
|
|
V_cycle_ILU_pcg.c\
|
|
graphics_2d.c\
|
|
xgraph0.c
|
|
|
|
|
|
|
|
OBJS = ${FILES:.c=.o}
|
|
|
|
|
|
|
|
|
|
##################################################################
|
|
# Targets
|
|
##################################################################
|
|
|
|
all: libHYPRE_amge_ls.a driver
|
|
|
|
install: all
|
|
|
|
clean:
|
|
@rm -f *.o
|
|
|
|
veryclean: clean
|
|
@rm -f driver
|
|
@rm -f libHYPRE_amge_ls.a
|
|
|
|
##################################################################
|
|
# Rules
|
|
##################################################################
|
|
|
|
driver: driver_amge.o libHYPRE_amge_ls.a
|
|
@echo "Linking" $@ "... "
|
|
${CC} -o driver driver_amge.o ${LFLAGS}
|
|
|
|
|
|
|
|
libHYPRE_amge_ls.a: ${OBJS}
|
|
@echo "Building $@ ... "
|
|
ar -rcu $@ ${OBJS}
|
|
${RANLIB} $@
|
|
|
|
${OBJS}: ${HEADERS}
|
|
|
|
##################################################################
|
|
# Generic rules
|
|
##################################################################
|
|
|
|
.c.o:
|
|
${CC} -o $@ -c ${CFLAGS} $<
|