1 # WPS component makefile
3 include ..
/configure.wps
9 @echo
"go up a directory and type 'compile' to build WPS"
14 @if
[ -e
$(WRF_DIR_PRE
)$(WRF_DIR
)/frame
/module_internal_header_util.o
] ; then \
16 if
[ "$(COMPILING_ON_CYGWIN_NT)" = yes
] ; then \
17 WRF_DIR2
=$(WRF_DIR
) ; \
19 WRF_DIR2
=$(WRF_DIR_PRE
)$(WRF_DIR
) ; \
22 WRF_DIR
="$$WRF_DIR2" \
28 LDFLAGS
="$(LDFLAGS)" \
29 CPPFLAGS
="$(CPPFLAGS) -D_$(CPP_TARGET)" ) ; \
30 if
[ -e
$(TARGET
) ] ; then \
33 if
[ -e ..
/$(TARGET
) ] ; then \
34 $(RM
) ..
/$(TARGET
) ; \
36 if
[ -e src
/$(TARGET
) ] ; then \
37 $(LN
) src
/$(TARGET
) .
; \
41 echo
" ***************************************************************************************" ; \
42 echo
" Error : Not building metgrid. Check whether WRF is compiled in $(WRF_DIR_PRE)$(WRF_DIR)" ; \
43 echo
" ***************************************************************************************" ; \
48 if
[ -e
$(TARGET
) ] ; then \
51 if
[ -e ..
/$(TARGET
) ] ; then \
52 $(RM
) ..
/$(TARGET
) ; \
54 ( cd src
; $(MAKE
) clean )