Changeset 7cd1586 in flex_extract.git for Source/Fortran/makefile_debug


Ignore:
Timestamp:
Feb 29, 2020, 2:26:20 PM (4 years ago)
Author:
pesei <petra seibert -@…>
Branches:
master, ctbto, dev
Children:
1610f73
Parents:
7e59510
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Source/Fortran/makefile_debug

    rdfa7dbd r7cd1586  
    77# SPDX-License-Identifier: GPL-2.0
    88#
    9 # Version for a machine with grib_api and emoslib installed on standard paths
     9# Version for a machine with eccodes and emoslib installed on standard paths
    1010# full debugging
    1111#
     
    1515EXE      =  calc_etadot_debug.out
    1616
    17 GRIB_API_LIB=  -Bstatic -lgrib_api_f90 -lgrib_api -Bdynamic -lm -ljasper
     17GRIB_API_LIB=  -Bstatic -leccodes_f90 -leccodes -Bdynamic -lm -ljasper
    1818EMOSLIB=-lemosR64
    1919LIB =  $(GRIB_API_LIB) $(EMOSLIB)
    2020
    21 GRIB_API_INCLUDE_DIR=/usr/include
    22 INC = -I. -I$(GRIB_API_INCLUDE_DIR)
     21ECCODES_INCLUDE_DIR=/usr/lib/x86_64-linux-gnu/fortran/gfortran-mod-15
     22INC = -I. -I$(ECCODES_INCLUDE_DIR)
    2323
    2424FC = gfortran
     
    4747        $(FC)  $(FFLAGS)  -c    ./rwgrib2.f90
    4848
    49 clean: -rm -f $(OBJ) ${EXE} $(MOD)
     49clean:
     50        -rm -f $(OBJ) ${EXE} $(MOD) calc_etadot
    5051
    5152${EXE}: $(OBJ)
    5253        $(FC) $(OBJ) -o ${EXE}  $(LDFLAGS)
     54        ln -sf ${EXE} calc_etadot
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG