source: lmdz_wrf/trunk/WRFV3/external/io_phdf5/Makefile @ 354

Last change on this file since 354 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-phdf5 with netCDF
2
3OBJSL   = wrf-phdf5.o wrf-phdf5attr.o wrf-phdf5support.o
4OBJS    = $(OBJSL)
5OPTS    = -bmaxdata:0x80000000
6FFLAGS  =  $(OPTS) -I$(PHDF5PATH)/lib -I../ioapi_share
7FORTRANLIB=-I$(PHDF5PATH)/lib $(PHDF5PATH)/lib/libhdf5_fortran.a
8LIBSHDF = $(FORTRANLIB) $(PHDF5PATH)/lib/libhdf5.a
9LIB     =-lm -lz
10CPP     = /lib/cpp -C -P $(TRADFLAG)
11M4      = m4 -Uinclude -Uindex -Ulen
12AR      = ar
13
14.SUFFIXES:      .F90 .f90 .o .code
15
16all : libwrfio_phdf5.a
17
18libwrfio_phdf5.a:               $(OBJS)
19                        /bin/rm -f libwrfio_phdf5.a
20                        $(AR) cr libwrfio_phdf5.a $(OBJSL)
21                        $(RANLIB) libwrfio_phdf5.a
22
23wrf-phdf5support.o:      wrf-phdf5support.F90
24                        $(CPP) -I../ioapi_share wrf-phdf5support.F90 | $(M4) - > wrf-phdf5support.f90
25                        $(FC) $(FFLAGS) -c wrf-phdf5support.f90
26wrf-phdf5attr.o:         wrf-phdf5attr.F90 wrf-phdf5support.o
27                        $(CPP) wrf-phdf5attr.F90 | $(M4) - > wrf-phdf5attr.f90
28                        $(FC) $(FFLAGS) -c wrf-phdf5attr.f90
29
30wrf-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
33
34clean:
35        /bin/rm -f *.f90 *.o *.mod
36
37superclean: clean
38        /bin/rm -f libwrfio_phdf5.a
39
Note: See TracBrowser for help on using the repository browser.