--- 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