65 lines
1.3 KiB
Makefile
65 lines
1.3 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: .cc .c .f .o
|
|
|
|
all: lib
|
|
|
|
install:all
|
|
|
|
#Headers
|
|
HEADERS =\
|
|
distributed_matrix.h
|
|
|
|
HYPREFILES =\
|
|
HYPRE_distributed_matrix.c
|
|
|
|
LOCALFILES =\
|
|
distributed_matrix.c\
|
|
distributed_matrix_PETSc.c\
|
|
distributed_matrix_parcsr.c\
|
|
distributed_matrix_ISIS.c
|
|
|
|
#distributed_matrix_ISIS.cc
|
|
|
|
FILES = $(HYPREFILES) $(LOCALFILES)
|
|
|
|
|
|
OBJS = HYPRE_distributed_matrix.o \
|
|
distributed_matrix.o\
|
|
distributed_matrix_PETSc.o\
|
|
distributed_matrix_parcsr.o\
|
|
distributed_matrix_ISIS.o
|
|
|
|
${OBJS}: ${HEADERS}
|
|
|
|
#include site-specific information
|
|
include ../bmakes/Makefile
|
|
|
|
|
|
##################################################################
|
|
# Main rules
|
|
##################################################################
|
|
|
|
driver: driver.o lib_HYPRE.a
|
|
@echo "Linking" $@ "... "
|
|
${CC} -o driver driver.o ${LFLAGS}
|
|
|
|
link:
|
|
rm driver
|
|
make driver
|
|
|
|
lib: $(PROTOS) ${OBJS}
|
|
@echo "Building $@ ... "
|
|
@echo "Building ${OBJS} ... "
|
|
@ar -rcu lib_HYPRE_DistributedMatrix.a ${OBJS}
|
|
@ranlib lib_HYPRE_DistributedMatrix.a
|
|
|