aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/driftnet/driftnet-nogui-0.1.6/arm.patch
blob: ebb5fadd7cfb68b243aabfe8182cfac2b92d01b5 (plain)
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
--- driftnet-0.1.6/Makefile~	2002-07-09 19:26:41.000000000 +0000
+++ driftnet-0.1.6/Makefile	2004-10-20 21:51:48.000000000 +0000
@@ -13,14 +13,14 @@
 #
 
 # Compiler to use.
-#CC = gcc
+CC = arm-linux-gcc
 
 # Basic compiler, linker flags; should not need any changes.
 CFLAGS += -g -Wall
 LDFLAGS += -g
 
 # You might need these if libpcap is installed somewhere random.
-CFLAGS += -I/usr/include/pcap
+#CFLAGS += -I/usr/include/pcap
 #LDFLAGS += -L/path/to/libpcap.so
 
 # Required on Linux to get BSDish definitions of the TCP/IP structs.
@@ -31,14 +31,14 @@
 
 # Optional C compiler and linker flags. Typical driftnet builds have support
 # for displaying captured images in an X window, and need the following flags:
-CFLAGS  += `gtk-config --cflags`
-LDLIBS  += -ljpeg -lungif `gtk-config --libs`
+#CFLAGS  += `gtk-config --cflags`
+#LDLIBS  += -ljpeg -lungif `gtk-config --libs`
 
 # Alternatively, you can build a version of driftnet which can only be used
 # in `adjunct' mode as the back end for some other image-processing program. To
 # use this, comment out the two preceding CFLAGS and LDLIBS lines and uncomment
 # the following line:
-#CFLAGS += -DNO_DISPLAY_WINDOW
+CFLAGS += -DNO_DISPLAY_WINDOW
 
 # On systems with a C99 compiler, driftnet will use <stdint.h> for the
 # definitions of types such as uint8_t. On other systems like Solaris, these
@@ -81,7 +81,7 @@
 	( echo '.\" DO NOT EDIT THIS FILE-- edit driftnet.1.in instead' ; sed s/@@@VERSION@@@/$(VERSION)/ ) < driftnet.1.in > driftnet.1
 
 endianness: endian
-	./endian > endianness
+
 
 endian: endian.c
 	$(CC) $(CFLAGS) -o endian endian.c
@@ -103,7 +103,7 @@
 	mv driftnet-$(VERSION).tar.gz ..
 	
 depend: endianness
-	makedepend -- $(CFLAGS) `cat endianness` -- $(SRCS)
+	makedepend -- $(CFLAGS) -DDRIFTNET_LITTLE_ENDIAN -- $(SRCS)
 	touch depend
 	rm -f Makefile.bak