source: flex_extract.git/Source/Fortran/makefile_ecgate @ 1610f73

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

Correct comments in some makefiles

  • Property mode set to 100644
File size: 1.5 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# with optimisation
11#
12###############################################################################
13
14
15EXE      =  calc_etadot_fast.out
16
17LIB     =  $(ECCODES_LIB) $(EMOSLIB)   
18INC = -I. -I$(ECCODES_INCLUDE_DIR)
19
20FC=gfortran 
21
22OPT = -O3 -march=native
23FFLAGS =   $(OPT) $(LIB) $(INC) -fdefault-real-8 -fopenmp -fconvert=big-endian
24LDFLAGS =  $(OPT) $(LIB) -fopenmp
25SRC = ./rwgrib2.f90 ./calc_etadot.f90 ./ftrafo.f90 ./grphreal.f90 ./posnam.f90 ./phgrreal.f90
26OBJ = rwgrib2.o calc_etadot.o ftrafo.o grphreal.o posnam.o phgrreal.o
27MOD = ftrafo.mod  grtoph.mod    phtogr.mod  rwgrib2.mod
28
29all: ${EXE}
30ftrafo.o: ./ftrafo.f90 phgrreal.o
31        $(FC)  $(FFLAGS)  -c    ./ftrafo.f90
32grphreal.o: ./grphreal.f90 phgrreal.o
33        $(FC)  $(FFLAGS)  -c    ./grphreal.f90
34phgrreal.o: ./phgrreal.f90
35        $(FC)  $(FFLAGS)  -c    ./phgrreal.f90
36posnam.o: ./posnam.f90
37        $(FC)  $(FFLAGS)  -c    ./posnam.f90
38calc_etadot.o: ./calc_etadot.f90 phgrreal.o grphreal.o ftrafo.o rwgrib2.o
39        $(FC)  $(FFLAGS)  -c    ./calc_etadot.f90
40rwgrib2.o: ./rwgrib2.f90
41        $(FC)  $(FFLAGS)  -c    ./rwgrib2.f90
42
43clean:
44        -rm -f $(OBJ) ${EXE} $(MOD) calc_etadot
45
46${EXE}: $(OBJ)
47        $(FC) $(OBJ) -o ${EXE}  $(LDFLAGS)
48        ln -sf ${EXE} calc_etadot
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG