source: flex_extract.git/Source/Fortran/makefile_fast @ deb7d17

ctbtodev
Last change on this file since deb7d17 was deb7d17, checked in by Anne Philipp <anne.philipp@…>, 4 years ago

changed from gribapi to eccodes for local makefile

  • 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 grib_api and emoslib installed on standard paths
10# full debugging
11#
12###############################################################################
13
14
15EXE      =  calc_etadot
16
17#GRIB_API_LIB=  -Bstatic -lgrib_api_f90 -lgrib_api -Bdynamic -lm -ljasper
18ECCODES_LIB= -L/usr/local/lib -leccodes_f90 -leccodes -lm
19EMOSLIB=-lemosR64
20LIB =  $(ECCODES_LIB) $(EMOSLIB)
21
22ECCODES_INCLUDE_DIR=/usr/local/include
23INC = -I. -I$(ECCODES_INCLUDE_DIR)
24
25FC = gfortran
26OPT = -O3 -march=native
27FFLAGS =   $(OPT) $(LIB) $(INC) -fdefault-real-8 -fopenmp -fconvert=big-endian
28LDFLAGS =  $(OPT) $(LIB) -fopenmp
29SRC = ./rwgrib2.f90 ./calc_etadot.f90 ./ftrafo.f90 ./grphreal.f90 ./posnam.f90 ./phgrreal.f90
30OBJ = rwgrib2.o calc_etadot.o ftrafo.o grphreal.o posnam.o phgrreal.o
31MOD = ftrafo.mod  grtoph.mod    phtogr.mod  rwgrib2.mod
32
33.DEFAULT:
34        -echo $@ does not exist.
35
36all: ${EXE}
37ftrafo.o: ./ftrafo.f90 phgrreal.o
38        $(FC)  $(FFLAGS)  -c    ./ftrafo.f90
39grphreal.o: ./grphreal.f90 phgrreal.o
40        $(FC)  $(FFLAGS)  -c    ./grphreal.f90
41phgrreal.o: ./phgrreal.f90
42        $(FC)  $(FFLAGS)  -c    ./phgrreal.f90
43posnam.o: ./posnam.f90
44        $(FC)  $(FFLAGS)  -c    ./posnam.f90
45calc_etadot.o: ./calc_etadot.f90 phgrreal.o grphreal.o ftrafo.o rwgrib2.o
46        $(FC)  $(FFLAGS)  -c    ./calc_etadot.f90
47rwgrib2.o: ./rwgrib2.f90
48        $(FC)  $(FFLAGS)  -c    ./rwgrib2.f90
49
50clean:
51        -rm -f $(OBJ) ${EXE} $(MOD)
52
53${EXE}: $(OBJ)
54        $(FC) $(OBJ) -o ${EXE}  $(LDFLAGS)
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG