include ../common.mak

zsh-completions = _vmcp
bash-completions = vmcp.bash

include ../common_autocomp.mak

all: vmcp

libs =	$(rootdir)/libvmcp/libvmcp.a $(rootdir)/libutil/libutil.a

vmcp: vmcp.o $(libs)

install: all
	$(INSTALL) -d -m 755 $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man8
	$(INSTALL) -g $(GROUP) -o $(OWNER) -m 755 vmcp $(DESTDIR)$(BINDIR)
	$(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 vmcp.8 \
		$(DESTDIR)$(MANDIR)/man8

clean:
	rm -f *.o *~ vmcp core

.PHONY: all install clean
