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 DummyNetwork.cpp \ 52 FirewallController.cpp \ 53 FwmarkServer.cpp \ 54 IdletimerController.cpp \ 55 InterfaceController.cpp \ 56 LocalNetwork.cpp \ 57 MDnsSdListener.cpp \ 58 NatController.cpp \ 59 NetdCommand.cpp \ 60 NetdConstants.cpp \ 61 NetlinkHandler.cpp \ 62 NetlinkManager.cpp \ 63 Network.cpp \ 64 NetworkController.cpp \ 65 PhysicalNetwork.cpp \ 66 PppController.cpp \ 67 ResolverController.cpp \ 68 RouteController.cpp \ 69 SoftapController.cpp \ 70 StrictController.cpp \ 71 TetherController.cpp \ 72 UidRanges.cpp \ 73 VirtualNetwork.cpp \ 74 main.cpp \ 75 oem_iptables_hook.cpp \ 76 77include $(BUILD_EXECUTABLE) 78 79include $(CLEAR_VARS) 80 81LOCAL_CFLAGS := -Wall -Werror 82LOCAL_CLANG := true 83LOCAL_MODULE := ndc 84LOCAL_SHARED_LIBRARIES := libcutils 85LOCAL_SRC_FILES := ndc.c 86 87include $(BUILD_EXECUTABLE) 88