d151742e36
convert to use buildlink2 and include libpcap/buildlink2.mk to handle this correctly. Also fix network library problems on Solaris. From pkg/22915 by Jonathan Perkin.
32 lines
719 B
Text
32 lines
719 B
Text
$NetBSD: patch-aa,v 1.3 2003/10/06 07:53:04 jlam Exp $
|
|
|
|
--- Makefile.orig Thu Feb 15 04:47:36 2001
|
|
+++ Makefile
|
|
@@ -1,24 +1,21 @@
|
|
# Makefile for NetBSD
|
|
|
|
-CC=gcc
|
|
RM=rm
|
|
CP=cp
|
|
-PREFIX=/usr/pkg
|
|
INSTALL_DIR=${PREFIX}/sbin
|
|
INSTALL_MAN=${PREFIX}/man
|
|
|
|
-CFLAGS = -O2
|
|
OBJS = sniff2.o clear.o ifOpen.o lookupDNShost.o printData.o printHeader.o readTCP.o sniffData.o
|
|
|
|
|
|
all: sniff2
|
|
|
|
sniff2: $(OBJS)
|
|
- $(CC) $(CFLAGS) -o sniff2 $(OBJS) -lpcap
|
|
+ $(CC) $(CFLAGS) $(LDFLAGS) -o sniff2 $(OBJS) -lpcap $(LIBS)
|
|
|
|
install:
|
|
- $(CP) sniff2 $(INSTALL_DIR)
|
|
- $(CP) sniff2.1 $(INSTALL_MAN)/man1
|
|
+ $(BSD_INSTALL_PROGRAM) sniff2 $(INSTALL_DIR)
|
|
+ $(BSD_INSTALL_MAN) sniff2.1 $(INSTALL_MAN)/man1
|
|
clean:
|
|
$(RM) $(OBJS) sniff2
|
|
|