Merge remote-tracking branch 'origin/release-v4.6.1'
[WRF.git] / hydro / Routing / Reservoirs / Makefile
blob21c10096a013148f90942fbf5d4a0fa85053e26e
2 include ../../macros
4 MODFLAG := $(MODFLAG) -I ../../mod
6 %.o : %.F90
7 $(COMPILER90) $(F90FLAGS) $(LDFLAGS) $(MODFLAG) -I$(NETCDFINC) $<
9 .PHONY: all mod test
11 all: mod
13 ../../MPP/mpp_land.mod:
14 make -C ../../MPP
16 ../../utils/module_hydro_stop.mod:
17 make -C ../../utils
19 mod: ../../MPP/module_mpp_land.mod ../../utils/module_hydro_stop.mod
20 #Build each sub module then build the module that depends on all sub modules
21 $(COMPILER90) $(F90FLAGS) $(LDFLAGS) $(MODFLAG) -I$(NETCDFINC) module_reservoir_utilities.F90
22 $(COMPILER90) $(F90FLAGS) $(LDFLAGS) $(MODFLAG) -I$(NETCDFINC) module_reservoir.F90
23 $(COMPILER90) $(F90FLAGS) $(LDFLAGS) $(MODFLAG) -I$(NETCDFINC) module_reservoir_read_timeslice_data.F90
24 $(COMPILER90) $(F90FLAGS) $(LDFLAGS) $(MODFLAG) -I$(NETCDFINC) module_reservoir_read_rfc_time_series_data.F90
26 ar -r ../../lib/libHYDRO.a module_reservoir_utilities.o
27 ar -r ../../lib/libHYDRO.a module_reservoir.o
28 ar -r ../../lib/libHYDRO.a module_reservoir_read_timeslice_data.o
29 ar -r ../../lib/libHYDRO.a module_reservoir_read_rfc_time_series_data.o
31 cp *.mod ../../mod
33 #Build the modules
34 make -C Level_Pool
35 make -C Persistence_Level_Pool_Hybrid
36 make -C RFC_Forecasts
39 test: ../../MPP/module_mpp_land.mod ../../utils/module_hydro_stop.mod
40 $(COMPILER90) $(F90FLAGS) $(LDFLAGS) $(MODFLAG) -I$(NETCDFINC) module_reservoir_utilities.F90
41 $(COMPILER90) $(F90FLAGS) $(LDFLAGS) $(MODFLAG) -I$(NETCDFINC) module_reservoir.F90
42 $(COMPILER90) $(F90FLAGS) $(LDFLAGS) $(MODFLAG) -I$(NETCDFINC) module_reservoir_read_timeslice_data.F90
43 $(COMPILER90) $(F90FLAGS) $(LDFLAGS) $(MODFLAG) -I$(NETCDFINC) module_reservoir_read_rfc_time_series_data.F90
46 make -C Level_Pool
47 make -C Persistence_Level_Pool_Hybrid
48 make -C RFC_Forecasts
50 $(COMPILER90) $(F90FLAGS) $(LDFLAGS) $(MODFLAG) -I$(NETCDFINC) reservoir_tests.F90
53 $(COMPILER90) $(NETCDFLIB) -o reservoir_tests \
54 ../../MPP/mpp_land.o \
55 ../../MPP/CPL_WRF.o \
56 ../../utils/module_hydro_stop.o \
57 module_reservoir_utilities.o \
58 module_reservoir.o \
59 module_reservoir_read_timeslice_data.o \
60 module_reservoir_read_rfc_time_series_data.o \
61 Level_Pool/module_levelpool_properties.o \
62 Level_Pool/module_levelpool_state.o \
63 Level_Pool/module_levelpool_tests.o \
64 Level_Pool/module_levelpool.o \
65 Persistence_Level_Pool_Hybrid/module_persistence_levelpool_hybrid_properties.o \
66 Persistence_Level_Pool_Hybrid/module_persistence_levelpool_hybrid_state.o \
67 Persistence_Level_Pool_Hybrid/module_persistence_levelpool_hybrid_tests.o \
68 Persistence_Level_Pool_Hybrid/module_persistence_levelpool_hybrid.o \
69 RFC_Forecasts/module_rfc_forecasts_properties.o \
70 RFC_Forecasts/module_rfc_forecasts_state.o \
71 RFC_Forecasts/module_rfc_forecasts_tests.o \
72 RFC_Forecasts/module_rfc_forecasts.o \
73 reservoir_tests.o
76 clean:
77 rm -f *.o
78 rm -f *.mod
79 rm -f reservoir_tests
81 make -C Level_Pool clean
82 make -C Persistence_Level_Pool_Hybrid clean
83 make -C RFC_Forecasts clean