forked from LLNL/phloem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (44 loc) · 1.51 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
48
49
50
51
52
53
54
55
SHELL = /bin/sh
TESTS = presta sqmr mpigraph
BUILD_DIRS = $(TESTS)
include Makefile.inc
FLAGS=CC="$(CC)" CFLAGS="$(CFLAGS)" LD="$(LD)" LDFLAGS="$(LDFLAGS)"
build:
@for dir in $(BUILD_DIRS) ; do \
BENCH_DIR=`echo $$dir*` ; \
if cd $$BENCH_DIR ; then \
echo ================================================================================; \
echo "Building benchmark" $$BENCH_DIR ; \
echo ================================================================================; \
if [ $$dir != "presta" ] ; then \
if ! $(MAKE) $(FLAGS) LIBS="$(LIBS) $(ENV_OBJ)"; then exit 1 ; fi ; \
else \
if ! $(MAKE) $(FLAGS) LIBS=$(LIBS); then exit 1 ; fi ; \
fi ;\
cd .. ; \
fi ; \
done ; \
echo ================================================================================; \
echo "Done." ; \
echo ================================================================================;
run: build
@./run_script $(TESTS)
commands:
./run_script -l $(TESTS)
clean:
for dir in $(BUILD_DIRS) ; do \
if cd $$dir* ; then \
$(MAKE) clean ; \
cd .. ; \
fi ; \
done
clobber: clean
rm -f mpi_bench_tests*.out
# ==============================================================================
# LLNL Release Information
# ------------------------------------------------------------------------------
# Sequoia MPI Benchmark Suite Framework
# Published 1/15/08
# by Chris Chambreau ([email protected])
# Lawrence Livermore National Laboratory
# Release number LLNL-MI-400479