-
Notifications
You must be signed in to change notification settings - Fork 0
/
depend.sh
executable file
·22 lines (21 loc) · 1.08 KB
/
depend.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
cd src
FILES=$(find . -type f -iname '*.F90')
FILES=$(sed -e 's/\.\/potential_TINKER\.F90//' <<< $FILES)
FILES=$(sed -e 's/\.\/potential_LAMMPS\.F90//' <<< $FILES)
FILES=$(sed -e 's/\.\/binaries\.F90//' <<< $FILES)
FILES=$(sed -e 's/\.\/ascii2POSCAR\.F90//' <<< $FILES)
FILES=$(sed -e 's/\.\/convex_hull\.F90//' <<< $FILES)
FILES=$(sed -e 's/\.\/expand_poslows\.F90//' <<< $FILES)
FILES=$(sed -e 's/\.\/msock_slave_template\.F90//' <<< $FILES)
FILES=$(sed -e 's/\.\/POSCAR2ascii\.F90//' <<< $FILES)
FILES=$(sed -e 's/\.\/PWSCF_restruct\.F90//' <<< $FILES)
FILES=$(sed -e 's/\.\/recompute_kpt\.F90//' <<< $FILES)
FILES=$(sed -e 's/\.\/ternaries\.F90//' <<< $FILES)
FILES=$(sed -e 's/\.\/vasp_recompute_cell\.F90//' <<< $FILES)
FILES=$(sed -e 's/\.\/vasp_recompute_kpt\.F90//' <<< $FILES)
FILES=$(sed -e 's/\.\/vasp_recompute_kpt_odd\.F90//' <<< $FILES)
#FILES=$(find . -type f -iname '*.F90' |grep -v potential_TINKER |grep -v potential_LAMMPS.F90)
makedepf90 $FILES >dep.mk
sed -i '/^\.\/interface_mod\.o/d' dep.mk
cd ..
#gcc -MM -DQSC_STANDALONE `find . -iname '*.c' ; find . -iname '*.cpp'` >cfiles.dep