# Makefile for distribute
# Some hacks here courtesy of Brent Chapman, brent@napa.Telebit.COM
#
DESTDIR=
CFLAGS=	-O
LIBS=
MAKE=	make
WHERE=	/usr/local/bin
MANDIR=	/usr/share/local/man
MANSEC=	1

# C source files
SRCS=	distribute.c header.c

all: distribute

distribute: distribute.o header.o
	${CC} ${CFLAGS} -o $@ $@.o header.o

install: distribute distribute.1
	install -s -o bin -g bin -m 755 distribute ${DESTDIR}${WHERE}
	install -o bin -g bin -m 444 distribute.1 \
	    ${DESTDIR}${MANDIR}/man${MANSEC}/distribute.${MANSEC}

clean:
	rm -f a.out core *.s *.o distribute

depend:
	mkdep ${CFLAGS} ${SRCS}
