source: CIVL/examples/mpi-omp/AMG2013/krylov/Makefile

main
Last change on this file was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 1.5 KB
Line 
1#BHEADER**********************************************************************
2# Copyright (c) 2008, Lawrence Livermore National Security, LLC.
3# Produced at the Lawrence Livermore National Laboratory.
4# This file is part of HYPRE. See file COPYRIGHT for details.
5#
6# HYPRE is free software; you can redistribute it and/or modify it under the
7# terms of the GNU Lesser General Public License (as published by the Free
8# Software Foundation) version 2.1 dated February 1999.
9#
10# $Revision: 2.4 $
11#EHEADER**********************************************************************
12
13
14.SUFFIXES:
15.SUFFIXES: .c .f .o
16
17include ../Makefile.include
18
19CFLAGS = \
20 -I..\
21 -I../utilities\
22 ${INCLUDE_CFLAGS}
23
24RANLIB = ranlib
25
26HEADERS =\
27 all_krylov.h\
28 gmres.h\
29 krylov.h\
30 pcg.h\
31 HYPRE_MatvecFunctions.h
32
33FILES =\
34 gmres.c\
35 HYPRE_gmres.c\
36 HYPRE_pcg.c\
37 pcg.c
38
39OBJS = ${FILES:.c=.o}
40
41##################################################################
42# Targets
43##################################################################
44
45all: libkrylov.a
46
47clean:
48 rm -f *.o *.dxx
49
50veryclean: clean
51 rm -f lib*.a
52
53
54##################################################################
55# Rules
56##################################################################
57
58libkrylov.a: ${OBJS}
59 @echo "Building $@ ... "
60 ar -rcu $@ ${OBJS}
61 ${RANLIB} $@
62
63${OBJS}: ${HEADERS}
64
65##################################################################
66# Generic rules
67##################################################################
68
69.c.o:
70 ${CC} -o $@ -c ${CFLAGS} $<
71
Note: See TracBrowser for help on using the repository browser.