openbsd-ports/security/parse/patches/patch-Makefile
2007-10-26 21:38:24 +00:00

29 lines
549 B
Plaintext

$OpenBSD: patch-Makefile,v 1.1 2007/10/26 21:38:24 jasper Exp $
--- Makefile.orig Wed Nov 6 23:59:38 1996
+++ Makefile Fri Oct 26 23:33:35 2007
@@ -1,11 +1,12 @@
CC=gcc
-CFLAGS=-g -Ilibpcap -Ilibpcap/bpf
+PREFIX?=/usr/local
+
all: parse
OBJS=comment.o summarize.o parse_input.o display.o
-LIBS=-Llibpcap -lpcap
+LIBS= -lpcap
parse: $(OBJS)
$(CC) -o parse $(OBJS) $(LIBS)
@@ -13,6 +14,9 @@ parse: $(OBJS)
display.o: parse.h
summarize.o: parse.h
+
+install: parse
+ install -c -m 755 parse $(PREFIX)/bin
clean:
rm -f *.o parse