#	vmail
#
#	Interactive screen-based mail handler that sits on top of MH.
#
#	Copyright (C) J. Zobel, University of Melbourne, October 1987.

VERS=\"10/87\"

DESTDIR=
BIN=/usr/local
OBJ=call.o choose.o cmds.o find.o inc.o init.o load.o low.o main.o move.o page.o

LDFLAGS=
#	this line is
#LDFLAGS=-k 48k
#	if -k option recognized
#	-k sets required stack space on the PE C compiler

CFLAGS=-DVERSION=$(VERS)
#	CFLAGS are
#CFLAGS=-DVERSION=$(VERS) -DUSDATE
#	if dates required in US format

LIBS=-lcurses -ltermcap

vmail: $(OBJ)
	$(CC) $(LDFLAGS) -o vmail $(OBJ) $(LIBS)

$(OBJ): defs.h macro.h Makefile

install: $(DESTDIR)$(BIN)/vmail

$(DESTDIR)$(BIN)/vmail: vmail
	mv vmail $(DESTDIR)$(BIN)/vmail

clean:
	rm $(OBJ) core
