2015-02-25 00:29:22 +08:00
|
|
|
# Settings that the LAMMPS build will import when this package library is used
|
|
|
|
|
2015-11-25 00:26:24 +08:00
|
|
|
# include ${QUIP_ROOT}/Makefiles/Makefile.${QUIP_ARCH}
|
2015-02-25 00:29:22 +08:00
|
|
|
|
2015-11-25 00:26:24 +08:00
|
|
|
F95=$(shell egrep 'F95[ ]*=' ${QUIP_ROOT}/arch/Makefile.${QUIP_ARCH} | sed 's/.*F95[ ]*=[ ]*//')
|
2015-02-25 00:29:22 +08:00
|
|
|
|
2015-11-25 00:26:24 +08:00
|
|
|
ifeq (${QUIP_ROOT},)
|
|
|
|
$(error Environment variable QUIP_ROOT must be set.)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (${QUIP_ARCH},)
|
|
|
|
$(error Environment variable QUIP_ARCH must be set.)
|
|
|
|
endif
|
|
|
|
|
|
|
|
include ${QUIP_ROOT}/build/${QUIP_ARCH}/Makefile.inc
|
2015-02-25 00:29:22 +08:00
|
|
|
|
|
|
|
quip_SYSLIB = -lquip
|
|
|
|
quip_SYSLIB += ${MATH_LINKOPTS}
|
|
|
|
|
|
|
|
ifeq (${F95},gfortran)
|
|
|
|
quip_SYSLIB += -lgfortran
|
|
|
|
else ifeq (${F95},ifort)
|
|
|
|
quip_SYSLIB += -lifcore -lifport
|
|
|
|
else
|
|
|
|
$(error fortran compiler >>${F95}<< not recognised. Edit lib/quip/Makefile.lammps to specify the fortran library your linker should link to)
|
|
|
|
endif
|
|
|
|
|
2015-11-25 00:26:24 +08:00
|
|
|
quip_SYSPATH = -L${QUIP_ROOT}/build/${QUIP_ARCH} -L${QUIP_ROOT}/src/FoX-4.0.3/objs.${QUIP_ARCH}/lib
|