source: flex_extract.git/source/fortran/Makefile.local.gfortran @ 1244a7b

ctbtodev
Last change on this file since 1244a7b was 1244a7b, checked in by Anne Philipp <anne.philipp@…>, 5 years ago

updated fortran program Makefiles

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