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

include /usr/src/COPYRIGHTS

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

all:	.depend passwd

passwd: ${LIBC}
	${CC} -o $@ ${CFLAGS} ${SRCS}

install: FRC
	install -c -s -o root -g bin -m 4755 passwd ${DESTDIR}/bin/passwd
	rm -f ${DESTDIR}/bin/chfn; ln -s passwd ${DESTDIR}/bin/chfn
	rm -f ${DESTDIR}/bin/chsh; ln -s passwd ${DESTDIR}/bin/chsh

clean:	FRC
	rm -f .depend core passwd

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 -p -f .depend ${CFLAGS} ${SRCS}

-include .depend

FRC:
