source: flex_extract.git/source/fortran/Makefile.gfortran @ c97d8ec

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

new compilation and adaptations on CONTROL files for CERA (NUMBER parameter has to be set to a number (0))

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