-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
47 lines (40 loc) · 1.08 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
##############################################################################
# Copyright (c) 2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# Written by:
# Nikhil Jain <[email protected]>
# Abhinav Bhatele <[email protected]>
#
# LLNL-CODE-756471. All rights reserved.
#
# This file is part of Chatterbug. For details, see:
# https://github.com/LLNL/chatterbug
# Please also read the LICENSE file for the MIT License notice.
##############################################################################
ifeq ($(WITH_OTF2),YES)
# enable OTF2 tracing
SUFFIX = .otf2
else
# no tracing
SUFFIX = .x
endif
PREFIX = .
proxies := pairs ping-ping spread stencil3d stencil4d subcom2d-coll \
subcom3d-a2a unstr-mesh
.PHONY: all $(proxies)
all: $(proxies)
$(proxies):
$(MAKE) --directory=$@
clean:
for dir in $(proxies); \
do \
$(MAKE) --directory=$$dir clean; \
done
.PHONY: install
install: $(proxies)
mkdir -p $(PREFIX)/bin
for dir in $(proxies); \
do \
cp $$dir/$$dir$(SUFFIX) $(PREFIX)/bin/; \
done