From ea4067d997ee406897d0bcbc76bf241651675bed Mon Sep 17 00:00:00 2001 From: Dom Heinzeller Date: Sun, 18 Sep 2016 19:56:05 +0100 Subject: [PATCH] Supporting installations of NetCDF where the Fortran library is installed in a different place than the C library (env. variable NETCDFF) --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 780c6c9daa..88a3adbb60 100644 --- a/Makefile +++ b/Makefile @@ -461,6 +461,11 @@ ifneq "$(NETCDF)" "" ifneq ($(wildcard $(NETCDF)/lib/libnetcdff.*), ) # CHECK FOR NETCDF4 LIBS += $(NCLIBF) endif # CHECK FOR NETCDF4 + ifneq "$(NETCDFF)" "" + FCINCLUDES += -I$(NETCDFF)/include + LIBS += -L$(NETCDFF)/lib + LIBS += $(NCLIBF) + endif LIBS += $(NCLIB) endif