#
# Macintosh Messages for UNIX
#
# djh@munnari.OZ.AU, 08/05/90
#

LDFLAGS = -lcap

all: macwho messages macuser

macwho: macwho.o notify.o
	cc -o macwho macwho.o notify.o ${LDFLAGS}

messages: messages.o notify.o
	cc -o messages messages.o notify.o ${LDFLAGS}
	/bin/rm -f macto macwall macmail macwrite
	ln messages macto
	ln messages macwall
	ln messages macmail
	ln messages macwrite
	/bin/rm -f messages

macuser: macuser.c notify.h
	cc -o macuser macuser.c ${LDFLAGS}

macwho.o: macwho.c notify.h
	cc -c macwho.c

messages.o: messages.c notify.h
	cc -c messages.c

notify.o: notify.c notify.h
	cc -c notify.c

shar:
	/usr/local/shar Makefile *.h *.c *.l dot.forward messages.README \
		messages.1.2.sit.hqx > messages.1.3.shar

clean:
	/bin/rm -f *.o core macto macwrite macwall macmail macuser macwho
