source: CIVL/examples/mpi-omp/AMG2013/utilities/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: 2.3 KB
RevLine 
[2aa6644]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
15.SUFFIXES:
16.SUFFIXES: .c .f .o
17
18srcdir = .
19
20include ../Makefile.include
21
22CFLAGS =\
23 -I..\
24 ${INCLUDE_CFLAGS}\
25 -DHYPRE_TIMING
26
27RANLIB= ranlib
28
29
30##################################################################
31# Targets
32##################################################################
33
34all: libHYPRE_utilities.a
35
36clean:
37 @rm -f *.o
38
39veryclean: clean
40 @rm -f libHYPRE_*.a
41
42##################################################################
43# Utilities rules
44##################################################################
45
46UTILITIES_HEADERS =\
47 amg_linklist.h\
48 exchange_data.h\
49 general.h\
50 hypre_memory.h\
51 hypre_smp_forloop.h\
52 HYPRE_utilities.h\
53 mpistubs.h\
54 threading.h\
55 thread_mpistubs.h\
56 timing.h\
57 umalloc_local.h\
58 utilities.h
59
60UTILITIES_FILES =\
61 amg_linklist.c\
62 binsearch.c\
63 exchange_data.c\
64 hypre_memory.c\
65 hypre_qsort.c\
66 memory_dmalloc.c\
67 mpistubs.c\
68 qsplit.c\
69 random.c\
70 threading.c\
71 thread_mpistubs.c\
72 timer.c\
73 timing.c\
74 umalloc_local.c\
75 hypre_error.c
76
77UTILITIES_OBJS = ${UTILITIES_FILES:.c=.o}
78
79
80libHYPRE_utilities.a: ${UTILITIES_OBJS}
81 @echo "Building $@ ... "
82 ar -rcu $@ ${UTILITIES_OBJS}
83 ${RANLIB} $@
84
85${UTILITIES_OBJS}: ${UTILITIES_HEADERS}
86
87timer.o: timer.c
88 ${CC} -D_POSIX_SOURCE -o $@ -c ${CFLAGS} $<
89
90##################################################################
91# Generic rules
92##################################################################
93
94.c.o:
95 ${CC} -o $@ -c ${CFLAGS} $<
Note: See TracBrowser for help on using the repository browser.