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