Merge remote-tracking branch 'origin/release-v4.6.1'
[WRF.git] / hydro / utils / Makefile
blob6110454da709b36e185647db86b79a1c898574cb
1 # Makefile
3 .SUFFIXES: .o .F90
5 include ../macros
7 wh_version := $(shell cat ../.version)
8 WRF_HYDRO_VERSION=\"$(wh_version)\"
10 nwm_version := $(shell cat ../.nwm_version)
11 NWM_VERSION=\"$(nwm_version)\"
13 F90FLAGS += -DNWM_VERSION=$(NWM_VERSION) -DWRF_HYDRO_VERSION=$(WRF_HYDRO_VERSION)
15 OBJS = \
16 module_version.o \
17 module_hydro_stop.o
19 all: $(OBJS)
21 ## The insertion of compile-time constants strangely requires the capital F in the extension.
22 .F90.o:
23 @echo "Utils Makefile:"
24 $(COMPILER90) $(CPPINVOKE) $(CPPFLAGS) -o $(@) $(F90FLAGS) $(LDFLAGS) $(MODFLAG) -I$(NETCDFINC) $(*).F90
25 @echo ""
26 ar -r ../lib/libHYDRO.a $(@)
27 cp *.mod ../mod
30 # Dependencies:
33 clean:
34 rm -f *.o *.mod *.stb *~