58 lines
1.1 KiB
Makefile
58 lines
1.1 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***********************************************************************
|
|
|
|
default: lib
|
|
|
|
all: default
|
|
|
|
install:all
|
|
|
|
.SUFFIXES:
|
|
.SUFFIXES: .c .f .o
|
|
|
|
HEADERS =\
|
|
struct_solver.h
|
|
|
|
LOCALFILES =\
|
|
struct_solver.c\
|
|
struct_solver_PETSc.c
|
|
|
|
HYPREFILES =\
|
|
HYPRE_struct_solver.c
|
|
|
|
FILES = $(HYPREFILES) $(LOCALFILES)
|
|
|
|
OBJS = ${FILES:.c=.o}
|
|
|
|
|
|
${OBJS}: ${HEADERS}
|
|
|
|
#include site-specific information
|
|
include ../bmakes/Makefile
|
|
|
|
##################################################################
|
|
# Main rules
|
|
##################################################################
|
|
|
|
lib: $(PROTOS) ${OBJS}
|
|
@echo "Building $@ ... "
|
|
ar -rcu lib_HYPRE_CI_ls.a ${OBJS}
|
|
@RANLIB@ lib_HYPRE_CI_ls.a
|
|
|
|
driver: driver.o lib_HYPRE.a
|
|
@echo "Linking" $@ "... "
|
|
${CC} -o driver driver.o ${LFLAGS}
|
|
|
|
link:
|
|
rm driver
|
|
make driver
|
|
|
|
${OBJS}: ${HEADERS}
|
|
|