San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 3 | common_src_files := \ |
| 4 | VolumeManager.cpp \ |
| 5 | CommandListener.cpp \ |
| 6 | VoldCommand.cpp \ |
| 7 | NetlinkManager.cpp \ |
| 8 | NetlinkHandler.cpp \ |
| 9 | Volume.cpp \ |
| 10 | DirectVolume.cpp \ |
| 11 | logwrapper.c \ |
| 12 | Process.cpp \ |
| 13 | Fat.cpp \ |
| 14 | Loop.cpp \ |
| 15 | Devmapper.cpp \ |
| 16 | ResponseCode.cpp \ |
Ken Sumrall | 8f869aa | 2010-12-03 03:47:09 -0800 | [diff] [blame] | 17 | Xwarp.cpp \ |
| 18 | cryptfs.c |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 19 | |
| 20 | common_c_includes := \ |
| 21 | $(KERNEL_HEADERS) \ |
Ken Sumrall | 3ed8236 | 2011-01-28 23:31:16 -0800 | [diff] [blame] | 22 | system/extras/ext4_utils \ |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 23 | external/openssl/include |
| 24 | |
| 25 | common_shared_libraries := \ |
| 26 | libsysutils \ |
| 27 | libcutils \ |
| 28 | libdiskconfig \ |
Ken Sumrall | 5d4c68e | 2011-01-30 19:06:03 -0800 | [diff] [blame] | 29 | libhardware_legacy \ |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 30 | libcrypto |
| 31 | |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 32 | include $(CLEAR_VARS) |
| 33 | |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 34 | LOCAL_MODULE := libvold |
| 35 | |
| 36 | LOCAL_SRC_FILES := $(common_src_files) |
| 37 | |
| 38 | LOCAL_C_INCLUDES := $(common_c_includes) |
| 39 | |
| 40 | LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) |
| 41 | |
| 42 | LOCAL_MODULE_TAGS := eng tests |
| 43 | |
| 44 | include $(BUILD_STATIC_LIBRARY) |
| 45 | |
| 46 | include $(CLEAR_VARS) |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 47 | |
| 48 | LOCAL_MODULE:= vold |
| 49 | |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 50 | LOCAL_SRC_FILES := \ |
| 51 | main.cpp \ |
| 52 | $(common_src_files) |
| 53 | |
| 54 | LOCAL_C_INCLUDES := $(common_c_includes) |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 55 | |
Nick Kralevich | 9713ed4 | 2012-02-23 13:20:30 -0800 | [diff] [blame] | 56 | LOCAL_CFLAGS := -Werror=format |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 57 | |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 58 | LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 59 | |
| 60 | include $(BUILD_EXECUTABLE) |
| 61 | |
| 62 | include $(CLEAR_VARS) |
Kenny Root | 7b18a7b | 2010-03-15 13:13:41 -0700 | [diff] [blame] | 63 | |
| 64 | LOCAL_SRC_FILES:= vdc.c |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 65 | |
| 66 | LOCAL_MODULE:= vdc |
| 67 | |
| 68 | LOCAL_C_INCLUDES := $(KERNEL_HEADERS) |
| 69 | |
| 70 | LOCAL_CFLAGS := |
| 71 | |
| 72 | LOCAL_SHARED_LIBRARIES := libcutils |
| 73 | |
| 74 | include $(BUILD_EXECUTABLE) |