# /usr/src/ucb/msgs/Makefile for MacMach

include /usr/src/COPYRIGHTS

CFLAGS=	-O
LIBC=	/lib/libc.a
SRCS=	msgs.c
OBJS=	msgs.o

all:	.depend msgs

msgs:	${OBJS} ${LIBC}
	${CC} -o $@ ${CFLAGS} ${OBJS} -ltermlib

install: FRC
	install -c -s -o bin -g bin -m 755 msgs ${DESTDIR}/usr/ucb/msgs

clean:	FRC
	rm -f .depend ${OBJS} core msgs

compress: clean
	find . -type f ! -name Makefile ! -name '*.Z' -exec compress {} \;

uncompress: FRC
	find . -type f ! -name Makefile -name '*.Z' -exec uncompress {} \;

.depend: ${SRCS}
	@echo "#`date`" >.depend
	mkdep -f .depend ${CFLAGS} ${SRCS}

-include .depend

FRC:
