# /usr/src/bin/cpio/Makefile for MacMach

include /usr/src/COPYRIGHTS

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

all:	.depend cpio

cpio:	${LIBC}
	${CC} -o $@ ${CFLAGS} cpio.c

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

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

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:
