-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
84 lines (60 loc) · 1.61 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
PROG_FAST = fast_$(PLATFORM)
PROG_TURB = turbsim_$(PLATFORM)
PROG_CRUNCH = crunch_$(PLATFORM)
PROG_IECWIND = iecwind_$(PLATFORM)
PROG_BMODES = bmodes_$(PLATFORM)
PROG_MODES = modes_$(PLATFORM)
MAP_LIB = libmap
DISCON_LIB = DISCON_$(PLATFORM)
BMODES = bmodes
MODES = modes
FAST = fast
TURBSIM = turbsim
CRUNCH = crunch
IECWIND = iecwind
DISCON = discon
REGISTRY = $(FAST)/Source/dependencies/Registry
MAP = map
export BASEDIR = $(PWD)
export OUTDIR = $(PWD)/build
export MODDIR = $(PWD)/include
export BINDIR = $(PWD)
export LIBDIR = $(PWD)
all: $(MAP_LIB) $(PROG_FAST) $(DISCON_LIB) $(PROG_TURB) $(PROG_IECWIND) $(PROG_CRUNCH) $(PROG_BMODES) $(PROG_MODES)
ALL_OBJ = $(OUTDIR)/*.o
$(MAP_LIB) map: map_lib
$(PROG_FAST) fast: registry fast_lib
$(PROG_MODES) modes: modes_lib
$(PROG_BMODES) bmodes: bmodes_lib
$(PROG_TURB) turbsim: turbsim_lib
$(PROG_IECWIND) iecwind: iecwind_lib
$(PROG_CRUNCH) crunch: crunch_lib
$(DISCON_LIB) discon: discon_lib
registry:
$(MAKE) -C $(REGISTRY)
discon_lib:
$(MAKE) -C $(DISCON)
map_lib:
$(MAKE) -C $(MAP)/src
fast_lib: map_lib
$(MAKE) -C $(FAST)/Compiling
modes_lib:
$(MAKE) -C $(MODES)/Source
bmodes_lib:
$(MAKE) -C $(BMODES)/Source
turbsim_lib:
$(MAKE) -C $(TURBSIM)/compiling
iecwind_lib:
$(MAKE) -C $(IECWIND)/Source
crunch_lib:
$(MAKE) -C $(CRUNCH)/Source
.PHONY: clean
clean:
$(MAKE) clean -C $(MAP)/src; \
$(MAKE) clean -C $(DISCON); \
$(MAKE) clean -C $(FAST)/Compiling; \
$(MAKE) clean -C $(BMODES)/Source; \
$(MAKE) clean -C $(MODES)/Source; \
$(MAKE) clean -C $(CRUNCH)/Source; \
$(MAKE) clean -C $(TURBSIM)/compiling; \
$(MAKE) clean -C $(IECWIND)/Source/;