Home | History | Annotate | Download | only in netd
      1 LOCAL_PATH:= $(call my-dir)
      2 
      3 include $(CLEAR_VARS)
      4 
      5 LOCAL_SRC_FILES:=                                      \
      6                   BandwidthController.cpp              \
      7                   CommandListener.cpp                  \
      8                   DnsProxyListener.cpp                 \
      9                   MDnsSdListener.cpp                   \
     10                   IdletimerController.cpp              \
     11                   NatController.cpp                    \
     12                   NetdCommand.cpp                      \
     13                   NetdConstants.cpp                    \
     14                   NetlinkHandler.cpp                   \
     15                   NetlinkManager.cpp                   \
     16                   PanController.cpp                    \
     17                   PppController.cpp                    \
     18                   ResolverController.cpp               \
     19                   SecondaryTableController.cpp         \
     20                   SoftapController.cpp                 \
     21                   TetherController.cpp                 \
     22                   ThrottleController.cpp               \
     23                   oem_iptables_hook.cpp                \
     24                   logwrapper.c                         \
     25                   main.cpp                             \
     26 
     27 
     28 LOCAL_MODULE:= netd
     29 
     30 LOCAL_C_INCLUDES := $(KERNEL_HEADERS) \
     31                     $(LOCAL_PATH)/../bluetooth/bluedroid/include \
     32                     $(LOCAL_PATH)/../bluetooth/bluez-clean-headers \
     33                     external/mdnsresponder/mDNSShared \
     34                     external/openssl/include \
     35                     external/stlport/stlport \
     36                     bionic \
     37                     bionic/libc/private \
     38                     $(call include-path-for, libhardware_legacy)/hardware_legacy
     39 
     40 LOCAL_CFLAGS := -Werror=format
     41 
     42 LOCAL_SHARED_LIBRARIES := libstlport libsysutils libcutils libnetutils \
     43                           libcrypto libhardware_legacy libmdnssd
     44 
     45 ifneq ($(BOARD_HOSTAPD_DRIVER),)
     46   LOCAL_CFLAGS += -DHAVE_HOSTAPD
     47 endif
     48 
     49 ifeq ($(BOARD_HAVE_BLUETOOTH),true)
     50   LOCAL_SHARED_LIBRARIES := $(LOCAL_SHARED_LIBRARIES) libbluedroid
     51   LOCAL_CFLAGS := $(LOCAL_CFLAGS) -DHAVE_BLUETOOTH
     52 endif
     53 
     54 include $(BUILD_EXECUTABLE)
     55 
     56 include $(CLEAR_VARS)
     57 LOCAL_SRC_FILES:=          \
     58                   ndc.c \
     59 
     60 LOCAL_MODULE:= ndc
     61 
     62 LOCAL_C_INCLUDES := $(KERNEL_HEADERS)
     63 
     64 LOCAL_CFLAGS := 
     65 
     66 LOCAL_SHARED_LIBRARIES := libcutils
     67 
     68 include $(BUILD_EXECUTABLE)
     69