hypre/CI_struct_mv/Makefile.in
2000-12-14 18:19:22 +00:00

81 lines
1.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 .o
srcdir = @srcdir@
VPATH = @srcdir@
CC = @CC@
C_COMPILE_FLAGS=@CFLAGS@
CINCLUDES=@INCLUDES@ @MPIINCLUDE@
CDEFS = @HYPRE_PETSCDEFS@
CFLAGS = \
${C_COMPILE_FLAGS}\
-I..\
-I$(srcdir)\
-I$(srcdir)/..\
-I$(srcdir)/../utilities\
-I$(srcdir)/../struct_mv\
@PETSCINCLUDE@ \
${CINCLUDES} ${CDEFS}
RANLIB = @RANLIB@
HEADERS =\
headers.h\
CI_struct_mv.h\
HYPRE_CI_mv.h
FILES =\
HYPRE_struct_matrix.c\
HYPRE_struct_vector.c\
struct_matrix.c\
struct_vector.c\
grid_to_coord.c\
struct_matrix_PETSc.c\
struct_vector_PETSc.c
OBJS = ${FILES:.c=.o}
##################################################################
# Targets
##################################################################
all: libHYPRE_CI_mv.a
install: all
clean:
@rm -f *.o *.dxx
veryclean: clean
@rm -f lib*.a
##################################################################
# Rules
##################################################################
libHYPRE_CI_mv.a: ${OBJS}
@echo "Building $@ ... "
ar -rcu $@ ${OBJS}
${RANLIB} $@
${OBJS}: ${HEADERS}
##################################################################
# Generic rules
##################################################################
.c.o:
${CC} -o $@ -c ${CFLAGS} $<