115 lines
2.2 KiB
Makefile
115 lines
2.2 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@
|
|
CINCLUDES=@INCLUDES@ @MPIINCLUDE@
|
|
|
|
CFLAGS =\
|
|
${C_COMPILE_FLAGS}\
|
|
-I..\
|
|
-I$(srcdir)\
|
|
-I$(srcdir)/..\
|
|
-I$(srcdir)/../utilities\
|
|
${CINCLUDES}
|
|
|
|
RANLIB= @RANLIB@
|
|
|
|
HEADERS =\
|
|
box.h\
|
|
box_neighbors.h\
|
|
communication.h\
|
|
computation.h\
|
|
headers.h\
|
|
struct_grid.h\
|
|
struct_matrix.h\
|
|
struct_stencil.h\
|
|
struct_vector.h\
|
|
struct_mv.h\
|
|
HYPRE_struct_mv.h
|
|
|
|
FILES =\
|
|
box.c\
|
|
box_algebra.c\
|
|
box_alloc.c\
|
|
box_neighbors.c\
|
|
communication.c\
|
|
communication_info.c\
|
|
computation.c\
|
|
grow.c\
|
|
project.c\
|
|
struct_grid.c\
|
|
struct_io.c\
|
|
struct_axpy.c\
|
|
struct_copy.c\
|
|
struct_innerprod.c\
|
|
struct_matrix.c\
|
|
struct_matrix_mask.c\
|
|
struct_matvec.c\
|
|
struct_scale.c\
|
|
struct_stencil.c\
|
|
struct_vector.c\
|
|
HYPRE_struct_grid.c\
|
|
HYPRE_struct_matrix.c\
|
|
HYPRE_struct_stencil.c\
|
|
HYPRE_struct_vector.c\
|
|
F90_HYPRE_struct_grid.c\
|
|
F90_HYPRE_struct_matrix.c\
|
|
F90_HYPRE_struct_stencil.c\
|
|
F90_HYPRE_struct_vector.c
|
|
|
|
OBJS = ${FILES:.c=.o}
|
|
|
|
##################################################################
|
|
# Targets
|
|
##################################################################
|
|
|
|
all: libHYPRE_struct_mv.a
|
|
|
|
install: all
|
|
@cp -f $(srcdir)/HYPRE_*.h $$HYPRE_INSTALL_DIR/include/.
|
|
@cp -f $(srcdir)/struct_mv.h $$HYPRE_INSTALL_DIR/include/.
|
|
@cp -f libHYPRE_*.a $$HYPRE_INSTALL_DIR/lib/.
|
|
|
|
clean:
|
|
@rm -f *.o
|
|
@rm -f *.prj
|
|
@rm -f *.kdd
|
|
|
|
veryclean: clean
|
|
@rm -f libHYPRE_*.a
|
|
|
|
##################################################################
|
|
# Rules
|
|
##################################################################
|
|
|
|
libHYPRE_struct_mv.a: ${OBJS}
|
|
@echo "Building $@ ... "
|
|
ar -rcu $@ ${OBJS}
|
|
${RANLIB} $@
|
|
|
|
${OBJS}: ${HEADERS}
|
|
|
|
##################################################################
|
|
# Generic rules
|
|
##################################################################
|
|
|
|
.c.o:
|
|
${CC} -o $@ -c ${CFLAGS} $<
|
|
|