--- Makefile.orig 2010-07-12 03:46:36 UTC +++ Makefile @@ -10,8 +10,8 @@ PREFIX?=/usr/local ETHERS?=/etc/ethers ## FreeBSD -LOCALBASE=/usr/local -LIBNET_CONFIG=libnet11-config +LOCALBASE?=/usr/local +LIBNET_CONFIG=libnet-config ## OpenBSD (tested by irix) # LOCALBASE=/usr/local @@ -26,7 +26,7 @@ LIBS=`${LIBNET_CONFIG} --libs` -lpcap -L DEFINES=`${LIBNET_CONFIG} --defines` STATIC= -CC=gcc +CC?=gcc CFLAGS+=-g -Wall -DETHERS='"$(ETHERS)"' @@ -58,10 +58,10 @@ cleanall: clean @rm -f $(NAME) install: all - mkdir -p -m 755 $(PREFIX)/sbin - install -s -m 755 $(NAME) $(PREFIX)/sbin/$(NAME) - mkdir -p -m 755 $(PREFIX)/man/man8 - install -m 644 doc/$(NAME).8 $(PREFIX)/man/man8/$(NAME).8 + mkdir -p -m 755 ${DESTDIR}$(PREFIX)/sbin + install -s -m 755 $(NAME) ${DESTDIR}$(PREFIX)/sbin/$(NAME) + mkdir -p -m 755 ${DESTDIR}$(PREFIX)/share/man/man8 + install -m 644 doc/$(NAME).8 ${DESTDIR}$(PREFIX)/share/man/man8/$(NAME).8 uninstall: deinstall