summaryrefslogtreecommitdiff
path: root/security/dsniff/files/patch-Makefile.in
blob: 303642658c02cfbfec8b0ef4af425c90f5eb1074 (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
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
--- ./Makefile.in.orig	2001-03-15 09:34:42.000000000 +0100
+++ ./Makefile.in	2014-07-22 13:21:21.000000000 +0200
@@ -8,7 +8,6 @@
 srcdir          = @srcdir@
 VPATH           = @srcdir@
 
-install_prefix  =
 prefix          = @prefix@
 exec_prefix	= @exec_prefix@
 libdir		= @libdir@
@@ -26,7 +25,7 @@
 LNETLIB = @LNETLIB@
 
 NIDSINC	= @NIDSINC@
-NIDSLIB	= @NIDSLIB@
+NIDSLIB	= @NIDSLIB@ `pkg-config --libs gthread-2.0` `pkg-config --libs gthread-2.0` `pkg-config --libs gthread-2.0` `pkg-config --libs gthread-2.0`
 
 DBINC	= @DBINC@
 DBLIB	= @DBLIB@
@@ -37,9 +36,8 @@
 X11INC	= @X_CFLAGS@
 X11LIB	= @X_LIBS@ @X_PRE_LIBS@ -lXmu -lX11 @X_EXTRA_LIBS@
 
-INCS	= -I. $(NIDSINC) $(PCAPINC) $(LNETINC) $(DBINC) $(SSLINC) $(X11INC) \
-	  -I$(srcdir)/missing
-LIBS	= @LIBS@ -L$(srcdir) -lmissing
+INCS	= -I. $(NIDSINC) $(PCAPINC) $(LNETINC) $(DBINC) $(SSLINC) $(X11INC)
+LIBS	= @LIBS@ -L$(srcdir) -lmd
 
 INSTALL	= @INSTALL@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
@@ -76,22 +74,23 @@
 .c.o:
 	$(CC) $(CFLAGS) $(INCS) -c $(srcdir)/$*.c
 
-all: libmissing.a $(PROGS)
+all: $(PROGS)
 
 mount.c: mount.x
-	rpcgen -h mount.x -o mount.h
-	rpcgen -c mount.x -o mount.c
+	rpcgen -c mount.x -o $@
 
-nfs_prot.c: nfs_prot.x
-	rpcgen -h nfs_prot.x -o nfs_prot.h
-	rpcgen -c nfs_prot.x -o nfs_prot.c
+mount.h: mount.x
+	rpcgen -h mount.x -o $@
 
-$(LIBOBJS):
-	$(CC) $(CFLAGS) $(INCS) -c $(srcdir)/missing/$*.c
+decode_mountd.c: mount.h
 
-libmissing.a: $(LIBOBJS)
-	ar -cr $@ $(LIBOBJS)
-	$(RANLIB) $@
+nfs_prot.c: nfs_prot.x nfs_prot.h
+	rpcgen -c nfs_prot.x -o $@
+
+nfs_prot.h: nfs_prot.x
+	rpcgen -h nfs_prot.x -o $@
+
+filesnarf.c: nfs_prot.h
 
 dsniff: $(HDRS) $(SRCS) $(OBJS)
 	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(DBLIB) $(SSLLIB)
@@ -139,24 +138,24 @@
 	$(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)
+	test -d $(DESTDIR)$(sbindir) || \
+	   $(INSTALL) -d $(DESTDIR)$(sbindir)
 	for file in $(PROGS); do \
-	   $(INSTALL_PROGRAM) -m 755 $$file $(install_prefix)$(sbindir); \
+	   $(INSTALL_PROGRAM) -m 755 $$file $(DESTDIR)$(sbindir); \
 	done
-	test -d $(install_prefix)$(libdir) || \
-	   $(INSTALL) -d $(install_prefix)$(libdir)
+	test -d $(DESTDIR)$(libdir) || \
+	   $(INSTALL) -d $(DESTDIR)$(libdir)
 	for file in $(CONFIGS); do \
-	   $(INSTALL_DATA) $$file $(install_prefix)$(libdir); \
+	   $(INSTALL_DATA) $$file $(DESTDIR)$(libdir); \
 	done
-	test -d $(install_prefix)$(mandir)/man8 || \
-	   $(INSTALL) -d $(install_prefix)$(mandir)/man8
+	test -d $(DESTDIR)$(mandir)/man8 || \
+	   $(INSTALL) -d $(DESTDIR)$(mandir)/man8
 	for file in *.8; do \
-	   $(INSTALL_DATA) $$file $(install_prefix)$(mandir)/man8; \
+	   $(INSTALL_DATA) $$file $(DESTDIR)$(mandir)/man8; \
 	done
 
 clean:
-	rm -f *.o *~ $(GEN) libmissing.a $(PROGS) webmitm.crt
+	rm -f *.o *~ $(GEN) $(PROGS) webmitm.crt
 
 distclean: clean
 	rm -f Makefile config.h config.cache config.log config.status