1LOCAL_PATH:= $(call my-dir) 2include $(CLEAR_VARS) 3 4LOCAL_SRC_FILES:=clatd.c dump.c checksum.c translate.c icmp.c ipv4.c ipv6.c config.c dns64.c logging.c getaddr.c netlink_callbacks.c netlink_msg.c setif.c mtu.c tun.c ring.c 5 6LOCAL_CFLAGS := -Wall -Werror -Wunused-parameter 7LOCAL_C_INCLUDES := external/libnl/include bionic/libc/dns/include 8LOCAL_STATIC_LIBRARIES := libnl 9LOCAL_SHARED_LIBRARIES := libcutils liblog libnetutils 10 11# The clat daemon. 12LOCAL_MODULE := clatd 13 14include $(BUILD_EXECUTABLE) 15 16 17# The configuration file. 18include $(CLEAR_VARS) 19 20LOCAL_MODULE := clatd.conf 21LOCAL_MODULE_CLASS := ETC 22LOCAL_MODULE_PATH := $(TARGET_OUT)/etc 23LOCAL_SRC_FILES := $(LOCAL_MODULE) 24 25include $(BUILD_PREBUILT) 26 27 28# Unit tests. 29include $(CLEAR_VARS) 30 31LOCAL_MODULE := clatd_test 32LOCAL_CFLAGS := -Wall -Werror -Wunused-parameter 33LOCAL_SRC_FILES := clatd_test.cpp checksum.c translate.c icmp.c ipv4.c ipv6.c logging.c config.c tun.c 34LOCAL_MODULE_TAGS := eng tests 35LOCAL_SHARED_LIBRARIES := liblog 36 37include $(BUILD_NATIVE_TEST) 38 39# Microbenchmark. 40include $(CLEAR_VARS) 41 42LOCAL_CLANG := true 43LOCAL_MODULE := clatd_microbenchmark 44LOCAL_CFLAGS := -Wall -Werror -Wunused-parameter 45LOCAL_SRC_FILES := clatd_microbenchmark.c checksum.c tun.c 46LOCAL_MODULE_TAGS := eng tests 47 48include $(BUILD_NATIVE_TEST) 49