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

include /usr/src/COPYRIGHTS

CFLAGS=	-O
LIBC=	/lib/libc.a
SRCS=	enroll.c lib.c xget.c xsend.c
OBJS=	enroll.o lib.o xget.o xsend.o

all:	.depend enroll xsend xget

enroll: enroll.o lib.o ${LIBC}
	${CC} enroll.o lib.o -lmp -o $@

xget: xget.o lib.o ${LIBC}
	${CC} xget.o lib.o -lmp -o $@

xsend: xsend.o lib.o ${LIBC}
	${CC} xsend.o lib.o -lmp -o $@

install: FRC
	install -c -s -o bin -g bin -m 755 enroll ${DESTDIR}/usr/bin/enroll
	install -c -s -o bin -g bin -m 755 xget ${DESTDIR}/usr/bin/xget
	install -c -s -o bin -g bin -m 755 xsend ${DESTDIR}/usr/bin/xsend

clean:	FRC
	rm -f .depend ${OBJS} core enroll xsend xget

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:
