source: lmdz_wrf/WRFV3/external/io_pnetcdf/makefile @ 1

Last change on this file since 1 was 1, checked in by lfita, 10 years ago
  • -- --- Opening of the WRF+LMDZ coupling repository --- -- -

WRF: version v3.3
LMDZ: version v1818

More details in:

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.