Changeset da1b788 in flex_extract.git for Source/Fortran/makefile_cray


Ignore:
Timestamp:
Mar 6, 2020, 1:34:52 PM (4 years ago)
Author:
anphi <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
5868d74
Parents:
f7b9666 (diff), 4d68c4a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'feature/makefiles' into dev

Solved merge conflict in makefile_fast and corrected executable name and LIB var name to eccodes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Source/Fortran/makefile_cray

    rdfa7dbd r4d68c4a  
    11###############################################################################
    22#
    3 # Top level Makefile for ECMWFDATA7.0 software
     3# Makefile for flex_extract, Fortran code to calculate etadot
     4# Makefile created using by mkmf 19.3.0
    45#
    5 # Last modified:  December 1, 2015
     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
    611#
    712###############################################################################
    813
    914
    10 .SUFFIXES: .o .c .c~ .f .f~ .F90 .f90 .f90~ .f95 .f95~ .F .F~ .y .y~ .l .l~ \
    11            .s .s~ .sh .sh~ .h .h~ .C .C~ .a
     15EXE      =  calc_etadot
    1216
    13 OPT     =
    14 DEBUG   = -g
    15 LIB     =  $(GRIB_API_LIBS) $(EMOSLIB)
     17LIB     =  $(ECCODES_LIB) $(EMOSLIB)   
     18INC = -I. -I$(ECCODES_INCLUDE_DIR)
    1619
    17 FC=ftn  $(F90FLAGS)
    18 F90C=ftn    $(F90FLAGS)
     20FC = ftn
    1921
    20 FFLAGS =  $(OPT) -I. -r8 -I$(GRIB_API_INCLUDE_DIR)
    21 F90FLAGS =  $(OPT) -I. -r8 -I$(GRIB_API_INCLUDE_DIR)
    22 
    23 LDFLAGS =  $(OPT)
    24 
    25 BINDIR  =      .
    26 
     22OPT = -O3
     23FFLAGS =  -s real64  $(OPT) $(LIB) $(INC)
     24LDFLAGS =  $(OPT) -fopenmp
    2725EXE     =      calc_etadot
    2826
    29 
    3027.f.o:
    31         $(F90C) -c $(F90FLAGS) $(DEBUG) $*.f
    32 .f90.o:
    33         $(F90C) -c $(F90FLAGS) $(DEBUG) $*.f90
     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
    3431
    3532all:    ${EXE}
    3633
    37 clean:
    38         rm *.o *.mod ${EXE}
     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
    3946
    40 phgrreal.o: phgrreal.f
    41         $(F90C) -c -g -O3 phgrreal.f
     47clean:
     48        -rm -f $(OBJ) ${EXE} $(MOD) calc_etadot
    4249
    43 grphreal.o: grphreal.f
    44         $(F90C) -c -g -O3 grphreal.f
    45 
    46 ftrafo.o: ftrafo.f
    47         $(F90C) -c -g -O3 ftrafo.f
    48 
    49 $(BINDIR)/${EXE}:       phgrreal.o grphreal.o ftrafo.o rwgrib2.o  posnam.o calc_etadot.o
    50         $(F90C) $(DEBUG) $(OPT) -o $(BINDIR)/${EXE} ftrafo.o phgrreal.o grphreal.o rwgrib2.o posnam.o calc_etadot.o ${LIB}
    51 
    52 
    53 ###############################################################################
    54 #
    55 # End of the Makefile
    56 #
    57 ###############################################################################
     50${EXE}: $(OBJ)
     51        $(FC) $(OBJ) -o ${EXE}  $(LDFLAGS)
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG