$NetBSD: patch-aa,v 1.4 2011/04/01 15:06:37 drochner Exp $ --- Makefile.orig 2002-07-09 19:26:41.000000000 +0000 +++ Makefile @@ -27,12 +27,12 @@ CFLAGS += -I/usr/include/pcap CFLAGS += -D_BSD_SOURCE # We always need the pcap and pthread libraries. -LDLIBS += -lpcap -lpthread +LDLIBS += -lpcap ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} # 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` +LDLIBS += -ljpeg -lgif `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 @@ -53,6 +53,7 @@ LDLIBS += -ljpeg -lungif `gtk-config -- # On BSD systems, may need to use /usr/local/include #CFLAGS += -I/usr/local/include +CFLAGS += `${CAT} endianness 2>/dev/null || ${TRUE}` # # No user-serviceable parts below this point. @@ -87,7 +88,7 @@ endian: endian.c $(CC) $(CFLAGS) -o endian endian.c %.o: %.c Makefile endianness - $(CC) $(CFLAGS) `cat endianness` -c -o $@ $< + $(CC) $(CFLAGS) -c -o $@ $< clean: nodepend rm -f *~ *.bak *.o core $(BINS) TAGS driftnet.1 endian endianness