blob: f137ff657f9d1a5f84281d0981c6142d0fead339 (
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
35
36
|
--- Makefile.orig Mon May 20 03:11:38 2002
+++ Makefile Tue Aug 20 01:49:27 2002
@@ -3,20 +3,27 @@
# tcptraceroute -- A traceroute implementation using TCP packets
# Copyright (c) 2001, 2002 Michael C. Toren <mct@toren.net>
-CC = gcc
-CFLAGS = -O2 -Wall
-DESTDIR=/usr/local/bin
+CC?= cc
+CFLAGS?= -O -pipe -Wall
+LNETINC= `libnet-config --cflags`
+LNETLIB= `libnet-config --libs`
+
+BINDIR= ${PREFIX}/sbin
+MANDIR= ${PREFIX}/man
+
+all: tcptraceroute
tcptraceroute: tcptraceroute.c
- $(CC) $(CFLAGS) `libnet-config --defines` \
+ $(CC) $(CFLAGS) `libnet-config --defines` $(LNETINC) \
-o tcptraceroute tcptraceroute.c \
- `libnet-config --libs` -lpcap
+ $(LNETLIB) -lpcap
static:
$(MAKE) tcptraceroute CFLAGS="$(CFLAGS) -static"
install: tcptraceroute
- install -D tcptraceroute $(DESTDIR)/tcptraceroute
+ install -c -s tcptraceroute $(BINDIR)/tcptraceroute
+ install -c -m 444 tcptraceroute.8 $(MANDIR)/man8/tcptraceroute.8
distrib: clean changelog man
|