#
# $Header: /usr/local/src/getethers/RCS/Makefile,v 1.5 1994/08/26 19:58:02 davy Exp $
#
# Makefile for getethers.
#
# David A. Curry
# Purdue University
# Engineering Computer Network
# davy@ecn.purdue.edu
# November, 1991
#
BINDIR=	/usr/local/etc
MANDIR=	/usr/local/man/man8

#
# Add -DNEED_STRDUP if you don't have the strdup() library routine.
# Add -DNEED_ENTOA  if you don't have the ether_ntoa() library routine.
# Add -DSOLARIS -DBSD_COMP if you are using Solaris 2.x
#
DEFS=	-DSOLARIS -DBSD_COMP
CFLAGS=	-O $(DEFS)

#
# Add -lnsl -lsocket if you are using Solaris 2.x
#
LIBS=	-lnsl -lsocket

OBJS=	arp.o excelan.o if.o main.o ping.o sniffer.o vendors.o

getethers: $(OBJS)
	$(CC) -o getethers $(OBJS) $(LIBS)

install: getethers
	install -c -s -m 4750 -o root -g wheel getethers $(BINDIR)/getethers
	install -c -m 644 getethers.8l $(MANDIR)/getethers.8l

clean:
	rm -f a.out core getethers *.o \#*

arp.o:		arp.c defs.h
excelan.o:	excelan.c defs.h
main.o:		main.c defs.h
if.o:		if.c defs.h
ping.o:		ping.c
sniffer.o:	sniffer.c defs.h
vendors.o:	vendors.c defs.h
