end sections. --see box.h. Also added capabilities for using Openmp directives in .c files.
131 lines
2.5 KiB
Makefile
131 lines
2.5 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\
|
|
${CINCLUDES}\
|
|
${CDEFS}
|
|
|
|
RANLIB= @RANLIB@
|
|
|
|
MPILIBFLAGS = @MPILIBDIRS@ @MPILIBS@ @MPIFLAGS@
|
|
LIBFLAGS = @LIBDIRS@ @LIBS@
|
|
LDLIBFLAGS = @LDLIBDIRS@ @LDLIBS@
|
|
|
|
LFLAGS =\
|
|
-L.\
|
|
-L../utilities\
|
|
-lHYPRE_mv\
|
|
-lHYPRE_utilities\
|
|
${MPILIBFLAGS} ${LIBFLAGS} ${LDLIBFLAGS}
|
|
|
|
HEADERS =\
|
|
box.h\
|
|
box_neighbors.h\
|
|
communication.h\
|
|
computation.h\
|
|
fortran.h\
|
|
headers.h\
|
|
struct_grid.h\
|
|
struct_matrix.h\
|
|
struct_stencil.h\
|
|
struct_vector.h\
|
|
struct_matrix_vector.h\
|
|
HYPRE_mv.h
|
|
|
|
FILES =\
|
|
box.c\
|
|
box_algebra.c\
|
|
box_alloc.c\
|
|
box_data.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\
|
|
thread_wrappers.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_mv.a
|
|
|
|
install: all
|
|
@cp -f HYPRE_*.h struct_matrix_vector.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_mv.a: ${OBJS}
|
|
@echo "Building $@ ... "
|
|
ar -rcu $@ ${OBJS}
|
|
${RANLIB} $@
|
|
|
|
${OBJS}: ${HEADERS}
|
|
|
|
##################################################################
|
|
# Generic rules
|
|
##################################################################
|
|
|
|
.c.o:
|
|
${CC} -o $@ -c ${CFLAGS} $<
|
|
|
|
.f.o:
|
|
${F77} -o $@ -c ${FFLAGS} $<
|
|
|