Mathieu Poirier | c66949f | 2013-12-12 09:50:55 -0700 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
Mathieu Poirier | 6f7aae0 | 2013-12-20 12:18:31 -0700 | [diff] [blame] | 2 | include $(CLEAR_VARS) |
| 3 | include $(LOCAL_PATH)/android.config |
Mathieu Poirier | c66949f | 2013-12-12 09:50:55 -0700 | [diff] [blame] | 4 | |
| 5 | INCLUDES = $(LOCAL_PATH) |
| 6 | INCLUDES += external/libnl/include |
Mathieu Poirier | 6f7aae0 | 2013-12-20 12:18:31 -0700 | [diff] [blame] | 7 | |
Chih-Hung Hsieh | 3730e97 | 2017-10-11 13:30:41 -0700 | [diff] [blame] | 8 | LOCAL_CFLAGS := \ |
| 9 | -Wall -Werror \ |
| 10 | -Wno-format \ |
| 11 | -Wno-unused-parameter \ |
| 12 | -Wno-unused-variable \ |
| 13 | |
Mathieu Poirier | 6f7aae0 | 2013-12-20 12:18:31 -0700 | [diff] [blame] | 14 | ifdef HAVE_LIBNL20 |
| 15 | LOCAL_CFLAGS += -DHAVE_LIBNL20 |
| 16 | endif |
Mathieu Poirier | c66949f | 2013-12-12 09:50:55 -0700 | [diff] [blame] | 17 | |
| 18 | ######################## |
Mathieu Poirier | 6f7aae0 | 2013-12-20 12:18:31 -0700 | [diff] [blame] | 19 | |
Mathieu Poirier | c66949f | 2013-12-12 09:50:55 -0700 | [diff] [blame] | 20 | LOCAL_SRC_FILES:= nfacct.c |
| 21 | LOCAL_MODULE := nfacct |
| 22 | |
| 23 | LOCAL_SHARED_LIBRARIES += libnl |
| 24 | LOCAL_C_INCLUDES := $(INCLUDES) |
| 25 | |
| 26 | include $(BUILD_EXECUTABLE) |