hypre/seq_mv/MakeIRIX
2008-07-18 01:34:48 +00:00

97 lines
1.8 KiB
Plaintext

#BHEADER**********************************************************************
# Copyright (c) 2008, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
# This file is part of HYPRE. See file COPYRIGHT for details.
#
# HYPRE is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License (as published by the Free
# Software Foundation) version 2.1 dated February 1999.
#
# $Revision$
#EHEADER**********************************************************************
.SUFFIXES:
.SUFFIXES: .c .f .o
HEADERS =\
HYPRE_mv.h\
csr_matrix.h\
mapped_matrix.h\
multiblock_matrix.h\
vector.h
FILES =\
HYPRE_csr_matrix.c\
HYPRE_mapped_matrix.c\
HYPRE_multiblock_matrix.c\
csr_matrix.c\
csr_matop.c\
csr_matvec.c\
mapped_matrix.c\
multiblock_matrix.c\
vector.c
OBJS = ${FILES:.c=.o}
CC = cc
CFLAGS =\
-I/usr/local/include\
-I/home/casc/include\
-I..
LFLAGS =\
-L/usr/local/lib\
-L/home/casc/lib\
-L/home/casc/g77/lib\
-L.\
-L../utilities\
-lHYPRE_memory\
-lf2c\
-lcegdb\
-lm
##################################################################
# Main rules
##################################################################
libHYPRE_mv.a: ${OBJS}
@echo "Building $@ ... "
ar -ru $@ ${OBJS}
ranlib $@
${OBJS}: ${HEADERS}
##################################################################
# Generic rules
##################################################################
.c.o:
@echo "Making (c) " $@
@${CC} -o $@ -c ${CFLAGS} $<
.f.${AMG_ARCH}.o:
@echo "Making (f) " $@
@${F77} -o $@ -c ${FFLAGS} $<
##################################################################
# Miscellaneous rules
##################################################################
veryclean: clean
@rm -f libHYPRE_mv.a
@rm -f driver driver_internal
clean:
@rm -f *.o