blob: 62fd7c332ff0e00f379413c58e2a32941dd353b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
$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)
|