source: flex_extract.git/Source/Fortran/makefile_debug @ 4f24798

dev
Last change on this file since 4f24798 was 4f24798, checked in by Anne Tipka <anne.tipka@…>, 22 months ago

elimination of emoslib in fortran code. See ticket #312

  • Property mode set to 100644
File size: 1.6 KB
Line 
1###############################################################################
2#
3# Makefile for flex_extract, Fortran code to calculate etadot
4# Makefile created using by mkmf 19.3.0
5#
6# Copyright: Leopold Haimberger, Petra Seibert
7# SPDX-License-Identifier: GPL-2.0
8#
9# Version for a machine with eccodes and emoslib installed on standard paths
10# full debugging
11#
12###############################################################################
13
14
15EXE      =  calc_etadot_debug.out
16
17ECCODES_LIB=  -Bstatic -leccodes_f90 -leccodes -Bdynamic -lm
18LIB =  $(ECCODES_LIB)
19
20ECCODES_INCLUDE_DIR=/usr/lib/x86_64-linux-gnu/fortran/gfortran-mod-15
21INC = -I. -I$(ECCODES_INCLUDE_DIR)
22
23FC = gfortran
24OPT = -g -Og -fbacktrace -fcheck=all
25FFLAGS =   $(OPT) $(LIB) $(INC) -fdefault-real-8 -fopenmp -fconvert=big-endian
26LDFLAGS =  $(OPT) $(LIB) -fopenmp
27SRC = ./rwgrib2.f90 ./calc_etadot.f90 ./ftrafo.f90 ./grphreal.f90 ./posnam.f90 ./phgrreal.f90
28OBJ = rwgrib2.o calc_etadot.o ftrafo.o grphreal.o posnam.o phgrreal.o
29MOD = ftrafo.mod  grtoph.mod    phtogr.mod  rwgrib2.mod
30
31.DEFAULT:
32        -echo $@ does not exist.
33
34all: ${EXE}
35ftrafo.o: ./ftrafo.f90 phgrreal.o
36        $(FC)  $(FFLAGS)  -c    ./ftrafo.f90
37grphreal.o: ./grphreal.f90 phgrreal.o
38        $(FC)  $(FFLAGS)  -c    ./grphreal.f90
39phgrreal.o: ./phgrreal.f90
40        $(FC)  $(FFLAGS)  -c    ./phgrreal.f90
41posnam.o: ./posnam.f90
42        $(FC)  $(FFLAGS)  -c    ./posnam.f90
43calc_etadot.o: ./calc_etadot.f90 phgrreal.o grphreal.o ftrafo.o rwgrib2.o
44        $(FC)  $(FFLAGS)  -c    ./calc_etadot.f90
45rwgrib2.o: ./rwgrib2.f90
46        $(FC)  $(FFLAGS)  -c    ./rwgrib2.f90
47
48clean:
49        -rm -f $(OBJ) ${EXE} $(MOD) calc_etadot
50
51${EXE}: $(OBJ)
52        $(FC) $(OBJ) -o ${EXE}  $(LDFLAGS)
53        ln -sf ${EXE} calc_etadot
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG