2015-01-09 23:52:12 +08:00
|
|
|
# This file contains the hooks to build and link LAMMPS with the OpenKIM
|
|
|
|
# library so that a LAMMPS input script can use a KIM potential, via the
|
|
|
|
# pair_style kim command.
|
2015-07-02 08:45:28 +08:00
|
|
|
#
|
|
|
|
# The KIM API package can be downloaded from https://openkim.org/kim-api
|
|
|
|
# Follow the instructions in the INSTALL file to build and install the
|
|
|
|
# KIM API. Add the openkim.org Models you are interested in using.
|
|
|
|
# Make sure the directory where the "kim-api-build-conifg" utility is
|
|
|
|
# located is on the PATH.
|
|
|
|
#
|
|
|
|
# As long as you have followed the KIM API build and install instructions,
|
|
|
|
# there should not be any reason to change this file.
|
2015-01-09 23:52:12 +08:00
|
|
|
|
|
|
|
# -----------------------------------------------------------
|
|
|
|
|
|
|
|
# Settings that the LAMMPS build will import when this package is installed
|
|
|
|
|
2016-04-14 06:25:46 +08:00
|
|
|
|
2017-07-11 05:43:23 +08:00
|
|
|
include ../../lib/kim/Makefile.KIM_DIR
|
2017-06-23 11:33:09 +08:00
|
|
|
|
2017-10-10 02:11:16 +08:00
|
|
|
ifeq ($(wildcard $(KIM_INSTALL_DIR)/bin/kim-api-v1-build-config),)
|
|
|
|
KIM_CONFIG_HELPER = kim-api-v1-build-config
|
2017-06-23 11:33:09 +08:00
|
|
|
else
|
2017-10-10 02:11:16 +08:00
|
|
|
KIM_CONFIG_HELPER = $(KIM_INSTALL_DIR)/bin/kim-api-v1-build-config
|
2017-06-23 11:33:09 +08:00
|
|
|
endif
|
2016-04-14 06:25:46 +08:00
|
|
|
ifeq ($(shell $(KIM_CONFIG_HELPER) --version 2> /dev/null),)
|
|
|
|
$(error $(KIM_CONFIG_HELPER) utility is not available. Something is wrong with your KIM API package setup)
|
|
|
|
endif
|
|
|
|
|
|
|
|
kim_SYSINC = $(shell $(KIM_CONFIG_HELPER) --includes)
|
|
|
|
kim_SYSLIB = $(shell $(KIM_CONFIG_HELPER) --ldlibs)
|
|
|
|
kim_SYSPATH = $(shell $(KIM_CONFIG_HELPER) --ldflags)
|