updated top-level README and version_decl for V4.4.2 (#1795)
[WRF.git] / external / io_pnetcdf / Makefile
blobf7d1d3653637d4c8f3b6b81a3fe02d432b56b2ad
1 #makefile to build a wrf_io with pnetCDF
3 OBJSL = wrf_io.o field_routines.o module_wrfsi_static.o
4 OBJS = $(OBJSL)
5 CODE = ext_pnc_get_dom_ti.code \
6 ext_pnc_get_var_td.code \
7 ext_pnc_get_var_ti.code \
8 ext_pnc_put_dom_ti.code \
9 ext_pnc_put_var_td.code \
10 ext_pnc_put_var_ti.code \
11 transpose.code
12 FFLAGS = $(FCFLAGS) -I$(NETCDFPATH)/include -I../ioapi_share
13 LIBS = -L$(NETCDFPATH)/lib -lpnetcdf
14 CPP1 = $(CPP) -P $(TRADFLAG)
15 M4 = m4 -Uinclude -Uindex -Ulen
16 AR = ar
18 .SUFFIXES: .F90 .f .o .code
20 all : libwrfio_pnf.a
22 libwrfio_pnf.a: $(OBJS) $(CODE)
23 /bin/rm -f libwrfio_pnf.a
24 $(AR) cr libwrfio_pnf.a $(OBJSL)
25 $(RANLIB) libwrfio_pnf.a
27 wrf_io.o: wrf_io.F90 $(CODE)
28 $(CPP1) -I$(NETCDFPATH)/include -I../ioapi_share wrf_io.F90 | $(M4) - > wrf_io.f
29 $(FC) $(FFLAGS) -c wrf_io.f
31 module_wrfsi_static.o: module_wrfsi_static.F90
32 $(CPP1) -I$(NETCDFPATH)/include -I../ioapi_share module_wrfsi_static.F90 > module_wrfsi_static.f
33 $(FC) $(FFLAGS) -c module_wrfsi_static.f
35 field_routines.o: field_routines.F90 wrf_io.o
36 $(CPP1) -I$(NETCDFPATH)/include -I../ioapi_share field_routines.F90 > field_routines.f
37 $(FC) $(FFLAGS) -c field_routines.f
39 superclean:
40 @/bin/rm -f *.f *.o testWRFWrite testWRFRead \
41 *.mod libwrfio_pnf.a