1 --- driftnet-0.1.6/Makefile~ 2004-12-07 23:26:53.211878920 +0000
2 +++ driftnet-0.1.6/Makefile 2004-12-07 23:25:59.900983408 +0000
10 # Basic compiler, linker flags; should not need any changes.
14 # You might need these if libpcap is installed somewhere random.
15 -CFLAGS += -I/usr/include/pcap
16 +#CFLAGS += -I/usr/include/pcap
17 #LDFLAGS += -L/path/to/libpcap.so
19 # Required on Linux to get BSDish definitions of the TCP/IP structs.
22 # Optional C compiler and linker flags. Typical driftnet builds have support
23 # for displaying captured images in an X window, and need the following flags:
24 -CFLAGS += `gtk-config --cflags`
25 -LDLIBS += -ljpeg -lungif `gtk-config --libs`
26 +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
27 +LDLIBS += -ljpeg -lungif -lgtk-x11-2.0 -lgdk-x11-2.0 -rdynamic -lgmodule-2.0 -lglib-2.0 -ldl -lXext -lX11 -lm
29 # Alternatively, you can build a version of driftnet which can only be used
30 # in `adjunct' mode as the back end for some other image-processing program. To
32 ( echo '.\" DO NOT EDIT THIS FILE-- edit driftnet.1.in instead' ; sed s/@@@VERSION@@@/$(VERSION)/ ) < driftnet.1.in > driftnet.1
35 - ./endian > endianness
39 $(CC) $(CFLAGS) -o endian endian.c
41 %.o: %.c Makefile endianness
42 - $(CC) $(CFLAGS) `cat endianness` -c -o $@ $<
43 + $(CC) $(CFLAGS) -DDRIFTNET_LITTLE_ENDIAN -c -o $@ $<
46 rm -f *~ *.bak *.o core $(BINS) TAGS driftnet.1 endian endianness
48 mv driftnet-$(VERSION).tar.gz ..
51 - makedepend -- $(CFLAGS) `cat endianness` -- $(SRCS)
52 + makedepend -- $(CFLAGS) -DDRIFTNET_LITTLE_ENDIAN -- $(SRCS)