1# Settings that the LAMMPS build will import when a package using the 2# netCDF library is installed. This tries to automate configuration 3# via the nc-config tool, which is part of the netCDF installation. 4 5netcdf_SYSINC = 6netcdf_SYSLIB = 7netcdf_SYSPATH = 8 9ifneq ($(shell which nc-config 2>> /dev/null),) 10netcdf_SYSINC += -DLMP_HAS_NETCDF $(shell nc-config --cflags) 11netcdf_SYSLIB += $(shell nc-config --libs) 12endif 13 14ifneq ($(shell which ncmpidump 2>> /dev/null),) 15PNETCDF_PATH = $(shell which ncmpidump | sed -e 's,bin/ncmpidump,,') 16netcdf_SYSINC += -DLMP_HAS_PNETCDF -I$(PNETCDF_PATH)/include 17netcdf_SYSLIB += -lpnetcdf 18netcdf_SYSPATH += -L$(PNETCDF_PATH)/lib 19endif 20