
CFLAGS= -Werror -Wall -ansi
SRC=	mdd.c sender.c receiver.c sniffer.c
OBJ=	mdd.o sender.o receiver.o sniffer.o

all:	depend mdd

mdd:	${OBJ}
	${CC} -static -o $@ ${OBJ}

depend:
	mkdep ${CFLAGS} ${SRC}
clean:
	rm -f ${OBJ} mdd .depend
install:	mdd mdd.1
	install -m 755 mdd /usr/local/bin
	install -m 644 mdd.1 /usr/local/man/man1/
