Commit 8aa28e66 authored by sjplimp's avatar sjplimp
Browse files

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3013 f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent 14b3f4f9
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
# Install/unInstall package classes in LAMMPS
# edit Makefile.package to include/exclude MEAM library

if ($1 == 1) then

@@ -8,6 +9,11 @@ if ($1 == 1) then

  cp pair_meam.h ..

  sed -i 's/\S*meam //' ../Makefile.package
  sed -i 's|^PKGINC =\s*|&-I../../lib/meam |' ../Makefile.package
  sed -i 's|^PKGPATH =\s*|&-L../../lib/meam |' ../Makefile.package
  sed -i 's|^PKGLIB =\s*|&-lmeam |' ../Makefile.package

else if ($1 == 0) then

  rm ../style_meam.h
@@ -17,4 +23,6 @@ else if ($1 == 0) then

  rm ../pair_meam.h

  sed -i 's/\S*meam //' ../Makefile.package

endif
+2 −1
Original line number Diff line number Diff line
@@ -63,6 +63,7 @@ help:
	@if [ ! -d Obj_$@ ]; then mkdir Obj_$@; fi
	@cp -p $(SRC) $(INC) Obj_$@
	@cp MAKE/Makefile.$@ Obj_$@/Makefile
	@cp Makefile.package Obj_$@
	@cd Obj_$@; \
	$(MAKE) $(MFLAGS) "OBJ = $(OBJ)" "INC = $(INC)" "EXE = ../$(EXE)" ../$(EXE)
	@if [ -d Obj_$@ ]; then cd Obj_$@; rm -f $(SRC) $(INC) Makefile*; fi
@@ -170,4 +171,4 @@ package-update:
package-overwrite:
	@for p in $(PACKAGEUC); do csh -f Package.csh $$p overwrite; done
	@echo ''
	@for p in $(PACKUSERUC); do csh -f Package.csh $$p overwrite; done
	@for p in $(PACKUSERUC); do csh -f Package.csh $$p overwrite

src/Makefile.package

0 → 100644
+6 −0
Original line number Diff line number Diff line
# Settings for libraries used by specific LAMMPS packages
# this file is auto-edited when those packages are included/excluded

PKGINC =   -I../../lib/poems -I../../lib/meam -I../../lib/reax 
PKGPATH =  -L../../lib/poems -L../../lib/meam -L../../lib/reax 
PKGLIB =   -lpoems -lmeam -lreax 
+8 −0
Original line number Diff line number Diff line
# Install/unInstall package classes in LAMMPS
# edit Makefile.package to include/exclude POEMS library

if ($1 == 1) then

@@ -8,6 +9,11 @@ if ($1 == 1) then

  cp fix_poems.h ..

  sed -i 's/\S*poems //' ../Makefile.package
  sed -i 's|^PKGINC =\s*|&-I../../lib/poems |' ../Makefile.package
  sed -i 's|^PKGPATH =\s*|&-L../../lib/poems |' ../Makefile.package
  sed -i 's|^PKGLIB =\s*|&-lpoems |' ../Makefile.package

else if ($1 == 0) then

  rm ../style_poems.h
@@ -17,4 +23,6 @@ else if ($1 == 0) then

  rm ../fix_poems.h

  sed -i 's/\S*poems //' ../Makefile.package

endif
+8 −0
Original line number Diff line number Diff line
# Install/unInstall package classes in LAMMPS
# edit Makefile.package to include/exclude REAX library

if ($1 == 1) then

@@ -12,6 +13,11 @@ if ($1 == 1) then
  cp fix_reax_bonds.h ..
  cp fix_reax_bonds.cpp ..

  sed -i 's/\S*reax //' ../Makefile.package
  sed -i 's|^PKGINC =\s*|&-I../../lib/reax |' ../Makefile.package
  sed -i 's|^PKGPATH =\s*|&-L../../lib/reax |' ../Makefile.package
  sed -i 's|^PKGLIB =\s*|&-lreax |' ../Makefile.package

else if ($1 == 0) then

  rm ../style_reax.h
@@ -25,4 +31,6 @@ else if ($1 == 0) then
  rm ../fix_reax_bonds.h
  rm ../fix_reax_bonds.cpp

  sed -i 's/\S*reax //' ../Makefile.package

endif
Loading