add NETCDF libs (as defined in QUIP) to the linking line if QUIP was built with NETCDF support

This commit is contained in:
A Bartok-Partay 2016-10-06 12:15:48 +01:00
parent fd16118cbb
commit 8ea063378e
1 changed files with 3 additions and 1 deletions

View File

@ -13,8 +13,10 @@ $(error Environment variable QUIP_ARCH must be set.)
endif
include ${QUIP_ROOT}/build/${QUIP_ARCH}/Makefile.inc
include ${QUIP_ROOT}/Makefile.rules
quip_SYSLIB = -lquip
quip_SYSLIB += ${NETCDF_SYSLIBS}
quip_SYSLIB += ${MATH_LINKOPTS}
ifeq (${F95},gfortran)
@ -25,4 +27,4 @@ else
$(error fortran compiler >>${F95}<< not recognised. Edit lib/quip/Makefile.lammps to specify the fortran library your linker should link to)
endif
quip_SYSPATH = -L${QUIP_ROOT}/build/${QUIP_ARCH} -L${QUIP_ROOT}/src/FoX-4.0.3/objs.${QUIP_ARCH}/lib
quip_SYSPATH = -L${QUIP_ROOT}/build/${QUIP_ARCH}