Use relative path for private includes
Change-Id: I44071e1035560ecff2fd4a8a9723468b0e23eb8a
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
diff --git a/ip/Android.mk b/ip/Android.mk
index 6562143..cedc7f5 100644
--- a/ip/Android.mk
+++ b/ip/Android.mk
@@ -15,9 +15,9 @@
LOCAL_SHARED_LIBRARIES += libiprouteutil libnetlink
-LOCAL_C_INCLUDES := $(KERNEL_HEADERS) external/iproute2/include
+LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include
-LOCAL_CFLAGS := -O2 -g -W -Wall
+LOCAL_CFLAGS := -O2 -g -W -Wall
LOCAL_LDFLAGS := -Wl,-export-dynamic -Wl,--no-gc-sections
diff --git a/lib/Android.mk b/lib/Android.mk
index 76af7f1..f6143b4 100644
--- a/lib/Android.mk
+++ b/lib/Android.mk
@@ -4,7 +4,7 @@
LOCAL_SRC_FILES := utils.c rt_names.c ll_types.c ll_proto.c ll_addr.c inet_proto.c
LOCAL_MODULE := libiprouteutil
LOCAL_SYSTEM_SHARED_LIBRARIES := libc
-LOCAL_C_INCLUDES := $(KERNEL_HEADERS) external/iproute2/include
+LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include
LOCAL_CFLAGS := -O2 -g -W -Wall \
-DHAVE_UNISTD_H \
-DHAVE_ERRNO_H \
@@ -33,7 +33,7 @@
LOCAL_SRC_FILES := ll_map.c libnetlink.c
LOCAL_MODULE := libnetlink
LOCAL_SYSTEM_SHARED_LIBRARIES := libc
-LOCAL_C_INCLUDES := $(KERNEL_HEADERS) external/iproute2/include
+LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include
LOCAL_CFLAGS := -O2 -g -W -Wall \
-DHAVE_UNISTD_H \
-DHAVE_ERRNO_H \
diff --git a/tc/Android.mk b/tc/Android.mk
index ecdaf88..07150e9 100644
--- a/tc/Android.mk
+++ b/tc/Android.mk
@@ -12,9 +12,9 @@
LOCAL_SHARED_LIBRARIES += libiprouteutil libnetlink
-LOCAL_C_INCLUDES := $(KERNEL_HEADERS) external/iproute2/include
+LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include
-LOCAL_CFLAGS := -O2 -g -W -Wall
+LOCAL_CFLAGS := -O2 -g -W -Wall
include $(BUILD_EXECUTABLE)