-
Notifications
You must be signed in to change notification settings - Fork 83
/
Makefile.in
163 lines (119 loc) · 4.89 KB
/
Makefile.in
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
#
# Makefile for dsniff
#
# Dug Song <[email protected]>
#
# $Id: Makefile.in,v 1.42 2001/03/15 08:34:42 dugsong Exp $
srcdir = @srcdir@
VPATH = @srcdir@
install_prefix =
prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = $(prefix)/share/dsniff
sbindir = @sbindir@
mandir = @mandir@
CC = @CC@
CFLAGS = @CFLAGS@ -DDSNIFF_LIBDIR=\"$(libdir)/\"
LDFLAGS = @LDFLAGS@
PCAPINC = @PCAPINC@
PCAPLIB = @PCAPLIB@
LNETINC = @LNETINC@
LNETLIB = @LNETLIB@
NIDSINC = @NIDSINC@
NIDSLIB = @NIDSLIB@
DBINC = @DBINC@
DBLIB = @DBLIB@
SSLINC = @SSLINC@
SSLLIB = @SSLLIB@
X11INC = @X_CFLAGS@
X11LIB = @X_LIBS@ @X_PRE_LIBS@ -lXmu -lX11 @X_EXTRA_LIBS@
INCS = -I. $(X11INC) -I$(srcdir)/missing $(PCAPINC) $(LNETINC) $(NIDSINC) $(SSLINC) $(DBINC)
LIBS = @LIBS@ -L$(srcdir) -lmissing
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
RANLIB = @RANLIB@
HDRS = asn1.h base64.h buf.h decode.h hex.h magic.h options.h \
pathnames.h pcaputil.h record.h rpc.h tcp_raw.h trigger.h \
version.h vroot.h
SRCS = asn1.c base64.c buf.c hex.c magic.c mount.c pcaputil.c rpc.c \
tcp_raw.c trigger.c record.c dsniff.c decode.c decode_aim.c \
decode_citrix.c decode_cvs.c decode_ftp.c decode_hex.c \
decode_http.c decode_icq.c decode_imap.c decode_irc.c \
decode_ldap.c decode_mmxp.c decode_mountd.c decode_napster.c \
decode_nntp.c decode_oracle.c decode_ospf.c decode_pcanywhere.c \
decode_pop.c decode_portmap.c decode_postgresql.c decode_pptp.c \
decode_rip.c decode_rlogin.c decode_smb.c decode_smtp.c \
decode_sniffer.c decode_snmp.c decode_socks.c decode_tds.c \
decode_telnet.c decode_vrrp.c decode_yp.c decode_x11.c
GEN = mount.h mount.c nfs_prot.h nfs_prot.c
OBJS = $(SRCS:.c=.o)
LIBOBJS = dummy.o @LIBOBJS@
PROGS = arpspoof dnsspoof dsniff filesnarf macof mailsnarf msgsnarf \
sshmitm sshow tcpkill tcpnice @TCPHIJACK@ urlsnarf webmitm @WEBSPY@
CONFIGS = dsniff.magic dsniff.services dnsspoof.hosts
.c.o:
$(CC) $(CFLAGS) $(INCS) -c $(srcdir)/$*.c
all: libmissing.a $(PROGS)
mount.c: mount.x
rpcgen -h mount.x -o mount.h
rpcgen -c mount.x -o mount.c
nfs_prot.c: nfs_prot.x
rpcgen -h nfs_prot.x -o nfs_prot.h
rpcgen -c nfs_prot.x -o nfs_prot.c
$(LIBOBJS):
$(CC) $(CFLAGS) $(INCS) -c $(srcdir)/missing/$*.c
libmissing.a: $(LIBOBJS)
ar -cr $@ $(LIBOBJS)
$(RANLIB) $@
dsniff: $(HDRS) $(SRCS) $(OBJS)
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(DBLIB) $(SSLLIB)
arpspoof: arpspoof.o arp.o
$(CC) $(LDFLAGS) -o $@ arpspoof.o arp.o $(LIBS) $(PCAPLIB) $(LNETLIB)
dnsspoof: dnsspoof.o pcaputil.o
$(CC) $(LDFLAGS) -o $@ dnsspoof.o pcaputil.o $(LIBS) $(PCAPLIB) $(LNETLIB)
filesnarf: nfs_prot.o filesnarf.o pcaputil.o rpc.o
$(CC) $(LDFLAGS) -o $@ filesnarf.o nfs_prot.o pcaputil.o rpc.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB)
macof: macof.o
$(CC) $(LDFLAGS) -o $@ macof.o $(LIBS) $(PCAPLIB) $(LNETLIB)
mailsnarf: mailsnarf.o buf.o pcaputil.o
$(CC) $(LDFLAGS) -o $@ mailsnarf.o buf.o pcaputil.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB)
msgsnarf: msgsnarf.o buf.o pcaputil.o
$(CC) $(LDFLAGS) -o $@ msgsnarf.o buf.o pcaputil.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB)
sshmitm: sshmitm.o buf.o hex.o record.o ssh.o sshcrypto.o
$(CC) $(LDFLAGS) -o $@ sshmitm.o buf.o hex.o record.o ssh.o sshcrypto.o $(LIBS) $(LNETLIB) $(DBLIB) $(SSLLIB)
sshow: sshow.o pcaputil.o
$(CC) $(LDFLAGS) -o $@ sshow.o pcaputil.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB)
tcpkill: tcpkill.o pcaputil.o
$(CC) $(LDFLAGS) -o $@ tcpkill.o pcaputil.o $(LIBS) $(PCAPLIB) $(LNETLIB)
tcpnice: tcpnice.o pcaputil.o
$(CC) $(LDFLAGS) -o $@ tcpnice.o pcaputil.o $(LIBS) $(PCAPLIB) $(LNETLIB)
tcphijack: tcphijack.o pcaputil.o
$(CC) $(LDFLAGS) -o $@ tcphijack.o pcaputil.o $(LIBS) $(PCAPLIB) $(LNETLIB)
urlsnarf: urlsnarf.o base64.o buf.o pcaputil.o
$(CC) $(LDFLAGS) -o $@ urlsnarf.o base64.o buf.o pcaputil.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB)
webmitm: webmitm.o base64.o buf.o decode_http.o record.o
$(CC) $(LDFLAGS) -o $@ webmitm.o base64.o buf.o decode_http.o record.o $(LIBS) $(LNETLIB) $(DBLIB) $(SSLLIB)
webspy: webspy.o base64.o buf.o remote.o
$(CC) $(LDFLAGS) -o $@ webspy.o base64.o buf.o remote.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(X11LIB)
install:
test -d $(install_prefix)$(sbindir) || \
$(INSTALL) -d $(install_prefix)$(sbindir)
for file in $(PROGS); do \
$(INSTALL_PROGRAM) -m 755 $$file $(install_prefix)$(sbindir); \
done
test -d $(install_prefix)$(libdir) || \
$(INSTALL) -d $(install_prefix)$(libdir)
for file in $(CONFIGS); do \
$(INSTALL_DATA) $$file $(install_prefix)$(libdir); \
done
test -d $(install_prefix)$(mandir)/man8 || \
$(INSTALL) -d $(install_prefix)$(mandir)/man8
for file in *.8; do \
$(INSTALL_DATA) $$file $(install_prefix)$(mandir)/man8; \
done
clean:
rm -f *.o *~ $(GEN) libmissing.a $(PROGS) webmitm.crt
distclean: clean
rm -f Makefile config.h config.cache config.log config.status
# EOF