diff options
-rw-r--r-- | Android.bp | 17 | ||||
-rw-r--r-- | Android.mk | 26 |
2 files changed, 17 insertions, 26 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..0f5b335 --- /dev/null +++ b/Android.bp @@ -0,0 +1,17 @@ +cc_binary { + name: "nfacct", + + cflags: [ + "-Wall", + "-Werror", + "-Wno-format", + "-Wno-unused-parameter", + "-Wno-unused-variable", + + "-DHAVE_LIBNL20", + ], + + srcs: ["nfacct.c"], + + shared_libs: ["libnl"], +} diff --git a/Android.mk b/Android.mk deleted file mode 100644 index c3d8283..0000000 --- a/Android.mk +++ /dev/null @@ -1,26 +0,0 @@ -LOCAL_PATH:= $(call my-dir) -include $(CLEAR_VARS) -include $(LOCAL_PATH)/android.config - -INCLUDES = $(LOCAL_PATH) -INCLUDES += external/libnl/include - -LOCAL_CFLAGS := \ - -Wall -Werror \ - -Wno-format \ - -Wno-unused-parameter \ - -Wno-unused-variable \ - -ifdef HAVE_LIBNL20 -LOCAL_CFLAGS += -DHAVE_LIBNL20 -endif - -######################## - -LOCAL_SRC_FILES:= nfacct.c -LOCAL_MODULE := nfacct - -LOCAL_SHARED_LIBRARIES += libnl -LOCAL_C_INCLUDES := $(INCLUDES) - -include $(BUILD_EXECUTABLE) |