[2fb99de] | 1 | ############################################################################### |
---|
| 2 | # |
---|
| 3 | # Top level Makefile for ECMWFDATA7.0 software |
---|
| 4 | # |
---|
| 5 | # Last modified: December 1, 2015 |
---|
| 6 | # |
---|
| 7 | ############################################################################### |
---|
| 8 | |
---|
| 9 | |
---|
| 10 | .SUFFIXES: .o .c .c~ .f .f~ .F90 .f90 .f90~ .f95 .f95~ .F .F~ .y .y~ .l .l~ \ |
---|
| 11 | .s .s~ .sh .sh~ .h .h~ .C .C~ .a |
---|
| 12 | |
---|
| 13 | |
---|
[1244a7b] | 14 | GRIB_API_INCLUDE_DIR=/usr/local/gcc-4.9.3/grib_api-1.14.3/include |
---|
[c97d8ec] | 15 | GRIB_API_LIB= -L/usr/local/gcc-4.9.3/grib_api-1.14.3/lib -Bstatic -lgrib_api_f77 -lgrib_api_f90 -lgrib_api -Bdynamic -lm -ljasper |
---|
[40408cb] | 16 | |
---|
[c97d8ec] | 17 | #GRIB_API_INCLUDE_DIR=/home/srvx1/tmc/TestEnv/Libraries/eccodes-2.6.0_ifort/include |
---|
| 18 | #GRIB_API_LIB=-L/home/srvx1/tmc/TestEnv/Libraries/eccodes-2.6.0_ifort/lib -Bstatic -leccodes_f90 -leccodes -Bdynamic -lm -ljasper -openmp |
---|
[40408cb] | 19 | |
---|
| 20 | |
---|
[2fb99de] | 21 | EMOSLIB=-lemosR64 |
---|
| 22 | |
---|
| 23 | OPT = -g -O3 -fopenmp |
---|
| 24 | DEBUG = -g |
---|
| 25 | LIB = $(GRIB_API_LIB) $(EMOSLIB) |
---|
| 26 | |
---|
| 27 | FC=gfortran -m64 -fdefault-real-8 -fcray-pointer -fno-second-underscore -ffixed-line-length-132 -fopenmp -fconvert=big-endian |
---|
| 28 | F90C=gfortran -m64 -fdefault-real-8 -fcray-pointer -fno-second-underscore -ffixed-line-length-132 -fopenmp -fconvert=big-endian |
---|
| 29 | |
---|
| 30 | FFLAGS = $(OPT) -I. -I$(GRIB_API_INCLUDE_DIR) |
---|
| 31 | F90FLAGS = $(OPT) -I. -I$(GRIB_API_INCLUDE_DIR) |
---|
| 32 | |
---|
| 33 | LDFLAGS = $(OPT) |
---|
| 34 | |
---|
| 35 | BINDIR = . |
---|
| 36 | |
---|
| 37 | EXE = CONVERT2 |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | .f.o: |
---|
| 41 | $(F90C) -c $(F90FLAGS) $(DEBUG) $*.f |
---|
| 42 | .f90.o: |
---|
| 43 | $(F90C) -c $(F90FLAGS) $(DEBUG) $*.f90 |
---|
| 44 | |
---|
| 45 | all: ${EXE} |
---|
| 46 | |
---|
| 47 | clean: |
---|
[1244a7b] | 48 | rm *.o *.mod ${EXE} |
---|
[2fb99de] | 49 | |
---|
| 50 | phgrreal.o: phgrreal.f |
---|
| 51 | $(F90C) -c -g -O3 -fopenmp phgrreal.f |
---|
| 52 | |
---|
| 53 | grphreal.o: grphreal.f |
---|
| 54 | $(F90C) -c -g -O3 -fopenmp grphreal.f |
---|
| 55 | |
---|
| 56 | ftrafo.o: ftrafo.f |
---|
| 57 | $(F90C) -c -g -O3 -fopenmp ftrafo.f |
---|
| 58 | |
---|
[1244a7b] | 59 | $(BINDIR)/${EXE}: phgrreal.o grphreal.o ftrafo.o rwGRIB2.o posnam.o preconvert.o |
---|
| 60 | $(F90C) $(DEBUG) $(OPT) -o $(BINDIR)/${EXE} ftrafo.o phgrreal.o grphreal.o rwGRIB2.o posnam.o preconvert.o ${LIB} |
---|
[2fb99de] | 61 | |
---|
| 62 | |
---|
| 63 | ############################################################################### |
---|
| 64 | # |
---|
| 65 | # End of the Makefile |
---|
| 66 | # |
---|
| 67 | ############################################################################### |
---|