source: flex_extract.git/source/fortran/Makefile.gfortran @ 7f89fb3

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

substituted grib_api libs with eccodes

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