source: flex_extract.git/Source/Fortran/makefile_debug2 @ 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# Makefile for flex_extract, Fortran code to calculate etadot
4#
5# Copyright: Leopold Haimberger, Petra Seibert
6# SPDX-License-Identifier: GPL-2.0
7#
8# Version for a machine with grib_api installed on standard paths
9# full debugging
10#
11###############################################################################
12
13
14GRIB_API_INCLUDE_DIR=/usr/include
15GRIB_API_LIB=  -Bstatic  -lgrib_api_f77 -lgrib_api_f90 -lgrib_api -Bdynamic  -lm  -ljasper
16EMOSLIB=-lemosR64
17
18LIB =  $(GRIB_API_LIB) $(EMOSLIB)
19
20F90 = gfortran -m64 -fdefault-real-8 -fcray-pointer -fno-second-underscore -ffixed-line-length-132 -fopenmp -fconvert=big-endian
21
22F90FLAGS =  -I. -I$(GRIB_API_INCLUDE_DIR)
23
24OPT = -g -fbacktrace -fbounds-check
25
26BINDIR   =  .
27EXE      =  calc_etadot_debug.out
28
29.f.o:
30        $(F90) -c $(F90FLAGS) $(OPT) $*.f
31.f90.o:
32        $(F90) -c $(F90FLAGS) $(OPT) $*.f90
33
34all:    ${EXE}
35
36clean:
37        rm *.o *.mod #${EXE}
38
39preconvert.o: preconvert.f90
40        $(F90) -c $(OPT) $(F90FLAGS) preconvert.f90
41       
42phgrreal.o: phgrreal.f
43        $(F90) -c $(OPT)   phgrreal.f
44
45rwGRIB2.o: rwGRIB2.f90
46        $(F90) -c $(OPT) $(F90FLAGS)  rwGRIB2.f90
47
48grphreal.o: grphreal.f
49        $(F90) -c $(OPT)   grphreal.f
50
51ftrafo.o: ftrafo.f
52        $(F90) -c $(OPT)   ftrafo.f
53rpassm.o: rpassm.f
54        $(F90) -c $(OPT)   rpassm.f
55
56$(BINDIR)/${EXE}:       phgrreal.o grphreal.o ftrafo.o rwGRIB2.o  posnam.o preconvert.o rpassm.o
57
58        $(F90) $(OPT) -o $(BINDIR)/${EXE} ftrafo.o phgrreal.o grphreal.o rwGRIB2.o posnam.o preconvert.o rpassm.o ${LIB}
59
60
61###############################################################################
62#
63# End of the Makefile
64#
65###############################################################################
66
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG