source: flex_extract.git/Source/Fortran/makefile_cray

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

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

  • Property mode set to 100644
File size: 1.9 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
[2fb99de]19
[4f24798]20LIB     =  $(ECCODES_LIB)   
[7cd1586]21INC = -I. -I$(ECCODES_INCLUDE_DIR)
[2fb99de]22
[7cd1586]23FC = ftn
[2fb99de]24
[7cd1586]25OPT = -O3
[4d68c4a]26FFLAGS =  -s real64  $(OPT) $(LIB) $(INC)
[7cd1586]27LDFLAGS =  $(OPT) -fopenmp
[dfa7dbd]28EXE     =      calc_etadot
[2fb99de]29
30.f.o:
[3520ee6]31SRC = ./rwgrib2.f90 ./calc_etadot.f90 ./ftrafo.f90 ./grphreal.f90 ./posnam.f90 ./phgrreal.f90 ./set99.f90 ./fft99.f90 ./qpassm.f90 ./rpassm.f90 ./jsppole.f90
32OBJ = rwgrib2.o calc_etadot.o ftrafo.o grphreal.o posnam.o phgrreal.o set99.o fft99.o qpassm.o rpassm.o jsppole.o
[7cd1586]33MOD = ftrafo.mod  grtoph.mod    phtogr.mod  rwgrib2.mod
34
[3520ee6]35all: ${EXE}
36jsppole.o: ./jsppole.f90
37        $(FC)  $(FFLAGS)  -c    ./jsppole.f90
38qpassm.o: ./qpassm.f90
39        $(FC)  $(FFLAGS)  -c    ./qpassm.f90
40rpassm.o: ./rpassm.f90
41        $(FC)  $(FFLAGS)  -c    ./rpassm.f90
42set99.o: ./set99.f90
43        $(FC)  $(FFLAGS)  -c    ./set99.f90
44fft99.o: ./fft99.f90
45        $(FC)  $(FFLAGS)  -c    ./fft99.f90
[7cd1586]46ftrafo.o: ./ftrafo.f90 phgrreal.o
47        $(FC)  $(FFLAGS)  -c    ./ftrafo.f90
[3520ee6]48grphreal.o: ./grphreal.f90 phgrreal.o fft99.o
[7cd1586]49        $(FC)  $(FFLAGS)  -c    ./grphreal.f90
[3520ee6]50phgrreal.o: ./phgrreal.f90 fft99.o
[7cd1586]51        $(FC)  $(FFLAGS)  -c    ./phgrreal.f90
52posnam.o: ./posnam.f90
53        $(FC)  $(FFLAGS)  -c    ./posnam.f90
[3520ee6]54calc_etadot.o: ./calc_etadot.f90 phgrreal.o grphreal.o ftrafo.o rwgrib2.o jsppole.o set99.o
[7cd1586]55        $(FC)  $(FFLAGS)  -c    ./calc_etadot.f90
56rwgrib2.o: ./rwgrib2.f90
57        $(FC)  $(FFLAGS)  -c    ./rwgrib2.f90
58
59clean:
60        -rm -f $(OBJ) ${EXE} $(MOD) calc_etadot
61
62${EXE}: $(OBJ)
63        $(FC) $(OBJ) -o ${EXE}  $(LDFLAGS)
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG