forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3016 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
28d86b010e
commit
f3a2085966
|
@ -8,7 +8,7 @@ SHELL = /bin/sh
|
|||
include Makefile.package
|
||||
|
||||
CC = g++
|
||||
CCFLAGS = -g $(PKGINC) -DFFT_FFTW -DLAMMPS_GZIP -DMPICH_IGNORE_CXX_SEEK
|
||||
CCFLAGS = -g -DFFT_FFTW -DLAMMPS_GZIP -DMPICH_IGNORE_CXX_SEEK $(PKGINC)
|
||||
DEPFLAGS = -M
|
||||
LINK = g++
|
||||
LINKFORT = -L/opt/intel/fce/10.0.023/lib
|
||||
|
|
|
@ -3,19 +3,21 @@
|
|||
|
||||
if ($1 == 1) then
|
||||
|
||||
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
|
||||
|
||||
cp style_meam.h ..
|
||||
|
||||
cp pair_meam.cpp ..
|
||||
|
||||
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
|
||||
|
||||
sed -i 's/\S*meam //' ../Makefile.package
|
||||
|
||||
rm ../style_meam.h
|
||||
touch ../style_meam.h
|
||||
|
||||
|
@ -23,6 +25,4 @@ else if ($1 == 0) then
|
|||
|
||||
rm ../pair_meam.h
|
||||
|
||||
sed -i 's/\S*meam //' ../Makefile.package
|
||||
|
||||
endif
|
||||
|
|
|
@ -3,19 +3,21 @@
|
|||
|
||||
if ($1 == 1) then
|
||||
|
||||
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
|
||||
|
||||
cp style_poems.h ..
|
||||
|
||||
cp fix_poems.cpp ..
|
||||
|
||||
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
|
||||
|
||||
sed -i 's/\S*poems //' ../Makefile.package
|
||||
|
||||
rm ../style_poems.h
|
||||
touch ../style_poems.h
|
||||
|
||||
|
@ -23,6 +25,4 @@ else if ($1 == 0) then
|
|||
|
||||
rm ../fix_poems.h
|
||||
|
||||
sed -i 's/\S*poems //' ../Makefile.package
|
||||
|
||||
endif
|
||||
|
|
|
@ -3,6 +3,11 @@
|
|||
|
||||
if ($1 == 1) then
|
||||
|
||||
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
|
||||
|
||||
cp style_reax.h ..
|
||||
|
||||
cp pair_reax.cpp ..
|
||||
|
@ -13,13 +18,10 @@ 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
|
||||
|
||||
sed -i 's/\S*reax //' ../Makefile.package
|
||||
|
||||
rm ../style_reax.h
|
||||
touch ../style_reax.h
|
||||
|
||||
|
@ -31,6 +33,4 @@ else if ($1 == 0) then
|
|||
rm ../fix_reax_bonds.h
|
||||
rm ../fix_reax_bonds.cpp
|
||||
|
||||
sed -i 's/\S*reax //' ../Makefile.package
|
||||
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue