Unverified Commit 882b2301 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

handle shared library extension on macosx for plumed runtime build

parent 528ec75f
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ used to automate the steps described in the README file in this dir
"""

from __future__ import print_function
import sys, os, subprocess, shutil
import sys, os, platform, subprocess, shutil
from argparse import ArgumentParser

sys.path.append('..')
@@ -130,6 +130,9 @@ if os.path.isfile("Makefile.lammps.%s" % mode):
  print("Creating Makefile.lammps")
  plumedinc = os.path.join('liblink', 'plumed', 'src', 'lib', 'Plumed.inc.' + mode)
  lines1 = open(plumedinc, 'r').readlines()
  if (platform.system() == 'Darwin' and os.path.isfile("Makefile.lammps.%s.macosx")):
    lines2 = open("Makefile.lammps.%s.macosx" % mode, 'r').readlines()
  else:
    lines2 = open("Makefile.lammps.%s" % mode, 'r').readlines()
  fp = open("Makefile.lammps", 'w')
  fp.write("PLUMED_LIBDIR=" + os.path.join(homedir, "lib\n"))
+5 −0
Original line number Diff line number Diff line
# Settings that the LAMMPS build will import when this package library is used

plumed_SYSINC = -D__PLUMED_HAS_DLOPEN=1 -D__PLUMED_DEFAULT_KERNEL=$(PLUMED_LIBDIR)/libplumedKernel.dylib
plumed_SYSLIB = $(PLUMED_LOAD) -rdynamic
plumed_SYSPATH =