1 | ############################################################################### |
---|
2 | # |
---|
3 | # Makefile for flex_extract, Fortran code to calculate etadot |
---|
4 | # Makefile created using by mkmf 19.3.0 |
---|
5 | # |
---|
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 | # full debugging |
---|
11 | # |
---|
12 | ############################################################################### |
---|
13 | |
---|
14 | |
---|
15 | EXE = calc_etadot |
---|
16 | |
---|
17 | LIB = $(ECCODES_LIB) $(EMOSLIB) |
---|
18 | INC = -I. -I$(ECCODES_INCLUDE_DIR) |
---|
19 | |
---|
20 | FC = ftn |
---|
21 | |
---|
22 | OPT = -O3 |
---|
23 | FFLAGS = -r8 $(OPT) $(LIB) $(INC) |
---|
24 | LDFLAGS = $(OPT) -fopenmp |
---|
25 | EXE = calc_etadot |
---|
26 | |
---|
27 | .f.o: |
---|
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 |
---|
31 | |
---|
32 | ftrafo.o: ./ftrafo.f90 phgrreal.o |
---|
33 | $(FC) $(FFLAGS) -c ./ftrafo.f90 |
---|
34 | grphreal.o: ./grphreal.f90 phgrreal.o |
---|
35 | $(FC) $(FFLAGS) -c ./grphreal.f90 |
---|
36 | phgrreal.o: ./phgrreal.f90 |
---|
37 | $(FC) $(FFLAGS) -c ./phgrreal.f90 |
---|
38 | posnam.o: ./posnam.f90 |
---|
39 | $(FC) $(FFLAGS) -c ./posnam.f90 |
---|
40 | calc_etadot.o: ./calc_etadot.f90 phgrreal.o grphreal.o ftrafo.o rwgrib2.o |
---|
41 | $(FC) $(FFLAGS) -c ./calc_etadot.f90 |
---|
42 | rwgrib2.o: ./rwgrib2.f90 |
---|
43 | $(FC) $(FFLAGS) -c ./rwgrib2.f90 |
---|
44 | |
---|
45 | clean: |
---|
46 | -rm -f $(OBJ) ${EXE} $(MOD) calc_etadot |
---|
47 | |
---|
48 | ${EXE}: $(OBJ) |
---|
49 | $(FC) $(OBJ) -o ${EXE} $(LDFLAGS) |
---|