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