| LOCAL_PATH := $(call my-dir) |
| |
| include $(CLEAR_VARS) |
| |
| LOCAL_MODULE := libnfnetlink |
| LOCAL_MODULE_TAGS := optional |
| |
| LOCAL_SRC_FILES := src/iftable.c \ |
| src/libnfnetlink.c \ |
| src/rtnl.c |
| |
| LOCAL_C_INCLUDES := $(LOCAL_PATH)/include |
| LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
| |
| LOCAL_CFLAGS := -O2 -g |
| # Copy the headers to the build sysroot directory. |
| include_dir := $(LOCAL_PATH)/include |
| include_files := $(shell find $(include_dir) -type f -name '*.h') |
| LOCAL_TOOLCHAIN_PREBUILTS := \ |
| $(join $(include_files),\ |
| $(patsubst $(include_dir)/%,:usr/include/%,$(include_files))) |
| |
| |
| include $(BUILD_SHARED_LIBRARY) |