forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@4160 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
6c5371d673
commit
7aba69e4ab
|
@ -4,12 +4,14 @@
|
|||
|
||||
if (test $1 = 1) then
|
||||
|
||||
sed -i -e 's/[^ \t]*gpu //' ../Makefile.package
|
||||
sed -i -e 's/[^ \t]*gpu_[^ \t]*) //' ../Makefile.package
|
||||
sed -i -e 's|^PKG_PATH =[ \t]*|&-L../../lib/gpu |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_LIB =[ \t]*|&-lgpu |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_SYSPATH =[ \t]*|&$(gpu_SYSPATH) |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_SYSLIB =[ \t]*|&$(gpu_SYSLIB) |' ../Makefile.package
|
||||
if (test -e ../Makefile.package) then
|
||||
sed -i -e 's/[^ \t]*gpu //' ../Makefile.package
|
||||
sed -i -e 's/[^ \t]*gpu_[^ \t]*) //' ../Makefile.package
|
||||
sed -i -e 's|^PKG_PATH =[ \t]*|&-L../../lib/gpu |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_LIB =[ \t]*|&-lgpu |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_SYSPATH =[ \t]*|&$(gpu_SYSPATH) |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_SYSLIB =[ \t]*|&$(gpu_SYSLIB) |' ../Makefile.package
|
||||
fi
|
||||
|
||||
if (test -e ../pair_gayberne.cpp) then
|
||||
cp pair_gayberne_gpu.cpp ..
|
||||
|
@ -21,8 +23,10 @@ if (test $1 = 1) then
|
|||
|
||||
elif (test $1 = 0) then
|
||||
|
||||
sed -i -e 's/[^ \t]*gpu //' ../Makefile.package
|
||||
sed -i -e 's/[^ \t]*gpu_[^ \t]*) //' ../Makefile.package
|
||||
if (test -e ../Makefile.package) then
|
||||
sed -i -e 's/[^ \t]*gpu //' ../Makefile.package
|
||||
sed -i -e 's/[^ \t]*gpu_[^ \t]*) //' ../Makefile.package
|
||||
fi
|
||||
|
||||
rm ../pair_gayberne_gpu.cpp
|
||||
rm ../pair_lj_cut_gpu.cpp
|
||||
|
|
|
@ -3,13 +3,15 @@
|
|||
|
||||
if (test $1 = 1) then
|
||||
|
||||
sed -i -e 's/[^ \t]*meam //' ../Makefile.package
|
||||
sed -i -e 's/[^ \t]*meam_[^ \t]*) //' ../Makefile.package
|
||||
sed -i -e 's|^PKG_INC =[ \t]*|&-I../../lib/meam |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_PATH =[ \t]*|&-L../../lib/meam |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_LIB =[ \t]*|&-lmeam |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_SYSPATH =[ \t]*|&$(meam_SYSPATH) |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_SYSLIB =[ \t]*|&$(meam_SYSLIB) |' ../Makefile.package
|
||||
if (test -e ../Makefile.package) then
|
||||
sed -i -e 's/[^ \t]*meam //' ../Makefile.package
|
||||
sed -i -e 's/[^ \t]*meam_[^ \t]*) //' ../Makefile.package
|
||||
sed -i -e 's|^PKG_INC =[ \t]*|&-I../../lib/meam |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_PATH =[ \t]*|&-L../../lib/meam |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_LIB =[ \t]*|&-lmeam |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_SYSPATH =[ \t]*|&$(meam_SYSPATH) |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_SYSLIB =[ \t]*|&$(meam_SYSLIB) |' ../Makefile.package
|
||||
fi
|
||||
|
||||
cp pair_meam.cpp ..
|
||||
|
||||
|
@ -17,8 +19,10 @@ if (test $1 = 1) then
|
|||
|
||||
elif (test $1 = 0) then
|
||||
|
||||
sed -i -e 's/[^ \t]*meam //' ../Makefile.package
|
||||
sed -i -e 's/[^ \t]*meam_[^ \t]*) //' ../Makefile.package
|
||||
if (test -e ../Makefile.package) then
|
||||
sed -i -e 's/[^ \t]*meam //' ../Makefile.package
|
||||
sed -i -e 's/[^ \t]*meam_[^ \t]*) //' ../Makefile.package
|
||||
fi
|
||||
|
||||
rm ../pair_meam.cpp
|
||||
|
||||
|
|
|
@ -3,10 +3,12 @@
|
|||
|
||||
if (test $1 = 1) then
|
||||
|
||||
sed -i -e 's/[^ \t]*poems //' ../Makefile.package
|
||||
sed -i -e 's|^PKG_INC =[ \t]*|&-I../../lib/poems |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_PATH =[ \t]*|&-L../../lib/poems |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_LIB =[ \t]*|&-lpoems |' ../Makefile.package
|
||||
if (test -e ../Makefile.package) then
|
||||
sed -i -e 's/[^ \t]*poems //' ../Makefile.package
|
||||
sed -i -e 's|^PKG_INC =[ \t]*|&-I../../lib/poems |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_PATH =[ \t]*|&-L../../lib/poems |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_LIB =[ \t]*|&-lpoems |' ../Makefile.package
|
||||
fi
|
||||
|
||||
cp fix_poems.cpp ..
|
||||
|
||||
|
@ -14,7 +16,9 @@ if (test $1 = 1) then
|
|||
|
||||
elif (test $1 = 0) then
|
||||
|
||||
sed -i -e 's/[^ \t]*poems //' ../Makefile.package
|
||||
if (test -e ../Makefile.package) then
|
||||
sed -i -e 's/[^ \t]*poems //' ../Makefile.package
|
||||
fi
|
||||
|
||||
rm ../fix_poems.cpp
|
||||
|
||||
|
|
|
@ -22,7 +22,6 @@ done
|
|||
# issue warning if any package file is not in src or is different
|
||||
|
||||
if (test $2 = "status") then
|
||||
|
||||
if (test $installed = 1) then
|
||||
echo "Installed YES: package $1"
|
||||
for file in *.cpp *.h; do
|
||||
|
@ -83,8 +82,8 @@ elif (test $2 = "overwrite") then
|
|||
# re-install so Install.sh will edit Makefile.pacakge
|
||||
|
||||
elif (test $2 = "regenerate") then
|
||||
|
||||
if (test $installed = 1) then
|
||||
/bin/sh Install.sh 1
|
||||
fi
|
||||
|
||||
fi
|
||||
|
|
|
@ -3,13 +3,15 @@
|
|||
|
||||
if (test $1 = 1) then
|
||||
|
||||
sed -i -e 's/[^ \t]*reax //' ../Makefile.package
|
||||
sed -i -e 's/[^ \t]*reax_[^ \t]*) //' ../Makefile.package
|
||||
sed -i -e 's|^PKG_INC =[ \t]*|&-I../../lib/reax |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_PATH =[ \t]*|&-L../../lib/reax |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_LIB =[ \t]*|&-lreax |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_SYSPATH =[ \t]*|&$(reax_SYSPATH) |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_SYSLIB =[ \t]*|&$(reax_SYSLIB) |' ../Makefile.package
|
||||
if (test -e ../Makefile.package) then
|
||||
sed -i -e 's/[^ \t]*reax //' ../Makefile.package
|
||||
sed -i -e 's/[^ \t]*reax_[^ \t]*) //' ../Makefile.package
|
||||
sed -i -e 's|^PKG_INC =[ \t]*|&-I../../lib/reax |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_PATH =[ \t]*|&-L../../lib/reax |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_LIB =[ \t]*|&-lreax |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_SYSPATH =[ \t]*|&$(reax_SYSPATH) |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_SYSLIB =[ \t]*|&$(reax_SYSLIB) |' ../Makefile.package
|
||||
fi
|
||||
|
||||
cp pair_reax.cpp ..
|
||||
cp pair_reax.h ..
|
||||
|
@ -20,8 +22,10 @@ if (test $1 = 1) then
|
|||
|
||||
elif (test $1 = 0) then
|
||||
|
||||
sed -i -e 's/[^ \t]*reax //' ../Makefile.package
|
||||
sed -i -e 's/[^ \t]*reax_[^ \t]*) //' ../Makefile.package
|
||||
if (test -e ../Makefile.package) then
|
||||
sed -i -e 's/[^ \t]*reax //' ../Makefile.package
|
||||
sed -i -e 's/[^ \t]*reax_[^ \t]*) //' ../Makefile.package
|
||||
fi
|
||||
|
||||
rm ../pair_reax.cpp
|
||||
rm ../pair_reax.h
|
||||
|
|
|
@ -3,21 +3,25 @@
|
|||
|
||||
if (test $1 = 1) then
|
||||
|
||||
sed -i -e 's/[^ \t]*atc //' ../Makefile.package
|
||||
sed -i -e 's/[^ \t]*atc_[^ \t]*) //' ../Makefile.package
|
||||
sed -i -e 's|^PKG_INC =[ \t]*|&-I../../lib/atc |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_PATH =[ \t]*|&-L../../lib/atc |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_LIB =[ \t]*|&-latc |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_SYSPATH =[ \t]*|&$(user-atc_SYSPATH) |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_SYSLIB =[ \t]*|&$(user-atc_SYSLIB) |' ../Makefile.package
|
||||
if (test -e ../Makefile.package) then
|
||||
sed -i -e 's/[^ \t]*atc //' ../Makefile.package
|
||||
sed -i -e 's/[^ \t]*atc_[^ \t]*) //' ../Makefile.package
|
||||
sed -i -e 's|^PKG_INC =[ \t]*|&-I../../lib/atc |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_PATH =[ \t]*|&-L../../lib/atc |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_LIB =[ \t]*|&-latc |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_SYSPATH =[ \t]*|&$(user-atc_SYSPATH) |' ../Makefile.package
|
||||
sed -i -e 's|^PKG_SYSLIB =[ \t]*|&$(user-atc_SYSLIB) |' ../Makefile.package
|
||||
fi
|
||||
|
||||
cp fix_atc.h ..
|
||||
cp fix_atc.cpp ..
|
||||
|
||||
elif (test $1 = 0) then
|
||||
|
||||
sed -i -e 's/[^ \t]*atc //' ../Makefile.package
|
||||
sed -i -e 's/[^ \t]*atc_[^ \t]*) //' ../Makefile.package
|
||||
if (test -e ../Makefile.package) then
|
||||
sed -i -e 's/[^ \t]*atc //' ../Makefile.package
|
||||
sed -i -e 's/[^ \t]*atc_[^ \t]*) //' ../Makefile.package
|
||||
fi
|
||||
|
||||
rm ../fix_atc.h
|
||||
rm ../fix_atc.cpp
|
||||
|
|
Loading…
Reference in New Issue