Merge remote-tracking branch 'origin/release-v4.5'
[WRF.git] / hydro / Routing / Makefile
blob9360cbb2d17ba3912dcd6514e4298a82cc34668c
1 # Makefile
3 .SUFFIXES:
4 .SUFFIXES: .o .F
6 include ../macros
8 OBJS = \
9 module_date_utilities_rt.o \
10 module_UDMAP.o \
11 module_HYDRO_utils.o \
12 module_noah_chan_param_init_rt.o \
13 module_GW_baseflow.o \
14 module_gw_gw2d.o \
15 module_HYDRO_io.o \
16 module_RT.o \
17 Noah_distr_routing.o \
18 Noah_distr_routing_overland.o \
19 Noah_distr_routing_subsurface.o \
20 module_channel_routing.o \
21 module_lsm_forcing.o \
22 module_date_utilities_rt.o \
23 module_NWM_io_dict.o \
24 module_NWM_io.o \
25 module_reservoir_routing.o
27 all: $(OBJS)
29 #module_RT.o: module_RT.F
30 # @echo ""
31 # $(CPP) $(CPPFLAGS) $(*).F > $(*).f
32 # $(COMPILER90) -o $(@) $(F90FLAGS) $(MODFLAG) $(*).f
33 # $(RMD) $(*).f
34 # @echo ""
35 # cp *.mod ../mod
37 .F.o:
38 @echo "Routing Makefile:"
39 $(COMPILER90) $(CPPINVOKE) $(CPPFLAGS) -o $(@) $(F90FLAGS) $(LDFLAGS) $(MODFLAG) -I$(NETCDFINC) $(*).F
40 @echo ""
41 ar -r ../lib/libHYDRO.a $(@)
42 cp *.mod ../mod
45 # Dependencies:
47 module_gw_gw2d.o: ../Data_Rec/module_gw_gw2d_data.o module_HYDRO_io.o
49 ifneq ($(WRF_HYDRO_NUDGING),-DWRF_HYDRO_NUDGING)
50 module_HYDRO_io.o: module_HYDRO_utils.o \
51 module_date_utilities_rt.o \
52 ../Data_Rec/module_namelist.o \
53 ../Data_Rec/module_RT_data.o
54 else
55 module_HYDRO_io.o: module_HYDRO_utils.o \
56 module_date_utilities_rt.o \
57 ../nudging/module_date_utils_nudging.o \
58 ../nudging/module_nudging_io.o \
59 ../Data_Rec/module_namelist.o \
60 ../Data_Rec/module_RT_data.o
61 endif
63 module_NWM_io_dict: ../Data_Rec/module_namelist.o ../utils/module_version.o
65 module_NWM_io: module_HYDRO_utils.o \
66 module_NWM_io_dict.o \
67 module_HYDRO_io.o \
68 module_date_utilities_rt.o \
69 ../OrchestratorLayer/orchestrator.o \
70 ../Data_Rec/module_namelist.o \
71 ../Data_Rec/module_RT_data.o \
72 ../utils/module_version.o
74 module_reservoir_routing: ../Data_Rec/module_namelist.o
76 module_HYDRO_utils.o: ../Data_Rec/module_namelist.o ../Data_Rec/module_RT_data.o
78 module_lsm_forcing.o: module_HYDRO_io.o
80 ifneq ($(WRF_HYDRO_NUDGING),-DWRF_HYDRO_NUDGING)
81 module_RT.o: module_GW_baseflow.o \
82 module_HYDRO_utils.o \
83 module_HYDRO_io.o \
84 module_noah_chan_param_init_rt.o \
85 module_UDMAP.o \
86 ../Data_Rec/module_namelist.o \
87 ../Data_Rec/module_RT_data.o \
88 ../Data_Rec/module_gw_gw2d_data.o
89 else
90 module_RT.o: module_GW_baseflow.o \
91 module_HYDRO_utils.o \
92 module_HYDRO_io.o \
93 module_noah_chan_param_init_rt.o \
94 module_UDMAP.o \
95 ../Data_Rec/module_namelist.o \
96 ../Data_Rec/module_RT_data.o \
97 ../Data_Rec/module_gw_gw2d_data.o \
98 ../nudging/module_date_utils_nudging.o \
99 ../nudging/module_nudging_io.o
100 endif
102 module_UDMAP.o: ../Data_Rec/module_namelist.o ../Data_Rec/module_RT_data.o
104 ifneq ($(WRF_HYDRO_NUDGING),-DWRF_HYDRO_NUDGING)
105 module_channel_routing.o: module_UDMAP.o
106 else
107 module_channel_routing.o: module_UDMAP.o\
108 ../nudging/module_date_utils_nudging.o \
109 ../nudging/module_nudging_utils.o \
110 ../nudging/module_stream_nudging.o
111 endif
113 clean:
114 rm -f *.o *.mod *.stb *~