# /usr/src/etc/getty/Makefile for MacMach

include /usr/src/COPYRIGHTS

CFLAGS=	-O
LIBC=	/lib/libc.a
SRCS=	main.c init.c subr.c gettytab.c get_date.c
OBJS=	main.o init.o subr.o gettytab.o get_date.o

all:	.depend getty

getty:	${OBJS} ${LIBC}
	${CC} -o $@ ${CFLAGS} ${OBJS}

install: FRC
	install -c -s -o bin -g bin -m 755 getty ${DESTDIR}/etc/getty
	install -c -o bin -g bin -m 444 gettytab ${DESTDIR}/etc/gettytab

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

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:
