blob: 0c7e403354b6e641baabc4d8919f05ef4842aff2 (
plain) (
blame)
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
32
33
34
|
$FreeBSD$
--- Makefile.orig Wed Sep 5 05:35:02 2001
+++ Makefile Tue Nov 6 12:55:33 2001
@@ -2,9 +2,9 @@
# $Id: Makefile,v 1.3 2001/09/05 09:31:57 mavetju Exp $
#
-CC=gcc
-CFLAGS=-g -Wall -I/usr/local/include -c
-LFLAGS=-g -Wall -L/usr/local/lib
+CC?=gcc
+CFLAGS+=-g -Wall -I${PREFIX}/include -c
+LFLAGS=-g -Wall -L${PREFIX}/lib
LIBS=-lngrep -lpcap
all: httpgrabber
@@ -16,12 +16,12 @@
$(CC) $(CFLAGS) -o httpgrabber.o httpgrabber.c
install: httpgrabber httpgrabber.8
- install -c -m 755 -o root httpgrabber /usr/local/bin
- install -c -m 755 -o root httpgrabber.8 /usr/local/man/man8
+ install -c -m 755 -o root httpgrabber ${PREFIX}/bin
+ install -c -m 755 -o root httpgrabber.8 ${PREFIX}/man/man8
uninstall:
- rm /usr/local/bin/httpgrabber
- rm /usr/local/man/man8/httpgrabber.8
+ rm ${PREFIX}/bin/httpgrabber
+ rm ${PREFIX}/man/man8/httpgrabber.8
clean:
rm -rf httpgrabber httpgrabber.o httpgrabber.core
|