1 #makefile to build a wrf_io with ADIOS2
3 OBJSL
= wrf_io.o field_routines.o
5 CODE
= ext_adios2_get_dom_ti.code \
6 ext_adios2_get_var_td.code \
7 ext_adios2_get_var_ti.code \
8 ext_adios2_put_dom_ti.code \
9 ext_adios2_put_var_td.code \
10 ext_adios2_put_var_ti.code \
13 FFLAGS
= $(FCFLAGS
) -I
$(ADIOS2
)/include/adios2
/fortran
-I..
/ioapi_share
14 CPP1
= $(CPP
) -P
$(TRADFLAG
)
15 M4
= m4
-Uinclude
-Uindex
-Ulen
18 .SUFFIXES
: .F90 .f .o .code
20 all : libwrfio_adios2.a
22 libwrfio_adios2.a
: $(OBJS
) $(CODE
)
23 /bin
/rm -f libwrfio_adios2.a
24 $(AR
) cr libwrfio_adios2.a
$(OBJSL
)
25 $(RANLIB
) libwrfio_adios2.a
27 wrf_io.o
: wrf_io.F90
$(CODE
)
28 $(CPP1
) -I
$(ADIOS2
)/include/adios2
/fortran
-I..
/ioapi_share wrf_io.F90 |
$(M4
) - > wrf_io.f
29 $(FC
) $(FFLAGS
) -c wrf_io.f
31 field_routines.o
: field_routines.F90 wrf_io.o
32 $(CPP1
) -I
$(ADIOS2
)/include/adios2
/fortran
-I..
/ioapi_share field_routines.F90
> field_routines.f
33 $(FC
) $(FFLAGS
) -c field_routines.f
36 @
/bin
/rm -f
*.f
*.o
*.mod
*.smod libwrfio_adios2.a