forked from benchmark-subsetting/NPB3.0-omp-C
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
65 lines (48 loc) · 1.36 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
56
57
58
59
60
61
62
63
SHELL=/bin/sh
CLASS=S
SFILE=config/suite.def
default: header
@ $(SHELL) sys/print_instructions
BT: bt
bt: header
cd BT; $(MAKE) CLASS=$(CLASS)
SP: sp
sp: header
cd SP; $(MAKE) CLASS=$(CLASS)
LU: lu
lu: header
cd LU; $(MAKE) CLASS=$(CLASS)
MG: mg
mg: header
cd MG; $(MAKE) CLASS=$(CLASS)
FT: ft
ft: header
cd FT; $(MAKE) CLASS=$(CLASS)
IS: is
is: header
cd IS; $(MAKE) CLASS=$(CLASS)
CG: cg
cg: header
cd CG; $(MAKE) CLASS=$(CLASS)
EP: ep
ep: header
cd EP; $(MAKE) CLASS=$(CLASS)
# Awk script courtesy [email protected]
suite:
@ awk '{ if ($$1 !~ /^#/ && NF > 0) \
printf "make %s CLASS=%s\n", $$1, $$2 }' $(SFILE) \
| $(SHELL)
# It would be nice to make clean in each subdirectory (the targets
# are defined) but on a really clean system this will won't work
# because those makefiles need config/make.def
clean:
- rm -f core
- rm -f *~ */core */*~ */*.o */npbparams.h */*.obj */*.exe
- rm -f sys/setparams sys/makesuite sys/setparams.h
veryclean: clean
- rm config/make.def config/suite.def Part*
- rm bin/sp.* bin/lu.* bin/mg.* bin/ft.* bin/bt.* bin/is.* bin/ep.* bin/cg.*
header:
@ $(SHELL) sys/print_header
kit:
- makekit -s100k -k30 * */* */*/*