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 | |
---|
3 | OBJSL = wrf_io.o field_routines.o module_wrfsi_static.o |
---|
4 | OBJS = $(OBJSL) |
---|
5 | CODE = 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 |
---|
6 | FFLAGS = $(FCFLAGS) -I$(NETCDFPATH)/include -I../ioapi_share |
---|
7 | LIBS = -L$(NETCDFPATH)/lib -lnetcdf |
---|
8 | CPP1 = $(CPP) -C -P $(TRADFLAG) |
---|
9 | M4 = m4 -Uinclude -Uindex -Ulen |
---|
10 | AR = ar |
---|
11 | |
---|
12 | .SUFFIXES: .F90 .f .o .code |
---|
13 | |
---|
14 | all : libwrfio_pnf.a |
---|
15 | |
---|
16 | libwrfio_pnf.a: $(OBJS) $(CODE) |
---|
17 | /bin/rm -f libwrfio_pnf.a |
---|
18 | $(AR) cr libwrfio_pnf.a $(OBJSL) |
---|
19 | $(RANLIB) libwrfio_pnf.a |
---|
20 | |
---|
21 | wrf_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 | |
---|
25 | module_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 | |
---|
29 | field_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 | |
---|
33 | superclean: |
---|
34 | /bin/rm -f *.f *.o testWRFWrite testWRFRead \ |
---|
35 | *.mod libwrfio_pnf.a |
---|
Note: See
TracBrowser
for help on using the repository browser.