blob: a54081d5038384a9b26f147af3c14dbcf12c43d8 (
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
37
38
39
40
41
42
43
44
45
|
--- Makefile.in.orig Thu Apr 22 07:16:41 1999
+++ Makefile.in Thu Jan 18 01:05:19 2001
@@ -9,22 +9,23 @@
CC = @CC@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
-DEFS = @DEFS@
+DEFS = @DEFS@ `libnet-config --defines`
INCS = $(LNETINCS) $(PCAPINCS)
LIBS = @LIBS@ $(LNETLIBS) $(PCAPLIBS)
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
-PCAPDIR = libpcap-0.4
-PCAPINCS = -I$(PCAPDIR)
-PCAPLIBS = -L$(PCAPDIR) -lpcap
-PCAPDEP = $(PCAPDIR)/pcap.h $(PCAPDIR)/libpcap.a
+# PCAPDIR = libpcap-0.4
+# PCAPINCS = -I$(PCAPDIR)
+PCAPLIBS = -lpcap
+# PCAPDEP = $(PCAPDIR)/pcap.h $(PCAPDIR)/libpcap.a
-LNETDIR = Libnet-0.99
+LNETDIR = ${LOCALBASE}
LNETINCS = -I$(LNETDIR)/include
-LNETLIBS = -L$(LNETDIR)/lib -lnet
-LNETDEP = $(LNETDIR)/include/libnet.h $(LNETDIR)/libnet.a
+LNETLIBS = -L$(LNETDIR)/lib `libnet-config --libs`
+# LNETDEP = $(LNETDIR)/include/libnet.h $(LNETDIR)/libnet.a
PROGRAMS = tcpreplay
@@ -51,8 +52,8 @@
rm -f Makefile config.h config.status config.cache config.log
install:
- $(INSTALL_PROGRAM) -m 755 tcpreplay $(SBINDIR)
- $(INSTALL) -m 644 tcpreplay.8 $(MANDIR)
+ $(INSTALL_PROGRAM) tcpreplay $(SBINDIR)
+ $(INSTALL_DATA) tcpreplay.8 $(MANDIR)
uninstall:
rm -f $(SBINDIR)/tcpreplay
|