1LOCAL_PATH:= $(call my-dir) 2include $(CLEAR_VARS) 3 4libpcap_PSRC = pcap-linux.c pcap-usb-linux.c pcap-can-linux.c pcap-netfilter-linux.c 5libpcap_FSRC = fad-gifc.c 6libpcap_CSRC = pcap.c inet.c gencode.c optimize.c nametoaddr.c etherent.c \ 7 savefile.c sf-pcap.c sf-pcap-ng.c pcap-common.c \ 8 bpf_image.c bpf_dump.c 9libpcap_GENSRC = scanner.c grammar.c bpf_filter.c version.c 10 11libpcap_SRC = $(libpcap_PSRC) $(libpcap_FSRC) $(libpcap_CSRC) $(libpcap_GENSRC) 12 13 14LOCAL_SRC_FILES:=\ 15 $(libpcap_SRC) 16 17LOCAL_CFLAGS:=-O2 -g 18LOCAL_CFLAGS+=-DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -Dlinux -D__GLIBC__ -D_GNU_SOURCE 19 20LOCAL_MODULE:= libpcap 21 22include $(BUILD_STATIC_LIBRARY) 23