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-phdf5 with netCDF |
---|
2 | |
---|
3 | OBJSL = wrf-phdf5.o wrf-phdf5attr.o wrf-phdf5support.o |
---|
4 | OBJS = $(OBJSL) |
---|
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 |
---|
9 | LIB =-lm -lz |
---|
10 | CPP = /lib/cpp -C -P $(TRADFLAG) |
---|
11 | M4 = m4 -Uinclude -Uindex -Ulen |
---|
12 | AR = ar |
---|
13 | |
---|
14 | .SUFFIXES: .F90 .f90 .o .code |
---|
15 | |
---|
16 | all : libwrfio_phdf5.a |
---|
17 | |
---|
18 | libwrfio_phdf5.a: $(OBJS) |
---|
19 | /bin/rm -f libwrfio_phdf5.a |
---|
20 | $(AR) cr libwrfio_phdf5.a $(OBJSL) |
---|
21 | $(RANLIB) libwrfio_phdf5.a |
---|
22 | |
---|
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 |
---|
29 | |
---|
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 |
---|
33 | |
---|
34 | clean: |
---|
35 | /bin/rm -f *.f90 *.o *.mod |
---|
36 | |
---|
37 | superclean: clean |
---|
38 | /bin/rm -f libwrfio_phdf5.a |
---|
39 | |
---|
Note: See
TracBrowser
for help on using the repository browser.