1LOCAL_PATH:= $(call my-dir) 2 3#---------------------------------------------------------------- 4# libip4tc 5 6include $(CLEAR_VARS) 7 8LOCAL_C_INCLUDES:= \ 9 $(LOCAL_PATH)/../include/ 10 11# Accommodate arm-eabi-4.4.3 tools that don't set __ANDROID__ 12LOCAL_CFLAGS:=-D__ANDROID__ 13LOCAL_CFLAGS+=-D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DENABLE_IPV4 -DENABLE_IPV6 14LOCAL_CFLAGS += \ 15 -Wall -Werror \ 16 -Wno-pointer-arith \ 17 -Wno-pointer-sign \ 18 -Wno-sign-compare \ 19 -Wno-unused-parameter \ 20 21LOCAL_SRC_FILES:= \ 22 libip4tc.c \ 23 24 25LOCAL_LDFLAGS:=-version-info 1:0:1 26LOCAL_MODULE_TAGS:= 27LOCAL_MODULE:=libip4tc 28 29include $(BUILD_STATIC_LIBRARY) 30 31 32#---------------------------------------------------------------- 33# libip6tc 34 35include $(CLEAR_VARS) 36 37LOCAL_C_INCLUDES:= \ 38 $(LOCAL_PATH)/../include/ 39 40# Accommodate arm-eabi-4.4.3 tools that don't set __ANDROID__ 41LOCAL_CFLAGS:=-D__ANDROID__ 42LOCAL_CFLAGS+=-D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DENABLE_IPV4 -DENABLE_IPV6 43LOCAL_CFLAGS += \ 44 -Wall -Werror \ 45 -Wno-pointer-arith \ 46 -Wno-pointer-sign \ 47 -Wno-sign-compare \ 48 -Wno-unused-function \ 49 -Wno-unused-parameter \ 50 51LOCAL_SRC_FILES:= \ 52 libip6tc.c \ 53 54 55LOCAL_LDFLAGS:=-version-info 1:0:1 56LOCAL_MODULE_TAGS:= 57LOCAL_MODULE:=libip6tc 58 59include $(BUILD_STATIC_LIBRARY) 60 61#---------------------------------------------------------------- 62