source: flex_extract.git/Source/Fortran/makefile.ecgate @ 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.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     = -O3
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)
21
22F90FLAGS =  $(OPT) -I. -I$(ECCODES_INCLUDE_DIR)
23
24LDFLAGS =  $(OPT)
25
26BINDIR  =      .
27
28EXE     =      CONVERT2
29
30
31.f.o:
32        $(F90C) -c $(F90FLAGS) $(DEBUG) $*.f
33.f90.o:
34        $(F90C) -c $(F90FLAGS) $(DEBUG) $*.f90
35
36all:    ${EXE}
37
38clean:
39        rm *.o *.mod ${EXE}
40
41phgrreal.o: phgrreal.f
42        $(F90C) -c -g -O3 -fopenmp phgrreal.f
43
44grphreal.o: grphreal.f
45        $(F90C) -c -g -O3 -fopenmp grphreal.f
46
47ftrafo.o: ftrafo.f
48        $(F90C) -c -g -O3 -fopenmp ftrafo.f
49
50$(BINDIR)/${EXE}:       phgrreal.o grphreal.o ftrafo.o rwGRIB2.o  posnam.o preconvert.o
51        $(F90C) $(DEBUG) $(OPT) -o $(BINDIR)/${EXE} ftrafo.o phgrreal.o grphreal.o rwGRIB2.o posnam.o preconvert.o ${LIB}
52
53
54###############################################################################
55#
56# End of the Makefile
57#
58###############################################################################
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG