Changeset dfa7dbd in flex_extract.git for Source/Fortran/makefile_fast
- Timestamp:
- Aug 21, 2019, 7:19:43 PM (5 years ago)
- Branches:
- master, ctbto, dev
- Children:
- 5b5589b
- Parents:
- 8c55c02
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Source/Fortran/makefile_fast
r0007a71 rdfa7dbd 2 2 # 3 3 # Makefile for flex_extract, Fortran code to calculate etadot 4 # Makefile created using by mkmf 19.3.0 4 5 # 5 6 # Copyright: Leopold Haimberger, Petra Seibert 6 7 # SPDX-License-Identifier: GPL-2.0 7 8 # 8 # Version for a machine with grib_api installed on standard paths9 # compiled for fast runs9 # Version for a machine with grib_api and emoslib installed on standard paths 10 # full debugging 10 11 # 11 12 ############################################################################### 12 13 13 14 14 GRIB_API_INCLUDE_DIR=/usr/include15 GRIB_API_LIB= -Bstatic -lgrib_api_f77 -lgrib_api_f90 -lgrib_api -Bdynamic -lm -ljasper16 EMOSLIB=-lemosR6417 18 LIB = $(GRIB_API_LIB) $(EMOSLIB)19 20 F90 = gfortran -m64 -fdefault-real-8 -fcray-pointer -fno-second-underscore -ffixed-line-length-132 -fopenmp -fconvert=big-endian21 22 F90FLAGS = -I. -I$(GRIB_API_INCLUDE_DIR)23 24 OPT = -O325 26 BINDIR = .27 15 EXE = calc_etadot_fast.out 28 16 29 .f.o: 30 $(F90) -c $(F90FLAGS) $(OPT) $*.f 31 .f90.o: 32 $(F90) -c $(F90FLAGS) $(OPT) $*.f90 17 GRIB_API_LIB= -Bstatic -lgrib_api_f90 -lgrib_api -Bdynamic -lm -ljasper 18 EMOSLIB=-lemosR64 19 LIB = $(GRIB_API_LIB) $(EMOSLIB) 33 20 34 all: ${EXE} 21 GRIB_API_INCLUDE_DIR=/usr/include 22 INC = -I. -I$(GRIB_API_INCLUDE_DIR) 35 23 36 clean: 37 rm *.o *.mod #${EXE} 24 FC = gfortran 25 OPT = -O3 -march=native 26 FFLAGS = $(OPT) $(LIB) $(INC) -fdefault-real-8 -fopenmp -fconvert=big-endian 27 LDFLAGS = $(OPT) $(LIB) -fopenmp 28 SRC = ./rwgrib2.f90 ./calc_etadot.f90 ./ftrafo.f90 ./grphreal.f90 ./posnam.f90 ./phgrreal.f90 29 OBJ = rwgrib2.o calc_etadot.o ftrafo.o grphreal.o posnam.o phgrreal.o 30 MOD = ftrafo.mod grtoph.mod phtogr.mod rwgrib2.mod 38 31 39 preconvert.o: preconvert.f90 40 $(F90) -c $(OPT) $(F90FLAGS) preconvert.f90 41 42 phgrreal.o: phgrreal.f 43 $(F90) -c $(OPT) phgrreal.f 32 .DEFAULT: 33 -echo $@ does not exist. 44 34 45 rwGRIB2.o: rwGRIB2.f90 46 $(F90) -c $(OPT) $(F90FLAGS) rwGRIB2.f90 35 all: ${EXE} 36 ftrafo.o: ./ftrafo.f90 phgrreal.o 37 $(FC) $(FFLAGS) -c ./ftrafo.f90 38 grphreal.o: ./grphreal.f90 phgrreal.o 39 $(FC) $(FFLAGS) -c ./grphreal.f90 40 phgrreal.o: ./phgrreal.f90 41 $(FC) $(FFLAGS) -c ./phgrreal.f90 42 posnam.o: ./posnam.f90 43 $(FC) $(FFLAGS) -c ./posnam.f90 44 calc_etadot.o: ./calc_etadot.f90 phgrreal.o grphreal.o ftrafo.o rwgrib2.o 45 $(FC) $(FFLAGS) -c ./calc_etadot.f90 46 rwgrib2.o: ./rwgrib2.f90 47 $(FC) $(FFLAGS) -c ./rwgrib2.f90 47 48 48 grphreal.o: grphreal.f 49 $(F90) -c $(OPT) grphreal.f49 clean: 50 -rm -f $(OBJ) ${EXE} $(MOD) 50 51 51 ftrafo.o: ftrafo.f 52 $(F90) -c $(OPT) ftrafo.f 53 54 $(BINDIR)/${EXE}: phgrreal.o grphreal.o ftrafo.o rwGRIB2.o posnam.o preconvert.o 55 $(F90) $(OPT) -o $(BINDIR)/${EXE} ftrafo.o phgrreal.o grphreal.o rwGRIB2.o posnam.o preconvert.o ${LIB} 56 57 58 ############################################################################### 59 # 60 # End of the Makefile 61 # 62 ############################################################################### 52 ${EXE}: $(OBJ) 53 $(FC) $(OBJ) -o ${EXE} $(LDFLAGS)
Note: See TracChangeset
for help on using the changeset viewer.