source: flex_extract.git/Source/Fortran/makefile_cray @ 4d68c4a

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

Corrected and tested Cray makefile

  • Property mode set to 100644
File size: 1.4 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#
12###############################################################################
13
14
[7cd1586]15EXE      =  calc_etadot
[2fb99de]16
[7cd1586]17LIB     =  $(ECCODES_LIB) $(EMOSLIB)   
18INC = -I. -I$(ECCODES_INCLUDE_DIR)
[2fb99de]19
[7cd1586]20FC = ftn
[2fb99de]21
[7cd1586]22OPT = -O3
[4d68c4a]23FFLAGS =  -s real64  $(OPT) $(LIB) $(INC)
[7cd1586]24LDFLAGS =  $(OPT) -fopenmp
[dfa7dbd]25EXE     =      calc_etadot
[2fb99de]26
27.f.o:
[7cd1586]28SRC = ./rwgrib2.f90 ./calc_etadot.f90 ./ftrafo.f90 ./grphreal.f90 ./posnam.f90 ./phgrreal.f90
29OBJ = rwgrib2.o calc_etadot.o ftrafo.o grphreal.o posnam.o phgrreal.o
30MOD = ftrafo.mod  grtoph.mod    phtogr.mod  rwgrib2.mod
31
[4d68c4a]32all:    ${EXE}
33
[7cd1586]34ftrafo.o: ./ftrafo.f90 phgrreal.o
35        $(FC)  $(FFLAGS)  -c    ./ftrafo.f90
36grphreal.o: ./grphreal.f90 phgrreal.o
37        $(FC)  $(FFLAGS)  -c    ./grphreal.f90
38phgrreal.o: ./phgrreal.f90
39        $(FC)  $(FFLAGS)  -c    ./phgrreal.f90
40posnam.o: ./posnam.f90
41        $(FC)  $(FFLAGS)  -c    ./posnam.f90
42calc_etadot.o: ./calc_etadot.f90 phgrreal.o grphreal.o ftrafo.o rwgrib2.o
43        $(FC)  $(FFLAGS)  -c    ./calc_etadot.f90
44rwgrib2.o: ./rwgrib2.f90
45        $(FC)  $(FFLAGS)  -c    ./rwgrib2.f90
46
47clean:
48        -rm -f $(OBJ) ${EXE} $(MOD) calc_etadot
49
50${EXE}: $(OBJ)
51        $(FC) $(OBJ) -o ${EXE}  $(LDFLAGS)
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG