-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
55 lines (41 loc) · 1.4 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
FELIBDIR = FElib/src
MODEL_GLOBALSW_DIR = model/global_shallow_water/src
MODEL_ATM2D_DIR = model/atm_nonhydro2d/src
MODEL_ATM3D_DIR = model/atm_nonhydro3d/src
MODEL_ATM3D_UTIL_REGRID = model/atm_nonhydro3d/util/regrid_tool
all: build
build:
$(MAKE) -C $(FELIBDIR) build
$(MAKE) -C $(FELIBDIR) install
$(MAKE) build-model-globalsw build-model-atm2d build-model-atm3d build-model-atm3d-util
install: install-model-globalsw install-model-atm2d install-model-atm3d install-model-atm3d-util
clean:
$(MAKE) -C $(MODEL_GLOBALSW_DIR) clean
$(MAKE) -C $(MODEL_ATM2D_DIR) clean
$(MAKE) -C $(MODEL_ATM3D_DIR) clean
$(MAKE) -C $(MODEL_ATM3D_UTIL_REGRID) clean
$(MAKE) -C $(FELIBDIR) clean
distclean:
$(MAKE) -C $(MODEL_GLOBALSW_DIR) distclean
$(MAKE) -C $(MODEL_ATM2D_DIR) distclean
$(MAKE) -C $(MODEL_ATM3D_DIR) distclean
$(MAKE) -C $(MODEL_ATM3D_UTIL_REGRID) distclean
$(MAKE) -C $(FELIBDIR) distclean
#--
build-model-globalsw:
$(MAKE) -C $(MODEL_GLOBALSW_DIR) build
build-model-atm2d:
$(MAKE) -C $(MODEL_ATM2D_DIR) build
build-model-atm3d:
$(MAKE) -C $(MODEL_ATM3D_DIR) build
build-model-atm3d-util:
$(MAKE) -C $(MODEL_ATM3D_UTIL_REGRID) build
#--
install-model-globalsw:
$(MAKE) -C $(MODEL_GLOBALSW_DIR) install
install-model-atm2d:
$(MAKE) -C $(MODEL_ATM2D_DIR) install
install-model-atm3d:
$(MAKE) -C $(MODEL_ATM3D_DIR) install
install-model-atm3d-util:
$(MAKE) -C $(MODEL_ATM3D_UTIL_REGRID) install