San Mehat | d183042 | 2010-01-15 08:02:39 -0800 | [diff] [blame] | 1 | BUILD_NETD := false |
| 2 | ifneq ($(TARGET_SIMULATOR),true) |
| 3 | BUILD_NETD := true |
| 4 | endif |
| 5 | |
| 6 | ifeq ($(BUILD_NETD),true) |
| 7 | |
| 8 | LOCAL_PATH:= $(call my-dir) |
| 9 | |
| 10 | include $(CLEAR_VARS) |
| 11 | |
| 12 | LOCAL_SRC_FILES:= \ |
| 13 | main.cpp \ |
Dmitry Shmidt | 5af38c3 | 2010-02-10 11:10:39 -0800 | [diff] [blame^] | 14 | CommandListener.cpp \ |
San Mehat | d183042 | 2010-01-15 08:02:39 -0800 | [diff] [blame] | 15 | NetdCommand.cpp \ |
| 16 | NetlinkManager.cpp \ |
| 17 | NetlinkHandler.cpp \ |
San Mehat | 9d10b34 | 2010-01-18 09:51:02 -0800 | [diff] [blame] | 18 | logwrapper.c \ |
San Mehat | 9ff78fb | 2010-01-19 12:59:15 -0800 | [diff] [blame] | 19 | TetherController.cpp \ |
San Mehat | d5573d3 | 2010-01-19 17:19:41 -0800 | [diff] [blame] | 20 | NatController.cpp \ |
San Mehat | 1bdac9e | 2010-01-21 14:03:06 -0800 | [diff] [blame] | 21 | PppController.cpp \ |
Dmitry Shmidt | 5af38c3 | 2010-02-10 11:10:39 -0800 | [diff] [blame^] | 22 | PanController.cpp \ |
| 23 | SoftapController.cpp |
San Mehat | d183042 | 2010-01-15 08:02:39 -0800 | [diff] [blame] | 24 | |
| 25 | LOCAL_MODULE:= netd |
| 26 | |
San Mehat | 1bdac9e | 2010-01-21 14:03:06 -0800 | [diff] [blame] | 27 | LOCAL_C_INCLUDES := $(KERNEL_HEADERS) -I../../frameworks/base/include/ \ |
| 28 | $(LOCAL_PATH)/../bluetooth/bluedroid/include \ |
| 29 | $(LOCAL_PATH)/../bluetooth/bluez-clean-headers |
San Mehat | d183042 | 2010-01-15 08:02:39 -0800 | [diff] [blame] | 30 | |
| 31 | LOCAL_CFLAGS := |
San Mehat | 5c1b8af | 2010-01-21 15:37:10 -0800 | [diff] [blame] | 32 | LOCAL_SHARED_LIBRARIES := libsysutils libcutils libnetutils |
San Mehat | d183042 | 2010-01-15 08:02:39 -0800 | [diff] [blame] | 33 | |
San Mehat | f1c368a | 2010-01-27 17:13:32 -0800 | [diff] [blame] | 34 | ifeq ($(BOARD_HAVE_BLUETOOTH),true) |
San Mehat | 0399710 | 2010-01-21 15:53:32 -0800 | [diff] [blame] | 35 | LOCAL_SHARED_LIBRARIES := $(LOCAL_SHARED_LIBRARIES) libbluedroid |
| 36 | LOCAL_CFLAGS := $(LOCAL_CFLAGS) -DHAVE_BLUETOOTH |
| 37 | endif |
San Mehat | d183042 | 2010-01-15 08:02:39 -0800 | [diff] [blame] | 38 | |
| 39 | include $(BUILD_EXECUTABLE) |
| 40 | |
| 41 | include $(CLEAR_VARS) |
| 42 | LOCAL_SRC_FILES:= \ |
| 43 | ndc.c \ |
| 44 | |
| 45 | LOCAL_MODULE:= ndc |
| 46 | |
| 47 | LOCAL_C_INCLUDES := $(KERNEL_HEADERS) |
| 48 | |
| 49 | LOCAL_CFLAGS := |
| 50 | |
| 51 | LOCAL_SHARED_LIBRARIES := libcutils |
| 52 | |
| 53 | include $(BUILD_EXECUTABLE) |
| 54 | |
| 55 | endif # ifeq ($(BUILD_NETD,true) |