<commit_before>--- driftnet-0.1.6/Makefile~	2004-12-07 23:26:53.211878920 +0000
+++ driftnet-0.1.6/Makefile	2004-12-07 23:25:59.900983408 +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,8 +31,8 @@
 
 # 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  += -I$(STAGING_INCDIR)/glib-2.0 -I$(STAGING_INCDIR)/gtk-2.0 -I$(STAGING_INCDIR)/../lib/gtk-2.0/include -I$(STAGING_INCDIR)/atk-1.0
+LDLIBS  += -ljpeg -lungif -lgtk-x11-2.0 -lgdk-x11-2.0 -rdynamic -lgmodule-2.0 -lglib-2.0 -ldl -lXext -lX11 -lm
 
 # 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
@@ -81,13 +81,13 @@
 	( 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
 
 %.o:    %.c Makefile endianness
-	$(CC) $(CFLAGS) `cat endianness` -c -o $@ $<
+	$(CC) $(CFLAGS) -DDRIFTNET_LITTLE_ENDIAN -c -o $@ $<
 
 clean:  nodepend
 	rm -f *~ *.bak *.o core $(BINS) TAGS driftnet.1 endian endianness
@@ -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<commit_msg>driftnet: fix recipe to work with a modern build system<commit_after>--- driftnet-0.1.6/Makefile~	2004-12-07 23:26:53.211878920 +0000
+++ driftnet-0.1.6/Makefile	2004-12-07 23:25:59.900983408 +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.
@@ -81,13 +81,13 @@
 	( 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
 
 %.o:    %.c Makefile endianness
-	$(CC) $(CFLAGS) `cat endianness` -c -o $@ $<
+	$(CC) $(CFLAGS) -DDRIFTNET_LITTLE_ENDIAN -c -o $@ $<
 
 clean:  nodepend
 	rm -f *~ *.bak *.o core $(BINS) TAGS driftnet.1 endian endianness
@@ -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
{'fraction_non_alphanumeric': 0.17114914425427874, 'fraction_numerical': 0.06234718826405868, 'mean_word_length': 3.137800252844501, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5537572', 'n_tokens_mistral': 1482, 'n_tokens_neox': 1283, 'n_words': 349}