forked from paullric/tempestmodel
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsystem.make
118 lines (108 loc) · 2.56 KB
/
system.make
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Copyright (c) 2016 Bryce Adelstein-Lelbach aka wash
# Copyright (c) 2000-2016 Paul Ullrich
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
# Detects the system and includes the system-specific makefile.
UNAME := $(shell uname)
HOSTNAME := $(shell hostname)
ifeq ($(UNAME),Darwin)
SYSTEM= MACOSX
SYSTEM_MAKEFILE= macosx.make
else ifeq ($(UNAME),Linux)
ifeq ($(NERSC_HOST),babbage)
SYSTEM= BABBAGE
SYSTEM_MAKEFILE= babbage.make
endif
ifeq ($(HOSTNAME),faraday)
SYSTEM= FARADAY
SYSTEM_MAKEFILE= faraday.make
endif
ifeq ($(HOSTNAME),turing)
SYSTEM= TURING
SYSTEM_MAKEFILE= turing.make
endif
ifeq ($(HOSTNAME),davros)
SYSTEM= DAVROS
SYSTEM_MAKEFILE= davros.make
endif
ifeq ($(HOSTNAME),stella)
SYSTEM= STELLA
SYSTEM_MAKEFILE= stella.make
endif
ifeq ($(NERSC_HOST),cori)
SYSTEM= CORI
SYSTEM_MAKEFILE= cori.make
endif
ifeq ($(HOSTNAME),yslogin1)
SYSTEM= YELLOWSTONE
SYSTEM_MAKEFILE= yellowstone.make
endif
ifeq ($(HOSTNAME),yslogin2)
SYSTEM= YELLOWSTONE
SYSTEM_MAKEFILE= yellowstone.make
endif
ifeq ($(HOSTNAME),yslogin3)
SYSTEM= YELLOWSTONE
SYSTEM_MAKEFILE= yellowstone.make
endif
ifeq ($(HOSTNAME),yslogin4)
SYSTEM= YELLOWSTONE
SYSTEM_MAKEFILE= yellowstone.make
endif
ifeq ($(HOSTNAME),yslogin5)
SYSTEM= YELLOWSTONE
SYSTEM_MAKEFILE= yellowstone.make
endif
ifeq ($(HOSTNAME),yslogin6)
SYSTEM= YELLOWSTONE
SYSTEM_MAKEFILE= yellowstone.make
endif
ifeq ($(HOSTNAME),cab668)
SYSTEM= CAB
SYSTEM_MAKEFILE= cab.make
endif
ifeq ($(HOSTNAME),cab669)
SYSTEM= CAB
SYSTEM_MAKEFILE= cab.make
endif
ifeq ($(HOSTNAME),cab670)
SYSTEM= CAB
SYSTEM_MAKEFILE= cab.make
endif
ifeq ($(HOSTNAME),cab687)
SYSTEM= CAB
SYSTEM_MAKEFILE= cab.make
endif
ifeq ($(HOSTNAME),cab688)
SYSTEM= CAB
SYSTEM_MAKEFILE= cab.make
endif
ifeq ($(HOSTNAME),cab689)
SYSTEM= CAB
SYSTEM_MAKEFILE= cab.make
endif
ifeq ($(HOSTNAME),cab690)
SYSTEM= CAB
SYSTEM_MAKEFILE= cab.make
endif
ifeq ($(SYSTEM),)
SYSTEM= AGRI
SYSTEM_MAKEFILE= agri.make
endif
endif
include $(TEMPESTBASEDIR)/mk/system/$(SYSTEM_MAKEFILE)
# Build identifier
BUILDID:= $(SYSTEM)
ifeq ($(OPT),TRUE)
BUILDID:=$(BUILDID).OPT
endif
ifeq ($(DEBUG),TRUE)
BUILDID:=$(BUILDID).DEBUG
endif
ifeq ($(PARALLEL),MPIOMP)
BUILDID:=$(BUILDID).MPIOMP
else ifeq ($(PARALLEL),HPX)
BUILDID:=$(BUILDID).HPX
endif
# DO NOT DELETE