quantum-espresso/pwtools/Makefile

57 lines
1.5 KiB
Makefile

# Makefile for tools
include ../make.sys
# location of needed modules
MODFLAGS= $(MOD_FLAG)../iotk/src $(MOD_FLAG)../Modules \
$(MOD_FLAG)../PW $(MOD_FLAG).
PWOBJS = ../PW/libpw.a
QEMODS = ../Modules/libqemod.a
TLDEPS= bindir mods libs pw
all : tldeps band_plot.x dist.x ev.x kpoints.x \
pwi2xsf.x bands_FS.x kvecs_FS.x
band_plot.x : band_plot.o $(LIBOBJS)
$(LD) $(LDFLAGS) -o $@ band_plot.o $(QEMODS) $(LIBOBJS) $(LIBS)
- ( cd ../bin ; ln -fs ../pwtools/$@ . )
dist.x : dist.o $(PWOBJS) $(QEMODS) $(LIBOBJS)
$(LD) $(LDFLAGS) -o $@ \
dist.o $(PWOBJS) $(QEMODS) $(LIBOBJS) $(LIBS)
- ( cd ../bin ; ln -fs ../pwtools/$@ . )
ev.x : ev.o ev_xml.o $(PWOBJS) $(QEMODS) $(LIBOBJS)
$(LD) $(LDFLAGS) -o $@ \
ev.o ev_xml.o $(PWOBJS) $(QEMODS) $(LIBOBJS) $(LIBS)
- ( cd ../bin ; ln -fs ../pwtools/$@ . )
kpoints.x : kpoints.o $(PWOBJS) $(QEMODS) $(LIBOBJS)
$(LD) $(LDFLAGS) -o $@ \
kpoints.o $(PWOBJS) $(QEMODS) $(LIBOBJS) $(LIBS)
- ( cd ../bin ; ln -fs ../pwtools/$@ . )
pwi2xsf.x : pwi2xsf.o $(PWOBJS) $(QEMODS) $(LIBOBJS)
$(LD) $(LDFLAGS) -o $@ \
pwi2xsf.o $(PWOBJS) $(QEMODS) $(LIBOBJS) $(LIBS)
- ( cd ../bin ; ln -fs ../pwtools/$@ . )
# Isaev
bands_FS.x : bands_FS.o
$(LD) $(LDFLAGS) -o $@ bands_FS.o $(LIBS)
- ( cd ../bin ; ln -fs ../pwtools/$@ . )
kvecs_FS.x : kvecs_FS.o
$(LD) $(LDFLAGS) -o $@ kvecs_FS.o $(LIBS)
- ( cd ../bin ; ln -fs ../pwtools/$@ . )
tldeps:
test -n "$(TLDEPS)" && ( cd .. ; $(MAKE) $(MFLAGS) $(TLDEPS) || exit 1) || :
clean :
- /bin/rm -f pwi2xsf pwi2xsf_old *.x *.o *~ *.F90 *.mod *.d *.i *.L
include make.depend