source: flex_extract.git/Source/Fortran/makefile_ecgate @ 3520ee6

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

modified all makefiles for Fortran program to use new source files for fft

  • Property mode set to 100644
File size: 2.0 KB
RevLine 
[2fb99de]1###############################################################################
2#
[7cd1586]3# Makefile for flex_extract, Fortran code to calculate etadot
4# Makefile created using by mkmf 19.3.0
[2fb99de]5#
[7cd1586]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
[1610f73]10# with optimisation
[2fb99de]11#
[3520ee6]12# 2022-07-21 Anne Tipka
13#   Updated makefile to make use of the files for fft and get rid of emoslib
14#
[2fb99de]15###############################################################################
16
17
[7cd1586]18EXE      =  calc_etadot_fast.out
[2fb99de]19
[4f24798]20LIB     =  $(ECCODES_LIB)   
[7cd1586]21INC = -I. -I$(ECCODES_INCLUDE_DIR)
22
23FC=gfortran 
24
25OPT = -O3 -march=native
26FFLAGS =   $(OPT) $(LIB) $(INC) -fdefault-real-8 -fopenmp -fconvert=big-endian
27LDFLAGS =  $(OPT) $(LIB) -fopenmp
[3520ee6]28SRC = ./rwgrib2.f90 ./calc_etadot.f90 ./ftrafo.f90 ./grphreal.f90 ./posnam.f90 ./phgrreal.f90 ./set99.f90 ./fft99.f90 ./qpassm.f90 ./rpassm.f90 ./jsppole.f90
29OBJ = rwgrib2.o calc_etadot.o ftrafo.o grphreal.o posnam.o phgrreal.o set99.o fft99.o qpassm.o rpassm.o jsppole.o
[7cd1586]30MOD = ftrafo.mod  grtoph.mod    phtogr.mod  rwgrib2.mod
31
32all: ${EXE}
[3520ee6]33jsppole.o: ./jsppole.f90
34        $(FC)  $(FFLAGS)  -c    ./jsppole.f90
35qpassm.o: ./qpassm.f90
36        $(FC)  $(FFLAGS)  -c    ./qpassm.f90
37rpassm.o: ./rpassm.f90
38        $(FC)  $(FFLAGS)  -c    ./rpassm.f90
39set99.o: ./set99.f90
40        $(FC)  $(FFLAGS)  -c    ./set99.f90
41fft99.o: ./fft99.f90
42        $(FC)  $(FFLAGS)  -c    ./fft99.f90
[7cd1586]43ftrafo.o: ./ftrafo.f90 phgrreal.o
44        $(FC)  $(FFLAGS)  -c    ./ftrafo.f90
[3520ee6]45grphreal.o: ./grphreal.f90 phgrreal.o fft99.o
[7cd1586]46        $(FC)  $(FFLAGS)  -c    ./grphreal.f90
[3520ee6]47phgrreal.o: ./phgrreal.f90 fft99.o
[7cd1586]48        $(FC)  $(FFLAGS)  -c    ./phgrreal.f90
49posnam.o: ./posnam.f90
50        $(FC)  $(FFLAGS)  -c    ./posnam.f90
[3520ee6]51calc_etadot.o: ./calc_etadot.f90 phgrreal.o grphreal.o ftrafo.o rwgrib2.o jsppole.o set99.o
[7cd1586]52        $(FC)  $(FFLAGS)  -c    ./calc_etadot.f90
53rwgrib2.o: ./rwgrib2.f90
54        $(FC)  $(FFLAGS)  -c    ./rwgrib2.f90
55
56clean:
57        -rm -f $(OBJ) ${EXE} $(MOD) calc_etadot
58
59${EXE}: $(OBJ)
60        $(FC) $(OBJ) -o ${EXE}  $(LDFLAGS)
61        ln -sf ${EXE} calc_etadot
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG