# /usr/src/usr.lib/liby/Makefile for MacMach

include /usr/src/COPYRIGHTS

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

all:	.depend liby.a

liby.a: ${OBJS}
	ar cr $@ ${OBJS}

install: FRC
	install -c -o bin -g bin -m 644 liby.a ${DESTDIR}/usr/lib/liby.a
	ranlib ${DESTDIR}/usr/lib/liby.a

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

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

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

tags:	FRC
	ctags ${SRCS}

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

-include .depend

FRC:
