Merge branch 'release-v4.6.0'
[WPS.git] / geogrid / Makefile
blob7b759204c90b084a0b7cb687c97587d745c267d7
1 # WPS component makefile
3 include ../configure.wps
5 bad_idea:
6 clear ;
7 @echo " "
8 @echo " "
9 @echo "go up a directory and type 'compile' to build WPS"
10 @echo " "
11 @echo " "
13 all:
14 @if [ -e $(WRF_DIR_PRE)$(WRF_DIR)/frame/module_internal_header_util.o ] ; then \
15 ( cd src ; \
16 if [ "$(COMPILING_ON_CYGWIN_NT)" = yes ] ; then \
17 WRF_DIR2=$(WRF_DIR) ; \
18 else \
19 WRF_DIR2=$(WRF_DIR_PRE)$(WRF_DIR) ; \
20 fi ; \
21 $(MAKE) $(TARGET) \
22 WRF_DIR="$$WRF_DIR2" \
23 FC="$(FC)" \
24 CC="$(CC)" \
25 CPP="$(CPP)" \
26 FFLAGS="$(FFLAGS)" \
27 CFLAGS="$(CFLAGS)" \
28 LDFLAGS="$(LDFLAGS)" \
29 CPPFLAGS="$(CPPFLAGS) -D_$(CPP_TARGET)" ) ; \
30 if [ -e $(TARGET) ] ; then \
31 $(RM) $(TARGET) ; \
32 fi ; \
33 if [ -e ../$(TARGET) ] ; then \
34 $(RM) ../$(TARGET) ; \
35 fi ; \
36 if [ -e src/$(TARGET) ] ; then \
37 $(LN) src/$(TARGET) . ; \
38 fi ; \
39 else \
40 echo " " ; \
41 echo " ***************************************************************************************" ; \
42 echo " Error : Not building geogrid. Check whether WRF is compiled in $(WRF_DIR_PRE)$(WRF_DIR)" ; \
43 echo " ***************************************************************************************" ; \
44 echo " " ; \
47 clean:
48 if [ -e $(TARGET) ] ; then \
49 $(RM) $(TARGET) ; \
51 if [ -e ../$(TARGET) ] ; then \
52 $(RM) ../$(TARGET) ; \
54 ( cd src ; $(MAKE) clean )
56 superclean: clean