source: flex_extract.git/Source/Fortran/makefile_debug @ 7cd1586

ctbtodev
Last change on this file since 7cd1586 was 7cd1586, checked in by pesei <petra seibert -@…>, 4 years ago

Update makefiles to use eccodes instead of grib_api
Adapt makefile_ecgate so that the lib and inc paths are taken from env variables
Make linke from exe file to standard exe calc_etadot
Adapt makefile_cray, but this needs still to be tested

  • Property mode set to 100644
File size: 1.7 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
17GRIB_API_LIB=  -Bstatic -leccodes_f90 -leccodes -Bdynamic -lm -ljasper
18EMOSLIB=-lemosR64
19LIB =  $(GRIB_API_LIB) $(EMOSLIB)
20
21ECCODES_INCLUDE_DIR=/usr/lib/x86_64-linux-gnu/fortran/gfortran-mod-15
22INC = -I. -I$(ECCODES_INCLUDE_DIR)
23
24FC = gfortran
25OPT = -g -Og -fbacktrace -fcheck=all
26FFLAGS =   $(OPT) $(LIB) $(INC) -fdefault-real-8 -fopenmp -fconvert=big-endian
27LDFLAGS =  $(OPT) $(LIB) -fopenmp
28SRC = ./rwgrib2.f90 ./calc_etadot.f90 ./ftrafo.f90 ./grphreal.f90 ./posnam.f90 ./phgrreal.f90
29OBJ = rwgrib2.o calc_etadot.o ftrafo.o grphreal.o posnam.o phgrreal.o
30MOD = ftrafo.mod  grtoph.mod    phtogr.mod  rwgrib2.mod
31
32.DEFAULT:
33        -echo $@ does not exist.
34
35all: ${EXE}
36ftrafo.o: ./ftrafo.f90 phgrreal.o
37        $(FC)  $(FFLAGS)  -c    ./ftrafo.f90
38grphreal.o: ./grphreal.f90 phgrreal.o
39        $(FC)  $(FFLAGS)  -c    ./grphreal.f90
40phgrreal.o: ./phgrreal.f90
41        $(FC)  $(FFLAGS)  -c    ./phgrreal.f90
42posnam.o: ./posnam.f90
43        $(FC)  $(FFLAGS)  -c    ./posnam.f90
44calc_etadot.o: ./calc_etadot.f90 phgrreal.o grphreal.o ftrafo.o rwgrib2.o
45        $(FC)  $(FFLAGS)  -c    ./calc_etadot.f90
46rwgrib2.o: ./rwgrib2.f90
47        $(FC)  $(FFLAGS)  -c    ./rwgrib2.f90
48
49clean:
50        -rm -f $(OBJ) ${EXE} $(MOD) calc_etadot
51
52${EXE}: $(OBJ)
53        $(FC) $(OBJ) -o ${EXE}  $(LDFLAGS)
54        ln -sf ${EXE} calc_etadot
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG