Skip to content
Snippets Groups Projects
Commit f0a2e58c authored by Ignacio Pisso's avatar Ignacio Pisso
Browse files

fix makefile to compile with eccodes. make ncf build the default

parent 17c3c47d
No related branches found
No related tags found
No related merge requests found
......@@ -43,8 +43,8 @@ SHELL = /bin/bash
#
# NETCDF OUTPUT
# To add support for output in netCDF format, append `ncf=yes` to the
# `make` command
#
# `make` command (now the default)
# To remove the dependency append `ncf=no` (or any string different from "yes")
################################################################################
## PROGRAMS
......@@ -60,6 +60,8 @@ FLEXPART-MPI-DBG = DBG_FLEXPART_MPI
# Serial processing executable
FLEXPART-SERIAL = FLEXPART
ncf=yes
# the following is for NILU only
#ifeq ($(gcc), 4.9)
......@@ -93,6 +95,10 @@ FLEXPART-SERIAL = FLEXPART
INCPATH2 = ./
LIBPATH1 = /usr/lib/
INCPATH2 = /opt/eccodes/include/
# INCPATH2 = ./
LIBPATH2 = /opt/eccodes/lib/
# the following works on a Debian buster (and probably newer) machine
# F90 = gfortran
# MPIF90 = mpifort
......@@ -132,7 +138,7 @@ DBGFLAGS = -I$(INCPATH1) -I$(INCPATH2) -O$(O_LEV_DBG) -g3 -ggdb3 -cpp \
-fbacktrace -Wall -fdump-core $(FUSER) -fcheck=all #\
# -ffpe-trap=invalid,overflow,denormal,underflow,zero
LDFLAGS = $(FFLAGS) -L$(LIBPATH1) -Wl,-rpath,$(LIBPATH1) $(LIBS)
LDFLAGS = $(FFLAGS) -L$(LIBPATH1) -L$(LIBPATH2) -Wl,-rpath,$(LIBPATH1) $(LIBS)
LDDEBUG = $(DBGFLAGS) -L$(LIBPATH1) $(LIBS)
MODOBJS = \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment