114 lines
2.4 KiB
Makefile
114 lines
2.4 KiB
Makefile
# (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@
|
|
|
|
CINCLUDES=@INCLUDES@ @MPIINCLUDE@
|
|
COPT = @COPT@
|
|
CDEBUG = @CDEBUG@
|
|
CDEFS = @HYPREDEFS@ @TIMERDEFS@ -DHYPRE_TIMING
|
|
|
|
CFLAGS =\
|
|
${CINCLUDES}\
|
|
${COPT}\
|
|
${CDEBUG}\
|
|
${CDEFS}
|
|
|
|
RANLIB = @RANLIB@
|
|
|
|
MEMORY_EXTRA_FILES = @MEMORYEXTRAFILES@
|
|
|
|
|
|
##################################################################
|
|
# Default targets
|
|
##################################################################
|
|
|
|
default: libHYPRE_utilities.a libHYPRE_memory.a libHYPRE_timing.a
|
|
|
|
##################################################################
|
|
# Memory rules
|
|
##################################################################
|
|
|
|
MEMORY_HEADERS =\
|
|
memory.h
|
|
|
|
MEMORY_FILES =\
|
|
memory.c\
|
|
${MEMORY_EXTRA_FILES}
|
|
|
|
MEMORY_OBJS = ${MEMORY_FILES:.c=.o}
|
|
|
|
libHYPRE_memory.a: ${MEMORY_OBJS}
|
|
@echo "Building $@ ... "
|
|
ar -ru $@ ${MEMORY_OBJS}
|
|
${RANLIB} $@
|
|
|
|
${MEMORY_OBJS}: ${MEMORY_HEADERS}
|
|
|
|
##################################################################
|
|
# Timing rules
|
|
##################################################################
|
|
|
|
TIMING_HEADERS =\
|
|
timing.h
|
|
|
|
TIMING_FILES =\
|
|
timer.c\
|
|
timing.c
|
|
|
|
TIMING_OBJS = ${TIMING_FILES:.c=.o}
|
|
|
|
libHYPRE_timing.a: ${TIMING_OBJS}
|
|
@echo "Building $@ ... "
|
|
ar -ru $@ ${TIMING_OBJS}
|
|
${RANLIB} $@
|
|
|
|
${TIMING_OBJS}: ${TIMING_HEADERS}
|
|
|
|
##################################################################
|
|
# Utilities rules
|
|
##################################################################
|
|
|
|
UTILITIES_OBJS = ${MEMORY_OBJS} ${TIMING_OBJS}
|
|
|
|
libHYPRE_utilities.a: ${UTILITIES_OBJS}
|
|
@echo "Building $@ ... "
|
|
ar -ru $@ ${UTILITIES_OBJS}
|
|
ranlib $@
|
|
|
|
##################################################################
|
|
# 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_timing.a
|
|
@rm -f libHYPRE_memory.a
|
|
|
|
clean:
|
|
@rm -f *.o
|
|
|