source: flex_extract.git/Source/Fortran/makefile.local.gfortran @ 2d1c338

ctbtodev
Last change on this file since 2d1c338 was 2d1c338, checked in by Petra Seibert <petra@…>, 5 years ago

1st version of Fortran testing environment, FORDv5->v6, Test->Testing

Includes the first version of the Fortran regression testing environment
without input files (too big)
FORD documentation of the Fortran code: v5 removed from VCS, V6 added
The directory "Test" has been renamed to "Testing" for clarity.

  • Property mode set to 100644
File size: 1.7 KB
Line 
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
14GRIB_API_INCLUDE_DIR=/usr/local/gcc-4.9.3/grib_api-1.14.3/include
15GRIB_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
16
17EMOSLIB=-lemosR64
18
19OPT     = -O3 -fopenmp
20DEBUG   = -O3
21LIB     =  $(GRIB_API_LIB) $(EMOSLIB)
22
23FC=gfortran   -m64 -fdefault-real-8 -fcray-pointer -fno-second-underscore  -ffixed-line-length-132 -fopenmp  -fconvert=big-endian 
24F90C=gfortran   -m64 -fdefault-real-8 -fcray-pointer -fno-second-underscore  -ffixed-line-length-132 -fopenmp  -fconvert=big-endian
25
26FFLAGS =  $(OPT) -I. -I$(GRIB_API_INCLUDE_DIR)
27F90FLAGS =  $(OPT) -I. -I$(GRIB_API_INCLUDE_DIR)
28
29LDFLAGS =  $(OPT)
30
31BINDIR  =      .
32
33EXE     =      CONVERT2
34
35
36.f.o:
37        $(F90C) -c $(F90FLAGS) $(DEBUG) $*.f
38.f90.o:
39        $(F90C) -c $(F90FLAGS) $(DEBUG) $*.f90
40
41all:    ${EXE}
42
43clean:
44        rm *.o *.mod ${EXE}
45
46phgrreal.o: phgrreal.f
47        $(F90C) -c -g -O3 -fopenmp phgrreal.f
48
49grphreal.o: grphreal.f
50        $(F90C) -c -g -O3 -fopenmp grphreal.f
51
52ftrafo.o: ftrafo.f
53        $(F90C) -c -g -O3 -fopenmp ftrafo.f
54
55$(BINDIR)/${EXE}:       phgrreal.o grphreal.o ftrafo.o rwGRIB2.o  posnam.o preconvert.o
56        $(F90C) $(DEBUG) $(OPT) -o $(BINDIR)/${EXE} ftrafo.o phgrreal.o grphreal.o rwGRIB2.o posnam.o preconvert.o ${LIB}
57
58
59###############################################################################
60#
61# End of the Makefile
62#
63###############################################################################
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG