1 #makefile to build a wrf-phdf5 with netCDF
3 OBJSL
= wrf-phdf5.o wrf-phdf5attr.o wrf-phdf5support.o
5 OPTS
= -bmaxdata
:0x80000000
6 FFLAGS
= $(OPTS
) -I
$(PHDF5PATH
)/lib
-I..
/ioapi_share
7 FORTRANLIB
=-I
$(PHDF5PATH
)/lib
$(PHDF5PATH
)/lib
/libhdf5_fortran.a
8 LIBSHDF
= $(FORTRANLIB
) $(PHDF5PATH
)/lib
/libhdf5.a
10 CPP
= /lib
/cpp -P
$(TRADFLAG
)
11 M4
= m4
-Uinclude
-Uindex
-Ulen
14 .SUFFIXES
: .F90 .f90 .o .code
16 all : libwrfio_phdf5.a
18 libwrfio_phdf5.a
: $(OBJS
)
19 /bin
/rm -f libwrfio_phdf5.a
20 $(AR
) cr libwrfio_phdf5.a
$(OBJSL
)
21 $(RANLIB
) libwrfio_phdf5.a
23 wrf-phdf5support.o
: wrf-phdf5support.F90
24 $(CPP
) -I..
/ioapi_share wrf-phdf5support.F90 |
$(M4
) - > wrf-phdf5support.f90
25 $(FC
) $(FFLAGS
) -c wrf-phdf5support.f90
26 wrf-phdf5attr.o
: wrf-phdf5attr.F90 wrf-phdf5support.o
27 $(CPP
) wrf-phdf5attr.F90 |
$(M4
) - > wrf-phdf5attr.f90
28 $(FC
) $(FFLAGS
) -c wrf-phdf5attr.f90
30 wrf-phdf5.o
: wrf-phdf5.F90 wrf-phdf5attr.o wrf-phdf5support.o
31 $(CPP
) wrf-phdf5.F90 |
$(M4
) - > wrf-phdf5.f90
32 $(FC
) $(FFLAGS
) -c wrf-phdf5.f90
35 @
/bin
/rm -f
*.f90
*.o
*.mod
38 @
/bin
/rm -f libwrfio_phdf5.a