Android.mk revision b67219a71d1d896bcb34c4a7a797824b88515b2c
1# Copyright (C) 2014 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15LOCAL_PATH := $(call my-dir)
16
17include $(CLEAR_VARS)
18
19LOCAL_C_INCLUDES := \
20        $(call include-path-for, libhardware_legacy)/hardware_legacy \
21        bionic/libc/dns/include \
22        external/mdnsresponder/mDNSShared \
23        system/netd/include \
24
25LOCAL_CLANG := true
26LOCAL_CPPFLAGS := -std=c++11 -Wall -Werror
27LOCAL_MODULE := netd
28
29LOCAL_SHARED_LIBRARIES := \
30        libcrypto \
31        libcutils \
32        libdl \
33        libhardware_legacy \
34        liblog \
35        liblogwrap \
36        libmdnssd \
37        libnetutils \
38        libnl \
39        libsysutils \
40        libbase \
41        libutils \
42
43LOCAL_STATIC_LIBRARIES := \
44        libpcap \
45
46LOCAL_SRC_FILES := \
47        BandwidthController.cpp \
48        ClatdController.cpp \
49        CommandListener.cpp \
50        DnsProxyListener.cpp \
51        FirewallController.cpp \
52        FwmarkServer.cpp \
53        IdletimerController.cpp \
54        InterfaceController.cpp \
55        LocalNetwork.cpp \
56        MDnsSdListener.cpp \
57        NatController.cpp \
58        NetdCommand.cpp \
59        NetdConstants.cpp \
60        NetlinkHandler.cpp \
61        NetlinkManager.cpp \
62        Network.cpp \
63        NetworkController.cpp \
64        PhysicalNetwork.cpp \
65        PppController.cpp \
66        ResolverController.cpp \
67        RouteController.cpp \
68        SoftapController.cpp \
69        StrictController.cpp \
70        TetherController.cpp \
71        UidRanges.cpp \
72        VirtualNetwork.cpp \
73        main.cpp \
74        oem_iptables_hook.cpp \
75
76include $(BUILD_EXECUTABLE)
77
78include $(CLEAR_VARS)
79
80LOCAL_CFLAGS := -Wall -Werror
81LOCAL_CLANG := true
82LOCAL_MODULE := ndc
83LOCAL_SHARED_LIBRARIES := libcutils
84LOCAL_SRC_FILES := ndc.c
85
86include $(BUILD_EXECUTABLE)
87