ctbtodev
Last change
on this file since 4c1d7de was
1244a7b,
checked in by Anne Philipp <anne.philipp@…>, 6 years ago
|
updated fortran program Makefiles
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[2fb99de] | 1 | ############################################################################### |
---|
| 2 | # |
---|
| 3 | # Top level Makefile for ECMWFDATA7.0 software |
---|
| 4 | # |
---|
| 5 | # Last modified: December 1, 2015 |
---|
| 6 | # |
---|
| 7 | ############################################################################### |
---|
| 8 | |
---|
| 9 | |
---|
| 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 |
---|
| 12 | |
---|
| 13 | OPT = |
---|
| 14 | DEBUG = -g |
---|
| 15 | LIB = $(GRIB_API_LIBS) $(EMOSLIB) |
---|
| 16 | |
---|
| 17 | FC=ftn $(F90FLAGS) |
---|
| 18 | F90C=ftn $(F90FLAGS) |
---|
| 19 | |
---|
| 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 | |
---|
| 27 | EXE = CONVERT2 |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | .f.o: |
---|
| 31 | $(F90C) -c $(F90FLAGS) $(DEBUG) $*.f |
---|
| 32 | .f90.o: |
---|
| 33 | $(F90C) -c $(F90FLAGS) $(DEBUG) $*.f90 |
---|
| 34 | |
---|
| 35 | all: ${EXE} |
---|
| 36 | |
---|
| 37 | clean: |
---|
[1244a7b] | 38 | rm *.o *.mod ${EXE} |
---|
[2fb99de] | 39 | |
---|
| 40 | phgrreal.o: phgrreal.f |
---|
| 41 | $(F90C) -c -g -O3 phgrreal.f |
---|
| 42 | |
---|
| 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 | |
---|
[1244a7b] | 49 | $(BINDIR)/${EXE}: phgrreal.o grphreal.o ftrafo.o rwGRIB2.o posnam.o preconvert.o |
---|
| 50 | $(F90C) $(DEBUG) $(OPT) -o $(BINDIR)/${EXE} ftrafo.o phgrreal.o grphreal.o rwGRIB2.o posnam.o preconvert.o ${LIB} |
---|
[2fb99de] | 51 | |
---|
| 52 | |
---|
| 53 | ############################################################################### |
---|
| 54 | # |
---|
| 55 | # End of the Makefile |
---|
| 56 | # |
---|
| 57 | ############################################################################### |
---|
Note: See
TracBrowser
for help on using the repository browser.