openbsd-ports/net/hping/patches/patch-aa
1999-10-28 22:53:00 +00:00

33 lines
917 B
Plaintext

--- Makefile.orig Tue Aug 24 08:43:29 1999
+++ Makefile Thu Oct 28 13:52:17 1999
@@ -7,12 +7,12 @@
# $rev: 3$
CC= gcc
-CCOPT= -O2 -Wall
+CCOPT= ${CFLAGS}
DEBUG= -g
DEFS= -DHAVE_PROC -D_BSD_SOURCE -DLIMITWHENSUID
#uncomment the following if you need libpcap based build under linux
#(not raccomanded)
-#COMPILE_TIME= -DFORCE_LIBPCAP
+COMPILE_TIME= -DFORCE_LIBPCAP
PCAP= libpcap/libpcap.a
OBJ= main.o getifname.o getlhs.o \
@@ -43,12 +43,8 @@
@echo "use \`make strip' to strip hping2 binary"
@echo "use \`make install' to install hping2"
-other: byteorder.h $(OBJ) $(PCAP)
- $(CC) -o hping2 $(CCOPT) $(DEBUG) $(COMPILE_TIME) $(DEFS) $(OBJ) $(PCAP)
- @echo
- ./hping2 -v
- @echo "use \`make strip' to strip hping2 binary"
- @echo "use \`make install' to install hping2"
+other: byteorder.h $(OBJ)
+ $(CC) -o hping2 $(CCOPT) $(DEBUG) $(COMPILE_TIME) $(DEFS) $(OBJ) -lpcap
byteorder.h:
./configure