include options to link to the LAMMPS library in mode=print output

This commit is contained in:
Axel Kohlmeyer 2020-04-08 18:36:30 -04:00
parent e5b521e011
commit 686aba9fd8
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ include Makefile
# get location of the LAMMPS tree
LMPDIR=$(shell echo $${PWD} | sed -e 's,/src/Obj_[+0-9a-z_-]\+$$,,')
LMPLIB=$(shell echo $(EXE) | sed -e 's,\.\./lib\([+0-9a-z_-]\+\)\.a$$,-L${LMPDIR}/src -l\1,')
do-print:
@echo '# LAMMPS source tree is in:' $(LMPDIR)
@ -18,5 +19,5 @@ do-print:
@echo '# Linking: '
@echo LDFLAGS=$(LINKFLAGS)
@echo '# Libraries: '
@echo LDLIBS=$(EXTRA_PATH) $(EXTRA_LIB) $(LIB) | sed -e s,-L\\.\\./\\.\\./,-L${LMPDIR}/,g -e s,-L\\.\\./,-L${LMPDIR}/src/,g -e s,$(HOME),\\$$\\{HOME\\},g
@echo LDLIBS=$(LMPLIB) $(EXTRA_PATH) $(EXTRA_LIB) $(LIB) | sed -e s,-L\\.\\./\\.\\./,-L${LMPDIR}/,g -e s,-L\\.\\./,-L${LMPDIR}/src/,g -e s,$(HOME),\\$$\\{HOME\\},g