-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile_amber11
21 lines (18 loc) · 1.08 KB
/
Makefile_amber11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Usage: make -f Makefile_amber11 (in XXXX_build directory)
# Build AmberTools in ./build/amber11-build
# and copy necessary files into ./amber11
# Assumes the source tree of the original AmberTools is in ../amber11
# Note: make sure that the correct version of gcc/gfortran is found in PATH!
# In the author's environment: (as of 2019/08/15)
# Mac: export PATH=/usr/local/gcc8/bin:$PATH
# Win: enable_brew
OPWD = $(PWD)
amber11 : ../amber11/src/antechamber/*.[ch] ../amber11/src/sqm/*.f ../amber11/src/config.h
(cd ../amber11; find src -type d -exec mkdir -p $(OPWD)/build/amber11-build/{} ';'; find src -not -type d -not -path '*/.*' -exec cp -p {} $(OPWD)/build/amber11-build/{} ';')
(export AMBERHOME=$(OPWD)/build/amber11-build && cd build/amber11-build/src && make)
rm -rf amber11
mkdir -p amber11/dat/leap/parm
cp -p ../amber11/dat/leap/parm/{gaff,parm99}.dat amber11/dat/leap/parm
cp -rp ../amber11/dat/antechamber amber11/dat
mkdir -p amber11/bin
cp -r build/amber11-build/bin/{am1bcc,atomtype,parmchk,antechamber,bondtype,resp,respgen,espgen,prepgen,sqm}* amber11/bin