Last change
on this file was
2762,
checked in by aslmd, 3 years ago
|
M Lefevre: option -C makes things bad in some OS (was done previously in LMD_LES_mars_install
|
File size:
1.2 KB
|
Rev | Line | |
---|
[2759] | 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 |
---|
[2762] | 8 | CPP1 = $(CPP) -P $(TRADFLAG) |
---|
[2759] | 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.