Skip to content

Commit

Permalink
collect NETCDF linking stuff separately so it can be used by other ma…
Browse files Browse the repository at this point in the history
…ke systems
  • Loading branch information
albapa committed Oct 6, 2016
1 parent f7232cd commit 9ed1458
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Makefile.rules
Expand Up @@ -62,19 +62,21 @@ SYSLIBS += -L${FOX_LIBDIR} ${FOX_LIBS}
INCLUDES += -I${QUIP_ROOT}/src/libAtoms -I${FOX_INCDIR}

ifeq (${HAVE_NETCDF},1)
SYSLIBS += $(addprefix -L,${NETCDF_LIBDIR})
NETCDF_SYSLIBS = $(addprefix -L,${NETCDF_LIBDIR})
INCLUDES += $(addprefix -I,${NETCDF_INCDIR})
ifeq (${NETCDF4}, 1)
DEFINES += -DHAVE_NETCDF -DNETCDF4
SYSLIBS += ${NETCDF4_LIBS}
NETCDF_SYSLIBS += ${NETCDF4_LIBS}
ifeq (${NETCDF4_CURL}, 1)
SYSLIBS += ${NETCDF4_CURL_LIBS}
NETCDF_SYSLIBS += ${NETCDF4_CURL_LIBS}
endif
else
DEFINES += -DHAVE_NETCDF
SYSLIBS += ${NETCDF_LIBS}
NETCDF_SYSLIBS += ${NETCDF_LIBS}
endif
SYSLIBS += ${NETCDF_SYSLIBS}
endif

ifeq (${HAVE_MDCORE},1)
SYSLIBS += -L${MDCORE_LIBDIR} ${MDCORE_LIBS}
INCLUDES += -I${MDCORE_INCDIR}
Expand Down

0 comments on commit 9ed1458

Please sign in to comment.