From 636ef51ae4bba459e4835531da51622a2456443e Mon Sep 17 00:00:00 2001 From: sjplimp Date: Wed, 18 Mar 2015 20:45:12 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13251 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- lib/python/Makefile.lammps | 6 +++--- lib/python/Makefile.lammps.python2 | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 lib/python/Makefile.lammps.python2 diff --git a/lib/python/Makefile.lammps b/lib/python/Makefile.lammps index 897e631a5d..4fc7a201f1 100644 --- a/lib/python/Makefile.lammps +++ b/lib/python/Makefile.lammps @@ -1,6 +1,6 @@ # Settings that the LAMMPS build will import when this package library is used # See the README file for more explanation -python_SYSINC = -I/usr/local/include/python2.7 -python_SYSLIB = -lpython2.7 -lnsl -ldl -lreadline -ltermcap -lpthread -lutil -lm -python_SYSPATH = +python_SYSINC = +python_SYSLIB = +python_SYSPATH = diff --git a/lib/python/Makefile.lammps.python2 b/lib/python/Makefile.lammps.python2 new file mode 100644 index 0000000000..8538994694 --- /dev/null +++ b/lib/python/Makefile.lammps.python2 @@ -0,0 +1,6 @@ +# Settings that the LAMMPS build will import when this package library is used +# See the README file for more explanation + +python_SYSINC = $(shell which python2-config > /dev/null 2>&1 && python2-config --includes || python-config --includes ) +python_SYSLIB = $(shell which python2-config > /dev/null 2>&1 && python2-config --ldflags || python-config --ldflags) +python_SYSPATH =