cd8fe692e7
replicate and don't understand.
31 lines
1,001 B
Text
31 lines
1,001 B
Text
$NetBSD: patch-aa,v 1.10 2011/10/02 05:04:03 dholland Exp $
|
|
|
|
--- mk/Linux.orig 2006-08-21 12:37:00.000000000 +0000
|
|
+++ mk/Linux
|
|
@@ -7,23 +7,20 @@
|
|
# (C) Copyright 2000-2006 by Michal Zalewski <lcamtuf@coredump.cx>
|
|
#
|
|
|
|
-CC = gcc
|
|
LIBS = -lpcap
|
|
STRIP = strip
|
|
-CFLAGS = -O3 -Wall -fomit-frame-pointer -funroll-loops \
|
|
- -DUSE_BPF=\"${USE_BPF}\" \
|
|
- -I/usr/include/pcap -I/usr/local/include/pcap -I/usr/local/include
|
|
+CFLAGS += -DUSE_BPF=\"${USE_BPF}\"
|
|
FILE = p0f
|
|
TOOLS = test/sendack test/sendack2 test/sendsyn
|
|
|
|
-all: $(FILE) strip
|
|
+all: $(FILE) .WAIT strip
|
|
@echo ">> You can also try 'make p0fq' to compile a sample query"
|
|
@echo ">> client (see README for more information)."
|
|
|
|
static: $(FILE)-static
|
|
|
|
$(FILE): $(FILE).c
|
|
- $(CC) $(CFLAGS) -o $@ $(FILE).c $(FILE)-query.c crc32.c $(LIBS)
|
|
+ $(CC) $(CFLAGS) -o $@ $(FILE).c $(FILE)-query.c crc32.c $(LDFLAGS) $(LIBS)
|
|
|
|
$(FILE)-static: $(FILE).c
|
|
$(CC) -static $(CFLAGS) -o $@ $(FILE).c $(FILE)-query.c crc32.c $(LIBS)
|