1LOCAL_PATH := $(call my-dir) 2 3include $(CLEAR_VARS) 4LOCAL_SRC_FILES := \ 5 color.c utils.c rt_names.c ll_types.c ll_proto.c ll_addr.c inet_proto.c \ 6 mpls_pton.c namespace.c names.c libgenl.c libnetlink.c 7LOCAL_MODULE := libiprouteutil 8LOCAL_SYSTEM_SHARED_LIBRARIES := libc 9LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include 10LOCAL_CFLAGS := -O2 -g -W -Wall \ 11 -DCONFDIR=\"/data/misc/net\" \ 12 -DHAVE_UNISTD_H \ 13 -DHAVE_ERRNO_H \ 14 -DHAVE_NETINET_IN_H \ 15 -DHAVE_SYS_IOCTL_H \ 16 -DHAVE_SYS_MMAN_H \ 17 -DHAVE_SYS_MOUNT_H \ 18 -DHAVE_SYS_PRCTL_H \ 19 -DHAVE_SYS_RESOURCE_H \ 20 -DHAVE_SYS_SELECT_H \ 21 -DHAVE_SYS_STAT_H \ 22 -DHAVE_SYS_TYPES_H \ 23 -DHAVE_STDLIB_H \ 24 -DHAVE_STRDUP \ 25 -DHAVE_MMAP \ 26 -DHAVE_UTIME_H \ 27 -DHAVE_GETPAGESIZE \ 28 -DHAVE_LSEEK64 \ 29 -DHAVE_LSEEK64_PROTOTYPE \ 30 -DHAVE_EXT2_IOCTLS \ 31 -DHAVE_LINUX_FD_H \ 32 -DHAVE_TYPE_SSIZE_T \ 33 -DHAVE_SETNS \ 34 -D_GNU_SOURCE \ 35 -Wno-pointer-arith \ 36 -Wno-sign-compare \ 37 -Wno-unused-parameter \ 38 -Werror 39 40# This is a work around for b/18403920 41LOCAL_LDFLAGS := -Wl,--no-gc-sections 42 43include $(BUILD_SHARED_LIBRARY) 44 45include $(CLEAR_VARS) 46LOCAL_SRC_FILES := ll_map.c libnetlink.c 47LOCAL_MODULE := libnetlink 48LOCAL_SYSTEM_SHARED_LIBRARIES := libc 49LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include 50LOCAL_CFLAGS := -O2 -g -W -Wall \ 51 -DHAVE_UNISTD_H \ 52 -DHAVE_ERRNO_H \ 53 -DHAVE_NETINET_IN_H \ 54 -DHAVE_SYS_IOCTL_H \ 55 -DHAVE_SYS_MMAN_H \ 56 -DHAVE_SYS_MOUNT_H \ 57 -DHAVE_SYS_PRCTL_H \ 58 -DHAVE_SYS_RESOURCE_H \ 59 -DHAVE_SYS_SELECT_H \ 60 -DHAVE_SYS_STAT_H \ 61 -DHAVE_SYS_TYPES_H \ 62 -DHAVE_STDLIB_H \ 63 -DHAVE_STRDUP \ 64 -DHAVE_MMAP \ 65 -DHAVE_UTIME_H \ 66 -DHAVE_GETPAGESIZE \ 67 -DHAVE_LSEEK64 \ 68 -DHAVE_LSEEK64_PROTOTYPE \ 69 -DHAVE_EXT2_IOCTLS \ 70 -DHAVE_LINUX_FD_H \ 71 -DHAVE_TYPE_SSIZE_T \ 72 -Wno-pointer-arith \ 73 -Wno-sign-compare \ 74 -Wno-unused-parameter \ 75 -Werror 76 77include $(BUILD_SHARED_LIBRARY) 78