-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.platform
83 lines (68 loc) · 2.12 KB
/
Makefile.platform
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
SHELL := /bin/bash
DEBUG := 1
#
# Use `hostname` to work out the build platform. Note that the
# simple $(_HOST) resolution scheme will fail if run in a batch
# job on dcc or vayu at NCI.
#
_HOST := $(shell hostname | cut -c 1-2)
ifeq '$(_HOST)' 'dc'
# --- NCI (dcc) ---
MODTRAN_ROOT := /projects/v10/GASoftware/modtran-5.2.1.0
MODTRAN_DATA := $(MODTRAN_ROOT)/DATA
MODTRAN_EXE := $(MODTRAN_ROOT)/Mod90_5.2.1.0_ifort.exe
FMAKEFILE := Makefile.ifort
PLATFORM := DCC
endif
ifeq '$(_HOST)' 'va'
# --- NCI (vayuXX) ---
MODTRAN_ROOT := /short/v10/modtran-5.2.1.0
MODTRAN_DATA := $(MODTRAN_ROOT)/DATA
MODTRAN_EXE := $(MODTRAN_ROOT)/Mod90_5.2.1.0_ifort.exe
FMAKEFILE := Makefile.ifort
PLATFORM := VAYU
endif
ifeq '$(_HOST)' 'ra'
# --- NCI (raijinXX) ---
MODTRAN_ROOT := /projects/u46/opt/modules/MODTRAN/5.2.1
MODTRAN_DATA := $(MODTRAN_ROOT)/DATA
MODTRAN_EXE := $(MODTRAN_ROOT)/Mod90_5.2.1_ifort.exe
FMAKEFILE := Makefile.ifort
PLATFORM := RAIJIN
endif
ifeq '$(_HOST)' 'rh'
# --- NEO/VCLOUD (rhe-ula-opt.dev.lan) ---
MODTRAN_ROOT := /ula/opt/modtran/5.2.1.0
MODTRAN_DATA := $(MODTRAN_ROOT)/DATA
MODTRAN_EXE := $(MODTRAN_ROOT)/Mod90_5.2.1.0_gfortran.exe
FMAKEFILE := Makefile
PLATFORM := VCLOUD
endif
ifeq '$(_HOST)' 'ce'
# --- NEO PRODUCTION SYSTEMS (cen-*) ---
MODTRAN_ROOT := /ula/opt/modtran/5.2.1.0
MODTRAN_DATA := $(MODTRAN_ROOT)/DATA
MODTRAN_EXE := $(MODTRAN_ROOT)/Mod90_5.2.1.0_gfortran.exe
FMAKEFILE := Makefile
PLATFORM := VCLOUD
endif
ifneq '$(DEBUG)' ''
$(warning _HOST = [$(_HOST)])
$(warning MODTRAN_ROOT = [$(MODTRAN_ROOT)])
$(warning MODTRAN_DATA = [$(MODTRAN_DATA)])
$(warning MODTRAN_EXE = [$(MODTRAN_EXE)])
$(warning FMAKEFILE = [$(FMAKEFILE)])
$(warning PLATFORM = [$(PLATFORM)])
endif
#
# Catch errors.
#
ifeq '$(MODTRAN_ROOT)' ''
$(error Cannot resolve MODTRAN_ROOT for host $(HOST))
endif
ifeq '$(PLATFORM)' ''
$(error Cannot resolve PLATFORM for host $(HOST))
endif
ifeq '$(LOADEDMODULES)' ''
$(error No modules loaded)
endif