Sync netCDF modules with WRF
[WPS.git] / geogrid / util / plotgrid / Makefile
blob8082cbfc3799d41145fca5f6ff4ab3ef954d71ee
1 MAKE = make -i -r
3 default:
4 uname -s | grep AIX; \
5 if [ $$? = 0 ]; then echo "Compiling for IBM"; \
6 ( cd src; \
7 $(MAKE) FC="xlf90_r" CC="cc" FFLAGS="-qfree" CFLAGS="" LDFLAGS="" CPPFLAGS="-D_METGRID -DIO_NETCDF" ) \
8 else \
9 uname -s | grep OSF1; \
10 if [ $$? = 0 ]; then echo "Compiling for DEC"; \
11 ( cd src; \
12 $(MAKE) FC="f90" CC="cc" FFLAGS="" CFLAGS="" LDFLAGS="" CPPFLAGS="-D_METGRID -DIO_NETCDF" ) \
13 else \
14 uname -s | grep IRIX; \
15 if [ $$? = 0 ]; then echo "Compiling for SGI"; \
16 ( cd src; \
17 $(MAKE) FC="f90" CC="cc" FFLAGS="" CFLAGS="" LDFLAGS="" CPPFLAGS="-D_METGRID -DIO_NETCDF" ) \
18 else \
19 uname -s | grep Linux; \
20 if [ $$? = 0 ]; then echo "Compiling for Linux"; \
21 ( cd src; \
22 $(MAKE) WRF_DIR="/users/duda/repos/WRFV3" FC="ncargf90" CC="pgcc" FFLAGS="-Mfree -byteswapio -g -Mbounds" CFLAGS="" LDFLAGS="-g -Mbounds -byteswapio" CPPFLAGS="-D_METGRID -DIO_NETCDF -D_UNDERSCORE" ) \
23 else \
24 uname -s | grep SunOS; \
25 if [ $$? = 0 ]; then echo "Compiling for Sun"; \
26 ( cd src; \
27 $(MAKE) FC="f90" CC="cc" FFLAGS="" CFLAGS="" LDFLAGS="" CPPFLAGS="-D_METGRID -DIO_NETCDF" ) \
28 else \
29 echo "Unrecognized system."; \
30 fi; \
31 fi; \
32 fi; \
33 fi; \
35 rm -f plotgrid.exe ; ln -s src/plotgrid.exe plotgrid.exe
37 clean:
38 ( rm -f plotgrid.exe; cd src ; make clean )
39 clobber:
40 rm -f plotgrid.exe ; (cd src ; make clobber )