# /usr/src/usr.bin/calendar/Makefile for MacMach

include /usr/src/COPYRIGHTS

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

all:	.depend calendar

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

install: FRC
	install -c -s -o bin -g bin -m 755 calendar ${DESTDIR}/usr/lib
	install -c -o bin -g bin -m 755 calendar.sh ${DESTDIR}/usr/bin/calendar

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

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:
