2003-12-02 23:47:00 +08:00
|
|
|
default :
|
2003-11-20 01:10:26 +08:00
|
|
|
@echo 'to install, type at the shell prompt:'
|
2004-02-24 17:48:24 +08:00
|
|
|
@echo ' ./configure'
|
2003-11-20 01:10:26 +08:00
|
|
|
@echo ' make target'
|
|
|
|
@echo 'where target is one of the following:'
|
|
|
|
@echo ' pw basic code for scf, structure optimization, MD'
|
|
|
|
@echo ' fpmd FPMD code for Car-Parrinello MD'
|
|
|
|
@echo ' cp CP code: CP MD with ultrasoft pseudopotentials'
|
|
|
|
@echo ' ph phonon code'
|
|
|
|
@echo ' pp postprocessing programs'
|
2003-12-11 19:10:03 +08:00
|
|
|
@echo ' gamma Gamma-only version of phonon code'
|
2003-11-20 01:10:26 +08:00
|
|
|
@echo ' pwcond ballistic conductance'
|
|
|
|
@echo ' d3 third-order derivatives'
|
|
|
|
@echo ' tools misc tools for data analysis'
|
2004-05-14 20:55:23 +08:00
|
|
|
@echo ' ld1 utilities for pseudopotential generation'
|
2003-11-20 01:10:26 +08:00
|
|
|
@echo ' upf utilities for pseudopotential conversion'
|
2005-06-03 04:06:41 +08:00
|
|
|
@echo ' pwall same as "make pw ph pp gamma pwcond d3 tools"'
|
2004-05-14 20:55:23 +08:00
|
|
|
@echo ' all same as "make pwall fpmd cp ld1 upf"'
|
2003-11-20 01:10:26 +08:00
|
|
|
@echo ' clean remove executables and objects'
|
|
|
|
@echo ' veryclean revert distribution to the original status'
|
|
|
|
@echo ' tar create a tarball of the source tree'
|
2004-02-20 04:10:15 +08:00
|
|
|
@echo ' tar-gui create a tarball of the GUI sources'
|
2003-01-20 05:58:50 +08:00
|
|
|
|
2005-04-15 05:08:53 +08:00
|
|
|
pw : bindir mods libs libiotk
|
2005-01-14 19:32:21 +08:00
|
|
|
if test -d PW ; then \
|
|
|
|
( cd PW ; if test "$(MAKE)" = "" ; then make $(MFLAGS) all ; \
|
|
|
|
else $(MAKE) $(MFLAGS) all ; fi ) ; fi
|
2004-09-02 01:56:56 +08:00
|
|
|
|
2005-04-15 05:08:53 +08:00
|
|
|
fpmd : bindir mods libs libiotk
|
2005-01-14 19:32:21 +08:00
|
|
|
if test -d CPV ; then \
|
|
|
|
( cd CPV ; if test "$(MAKE)" = "" ; then make $(MFLAGS) fpmd ; \
|
|
|
|
else $(MAKE) $(MFLAGS) fpmd ; fi ) ; fi
|
2004-09-02 01:56:56 +08:00
|
|
|
|
2005-04-15 05:08:53 +08:00
|
|
|
cp : bindir mods libs libiotk
|
2005-01-14 19:32:21 +08:00
|
|
|
if test -d CPV ; then \
|
|
|
|
( cd CPV ; if test "$(MAKE)" = "" ; then make $(MFLAGS) cp ; \
|
|
|
|
else $(MAKE) $(MFLAGS) cp ; fi ) ; fi
|
2003-01-20 05:58:50 +08:00
|
|
|
|
2004-09-06 23:52:02 +08:00
|
|
|
ph : bindir mods libs pw
|
2005-01-14 19:32:21 +08:00
|
|
|
if test -d PH ; then \
|
|
|
|
( cd PH ; if test "$(MAKE)" = "" ; then make $(MFLAGS) all ; \
|
|
|
|
else $(MAKE) $(MFLAGS) all ; fi ) ; fi
|
2004-09-02 01:56:56 +08:00
|
|
|
|
2004-09-06 23:52:02 +08:00
|
|
|
pp : bindir mods libs pw
|
2005-01-14 19:32:21 +08:00
|
|
|
if test -d PP ; then \
|
|
|
|
( cd PP ; if test "$(MAKE)" = "" ; then make $(MFLAGS) all ; \
|
|
|
|
else $(MAKE) $(MFLAGS) all ; fi ) ; fi
|
2004-09-03 01:07:31 +08:00
|
|
|
|
2004-09-06 23:52:02 +08:00
|
|
|
gamma : bindir mods libs pw
|
2005-01-14 19:32:21 +08:00
|
|
|
if test -d Gamma ; then \
|
|
|
|
( cd Gamma ; if test "$(MAKE)" = "" ; then make $(MFLAGS) all ; \
|
|
|
|
else $(MAKE) $(MFLAGS) all ; fi ) ; fi
|
2004-09-02 01:56:56 +08:00
|
|
|
|
2004-09-06 23:52:02 +08:00
|
|
|
pwcond : bindir mods libs pw pp
|
2005-01-14 19:32:21 +08:00
|
|
|
if test -d PWCOND ; then \
|
|
|
|
( cd PWCOND ; if test "$(MAKE)" = "" ; then make $(MFLAGS) all ; \
|
|
|
|
else $(MAKE) $(MFLAGS) all ; fi ) ; fi
|
2004-09-02 01:56:56 +08:00
|
|
|
|
2004-09-06 23:52:02 +08:00
|
|
|
d3 : bindir mods libs pw ph
|
2005-01-14 19:32:21 +08:00
|
|
|
if test -d D3 ; then \
|
|
|
|
( cd D3 ; if test "$(MAKE)" = "" ; then make $(MFLAGS) all ; \
|
|
|
|
else $(MAKE) $(MFLAGS) all ; fi ) ; fi
|
2004-09-02 01:56:56 +08:00
|
|
|
|
2004-09-06 23:52:02 +08:00
|
|
|
raman : bindir mods libs pw ph
|
2005-01-14 19:32:21 +08:00
|
|
|
if test -d Raman ; then \
|
|
|
|
( cd Raman ; if test "$(MAKE)" = "" ; then make $(MFLAGS) all ; \
|
|
|
|
else $(MAKE) $(MFLAGS) all ; fi ) ; fi
|
2003-01-20 05:58:50 +08:00
|
|
|
|
2004-09-06 23:52:02 +08:00
|
|
|
tools : bindir mods libs pw
|
2005-01-14 19:32:21 +08:00
|
|
|
if test -d pwtools ; then \
|
|
|
|
( cd pwtools ; if test "$(MAKE)" = "" ; then make $(MFLAGS) all ; \
|
|
|
|
else $(MAKE) $(MFLAGS) all ; fi ) ; fi
|
2004-09-03 01:07:31 +08:00
|
|
|
|
2004-09-06 23:52:02 +08:00
|
|
|
ld1 : bindir mods libs pw
|
2005-01-14 19:32:21 +08:00
|
|
|
if test -d atomic ; then \
|
|
|
|
( cd atomic ; if test "$(MAKE)" = "" ; then make $(MFLAGS) all ; \
|
|
|
|
else $(MAKE) $(MFLAGS) all ; fi ) ; fi
|
2004-09-02 01:56:56 +08:00
|
|
|
|
2004-09-03 18:57:12 +08:00
|
|
|
upf : mods libs
|
2005-01-14 19:32:21 +08:00
|
|
|
if test -d upftools ; then \
|
|
|
|
( cd upftools ; if test "$(MAKE)" = "" ; then make $(MFLAGS) all ; \
|
|
|
|
else $(MAKE) $(MFLAGS) all ; fi ) ; fi
|
2003-09-24 17:59:22 +08:00
|
|
|
|
2005-04-15 05:08:53 +08:00
|
|
|
libiotk :
|
|
|
|
if test -d iotk ; then \
|
|
|
|
( cd iotk ; if test "$(MAKE)" = "" ; then make $(MFLAGS) libiotk.a ; \
|
|
|
|
else $(MAKE) $(MFLAGS) libiotk.a ; fi ) ; fi
|
2004-10-16 01:25:56 +08:00
|
|
|
|
2005-04-15 05:08:53 +08:00
|
|
|
pw_export : libiotk bindir mods libs pw
|
2005-01-14 19:32:21 +08:00
|
|
|
if test -d PP ; then \
|
|
|
|
( cd PP ; if test "$(MAKE)" = "" ; then make $(MFLAGS) pw_export.x ; \
|
|
|
|
else $(MAKE) $(MFLAGS) pw_export.x ; fi ) ; fi
|
2004-10-16 01:25:56 +08:00
|
|
|
|
2005-06-03 04:06:41 +08:00
|
|
|
pwall : pw ph pp gamma pwcond d3 tools
|
2004-05-14 20:55:23 +08:00
|
|
|
all : pwall fpmd cp ld1 upf
|
2003-01-20 05:58:50 +08:00
|
|
|
|
2004-08-10 00:35:51 +08:00
|
|
|
mods :
|
2005-01-14 19:32:21 +08:00
|
|
|
( cd Modules ; if test "$(MAKE)" = "" ; then make $(MFLAGS) all ; \
|
|
|
|
else $(MAKE) $(MFLAGS) all ; fi )
|
2004-08-10 00:35:51 +08:00
|
|
|
libs : mods
|
2005-01-14 19:32:21 +08:00
|
|
|
( cd clib ; if test "$(MAKE)" = "" ; then make $(MFLAGS) all ; \
|
|
|
|
else $(MAKE) $(MFLAGS) all ; fi )
|
|
|
|
( cd flib ; if test "$(MAKE)" = "" ; then make $(MFLAGS) all ; \
|
|
|
|
else $(MAKE) $(MFLAGS) all ; fi )
|
2004-09-06 23:52:02 +08:00
|
|
|
bindir :
|
|
|
|
test -d bin || mkdir bin
|
2003-11-20 01:10:26 +08:00
|
|
|
|
|
|
|
# remove object files and executables
|
2003-12-02 23:47:00 +08:00
|
|
|
clean :
|
2005-03-09 02:44:10 +08:00
|
|
|
touch make.sys
|
2004-11-09 18:53:55 +08:00
|
|
|
# make complains if they aren't there; same with make.depend below
|
2004-09-14 20:55:07 +08:00
|
|
|
for dir in \
|
2005-01-06 00:26:09 +08:00
|
|
|
CPV D3 Gamma Modules PH PP PW PWCOND Raman \
|
2005-04-15 05:08:53 +08:00
|
|
|
atomic clib flib pwtools upftools iotk \
|
2004-09-14 20:55:07 +08:00
|
|
|
; do \
|
2004-03-16 22:47:58 +08:00
|
|
|
if test -d $$dir ; then \
|
2005-01-14 19:32:21 +08:00
|
|
|
( cd $$dir ; touch make.depend ; \
|
|
|
|
if test "$(MAKE)" = "" ; then make $(MFLAGS) clean ; \
|
2005-01-15 19:05:58 +08:00
|
|
|
else $(MAKE) $(MFLAGS) clean ; fi ) \
|
2004-03-16 22:47:58 +08:00
|
|
|
fi \
|
2003-11-20 01:10:26 +08:00
|
|
|
done
|
2004-09-03 18:57:12 +08:00
|
|
|
- /bin/rm -rf bin/*.x
|
2003-11-20 01:10:26 +08:00
|
|
|
|
|
|
|
# remove configuration files too
|
2003-12-02 23:47:00 +08:00
|
|
|
veryclean : clean
|
2005-03-09 02:44:10 +08:00
|
|
|
- /bin/rm -rf make.sys \
|
2004-09-03 18:57:12 +08:00
|
|
|
config.log config.status autom4te.cache \
|
2005-01-08 00:03:29 +08:00
|
|
|
espresso.tar.gz CPV/version.h \
|
2003-12-02 23:47:00 +08:00
|
|
|
intel.pcl */intel.pcl
|
2004-06-10 22:58:51 +08:00
|
|
|
- cd examples ; ./make_clean
|
2005-01-14 19:32:21 +08:00
|
|
|
- if test -d GUI ; then \
|
|
|
|
( cd GUI ; if test "$(MAKE)" = "" ; then make $(MFLAGS) veryclean ; \
|
2005-02-07 23:35:37 +08:00
|
|
|
else $(MAKE) $(MFLAGS) veryclean ; fi ) \
|
|
|
|
fi
|
2003-01-20 05:58:50 +08:00
|
|
|
|
2003-12-02 23:47:00 +08:00
|
|
|
tar :
|
2004-12-22 00:55:34 +08:00
|
|
|
tar cvf espresso.tar \
|
2004-08-10 00:35:51 +08:00
|
|
|
License README* */README* Makefile */Makefile \
|
2004-02-06 20:02:47 +08:00
|
|
|
configure configure.ac config.guess config.sub install-sh \
|
2005-03-18 19:24:02 +08:00
|
|
|
make.sys.in \
|
|
|
|
makedeps.sh moduledep.sh includedep.sh \
|
|
|
|
configure.old \
|
2003-11-21 22:37:26 +08:00
|
|
|
*/*.f90 */*.c */*.f clib/*.h include/*.h* upftools/UPF \
|
2004-09-06 23:52:02 +08:00
|
|
|
pwtools/*.awk pwtools/*.sh
|
2003-11-21 01:36:20 +08:00
|
|
|
# archive a few entire directories, but without CVS subdirs
|
2005-04-19 05:08:44 +08:00
|
|
|
find install Doc atomic_doc examples pseudo iotk -type f \
|
2004-12-22 00:55:34 +08:00
|
|
|
| grep -v -e /CVS/ -e /results | xargs tar rvf espresso.tar
|
|
|
|
gzip espresso.tar
|
2003-11-13 19:40:18 +08:00
|
|
|
|
2004-02-20 04:10:15 +08:00
|
|
|
# TAR-GUI works only if we have CVS-sources !!!
|
|
|
|
tar-gui :
|
2004-02-20 23:21:16 +08:00
|
|
|
@if test -d GUI/PWgui ; then \
|
2004-03-16 22:47:58 +08:00
|
|
|
cd GUI/PWgui ; \
|
2005-01-14 19:32:21 +08:00
|
|
|
if test "$(MAKE)" = "" ; then \
|
|
|
|
make $(MFLAGS) clean cvsinit pwgui-source-notcl; \
|
|
|
|
else $(MAKE) $(MFLAGS) clean cvsinit pwgui-source-notcl; fi \
|
2004-03-16 22:47:58 +08:00
|
|
|
mv PWgui-*.tgz ../.. ; \
|
2004-02-20 04:10:15 +08:00
|
|
|
else \
|
2004-03-16 22:47:58 +08:00
|
|
|
echo ; \
|
|
|
|
echo " Sorry, tar-gui works only for CVS-sources !!!" ; \
|
|
|
|
echo ; \
|
2004-02-20 04:10:15 +08:00
|
|
|
fi
|
2004-09-06 23:52:02 +08:00
|
|
|
|
|
|
|
links : bindir
|
|
|
|
( cd bin/ ; \
|
|
|
|
for exe in \
|
|
|
|
../CPV/cp.x \
|
|
|
|
../D3/d3.x \
|
2004-11-25 22:51:47 +08:00
|
|
|
../CPV/fpmd.x ../CPV/fpmdpp.x \
|
2004-09-06 23:52:02 +08:00
|
|
|
../Gamma/phcg.x \
|
|
|
|
../PH/ph.x \
|
|
|
|
../PP/average.x ../PP/bands.x ../PP/chdens.x ../PP/dos.x \
|
|
|
|
../PP/efg.x ../PP/plotband.x ../PP/plotrho.x ../PP/pmw.x \
|
|
|
|
../PP/pp.x ../PP/projwfc.x ../PP/pw2casino.x ../PP/pw2wan.x \
|
2004-10-16 01:25:56 +08:00
|
|
|
../PP/voronoy.x ../PP/pw_export.x \
|
2004-09-06 23:52:02 +08:00
|
|
|
../PW/memory.x ../PW/pw.x \
|
|
|
|
../PWCOND/pwcond.x \
|
|
|
|
../Raman/ram.x \
|
|
|
|
../atomic/ld1.x \
|
|
|
|
../pwtools/band_plot.x ../pwtools/dist.x ../pwtools/dynmat.x \
|
|
|
|
../pwtools/ev.x ../pwtools/fqha.x ../pwtools/kpoints.x \
|
|
|
|
../pwtools/matdyn.x ../pwtools/path_int.x ../pwtools/pwi2xsf.x \
|
|
|
|
../pwtools/q2r.x \
|
|
|
|
; do \
|
|
|
|
if test -f $$exe ; then ln -fs $$exe . ; fi \
|
|
|
|
done \
|
|
|
|
)
|