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
7# Bug: http://b/33566695
8LOCAL_CFLAGS += -Wno-address-of-packed-member
9LOCAL_C_INCLUDES := external/libnl/include bionic/libc/dns/include system/netd/include
10LOCAL_STATIC_LIBRARIES := libnl
11LOCAL_SHARED_LIBRARIES := libcutils liblog libnetutils
12
13# The clat daemon.
14LOCAL_MODULE := clatd
15
16include $(BUILD_EXECUTABLE)
17
18
19# The configuration file.
20include $(CLEAR_VARS)
21
22LOCAL_MODULE := clatd.conf
23LOCAL_MODULE_CLASS := ETC
24LOCAL_MODULE_PATH := $(TARGET_OUT)/etc
25LOCAL_SRC_FILES := $(LOCAL_MODULE)
26
27include $(BUILD_PREBUILT)
28
29
30# Unit tests.
31include $(CLEAR_VARS)
32
33LOCAL_MODULE := clatd_test
34LOCAL_CFLAGS := -Wall -Werror -Wunused-parameter
35# Bug: http://b/33566695
36LOCAL_CFLAGS += -Wno-address-of-packed-member
37LOCAL_SRC_FILES := clatd_test.cpp checksum.c translate.c icmp.c ipv4.c ipv6.c logging.c config.c tun.c
38LOCAL_MODULE_TAGS := eng tests
39LOCAL_SHARED_LIBRARIES := liblog libnetutils
40
41include $(BUILD_NATIVE_TEST)
42
43# Microbenchmark.
44include $(CLEAR_VARS)
45
46LOCAL_CLANG := true
47LOCAL_MODULE := clatd_microbenchmark
48LOCAL_CFLAGS := -Wall -Werror -Wunused-parameter
49LOCAL_SRC_FILES := clatd_microbenchmark.c checksum.c tun.c
50LOCAL_MODULE_TAGS := eng tests
51
52include $(BUILD_NATIVE_TEST)
53