source: trunk/WRF.COMMON/WRFV3/external/io_pnetcdf/makefile @ 2759

Last change on this file since 2759 was 2759, checked in by aslmd, 2 years ago

adding unmodified code from WRFV3.0.1.1, expurged from useless data +1M size

File size: 1.2 KB
Line 
1#makefile to build a wrf_io with netCDF
2
3OBJSL   = wrf_io.o field_routines.o module_wrfsi_static.o
4OBJS    = $(OBJSL)
5CODE    = ext_pnc_get_dom_ti.code ext_pnc_get_var_td.code ext_pnc_get_var_ti.code ext_pnc_put_dom_ti.code ext_pnc_put_var_td.code ext_pnc_put_var_ti.code transpose.code
6FFLAGS  =  $(FCFLAGS) -I$(NETCDFPATH)/include -I../ioapi_share
7LIBS    = -L$(NETCDFPATH)/lib -lnetcdf
8CPP1    = $(CPP) -C -P $(TRADFLAG)
9M4      = m4 -Uinclude -Uindex -Ulen
10AR      = ar
11
12.SUFFIXES:      .F90 .f .o .code
13
14all : libwrfio_pnf.a
15
16libwrfio_pnf.a:         $(OBJS) $(CODE)
17                        /bin/rm -f libwrfio_pnf.a
18                        $(AR) cr libwrfio_pnf.a $(OBJSL)
19                        $(RANLIB) libwrfio_pnf.a
20
21wrf_io.o:               wrf_io.F90 $(CODE)
22                        $(CPP1) -I$(NETCDFPATH)/include -I../ioapi_share wrf_io.F90 | $(M4) - > wrf_io.f
23                        $(FC) $(FFLAGS) -c wrf_io.f
24
25module_wrfsi_static.o:  module_wrfsi_static.F90
26                        $(CPP1) -I$(NETCDFPATH)/include -I../ioapi_share module_wrfsi_static.F90 > module_wrfsi_static.f
27                        $(FC) $(FFLAGS) -c module_wrfsi_static.f
28
29field_routines.o:       field_routines.F90
30                        $(CPP1) -I$(NETCDFPATH)/include -I../ioapi_share field_routines.F90 > field_routines.f
31                        $(FC) $(FFLAGS) -c field_routines.f
32
33superclean:
34                        /bin/rm -f *.f *.o testWRFWrite testWRFRead \
35                        *.mod libwrfio_pnf.a
Note: See TracBrowser for help on using the repository browser.