1f1b736bc5605e92e917ab27f5abf3ba839be2270San MehatLOCAL_PATH:= $(call my-dir)
2f1b736bc5605e92e917ab27f5abf3ba839be2270San Mehat
3acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Rootcommon_src_files := \
4acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root	VolumeManager.cpp \
5acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root	CommandListener.cpp \
6acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root	VoldCommand.cpp \
7acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root	NetlinkManager.cpp \
8acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root	NetlinkHandler.cpp \
9acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root	Volume.cpp \
10acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root	DirectVolume.cpp \
11acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root	logwrapper.c \
12acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root	Process.cpp \
13344ca10856f3d3087a3288ce8f91ad83665d93fbKenny Root	Ext4.cpp \
14acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root	Fat.cpp \
15acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root	Loop.cpp \
16acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root	Devmapper.cpp \
17acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root	ResponseCode.cpp \
188f869aa1bc685b505c58e97b4e11a9c7491a16f9Ken Sumrall	Xwarp.cpp \
198f869aa1bc685b505c58e97b4e11a9c7491a16f9Ken Sumrall	cryptfs.c
20acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root
21acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Rootcommon_c_includes := \
22acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root	$(KERNEL_HEADERS) \
233ed8236de11a1be8b45d4c37b2208682f5e97c72Ken Sumrall	system/extras/ext4_utils \
24acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root	external/openssl/include
25acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root
26acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Rootcommon_shared_libraries := \
27acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root	libsysutils \
28acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root	libcutils \
29acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root	libdiskconfig \
305d4c68e40700424b65a4331be75620706a0dd49cKen Sumrall	libhardware_legacy \
31acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root	libcrypto
32acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root
33f1b736bc5605e92e917ab27f5abf3ba839be2270San Mehatinclude $(CLEAR_VARS)
34f1b736bc5605e92e917ab27f5abf3ba839be2270San Mehat
35acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny RootLOCAL_MODULE := libvold
36acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root
37acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny RootLOCAL_SRC_FILES := $(common_src_files)
38acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root
39acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny RootLOCAL_C_INCLUDES := $(common_c_includes)
40acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root
41acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny RootLOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
42acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root
43f0679f0da4970f04e1cb03f4cb0fcde29e3e7098Ken SumrallLOCAL_STATIC_LIBRARIES := libfs_mgr
44f0679f0da4970f04e1cb03f4cb0fcde29e3e7098Ken Sumrall
45acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny RootLOCAL_MODULE_TAGS := eng tests
46acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root
47acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Rootinclude $(BUILD_STATIC_LIBRARY)
48acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root
49acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Rootinclude $(CLEAR_VARS)
50f1b736bc5605e92e917ab27f5abf3ba839be2270San Mehat
51f1b736bc5605e92e917ab27f5abf3ba839be2270San MehatLOCAL_MODULE:= vold
52f1b736bc5605e92e917ab27f5abf3ba839be2270San Mehat
53acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny RootLOCAL_SRC_FILES := \
54acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root	main.cpp \
55acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root	$(common_src_files)
56acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny Root
57acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny RootLOCAL_C_INCLUDES := $(common_c_includes)
58f1b736bc5605e92e917ab27f5abf3ba839be2270San Mehat
599713ed463917f193823c7c6ecf1c7cb2a1ae9fccNick KralevichLOCAL_CFLAGS := -Werror=format
60f1b736bc5605e92e917ab27f5abf3ba839be2270San Mehat
61acc9e7dcca8978fc809fa5b4d9b819c515a980ffKenny RootLOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
62f1b736bc5605e92e917ab27f5abf3ba839be2270San Mehat
63f0679f0da4970f04e1cb03f4cb0fcde29e3e7098Ken SumrallLOCAL_STATIC_LIBRARIES := libfs_mgr
64f0679f0da4970f04e1cb03f4cb0fcde29e3e7098Ken Sumrall
65f1b736bc5605e92e917ab27f5abf3ba839be2270San Mehatinclude $(BUILD_EXECUTABLE)
66f1b736bc5605e92e917ab27f5abf3ba839be2270San Mehat
67f1b736bc5605e92e917ab27f5abf3ba839be2270San Mehatinclude $(CLEAR_VARS)
687b18a7b36f61574c0f0bdde0a7409dc36676fa12Kenny Root
697b18a7b36f61574c0f0bdde0a7409dc36676fa12Kenny RootLOCAL_SRC_FILES:= vdc.c
70f1b736bc5605e92e917ab27f5abf3ba839be2270San Mehat
71f1b736bc5605e92e917ab27f5abf3ba839be2270San MehatLOCAL_MODULE:= vdc
72f1b736bc5605e92e917ab27f5abf3ba839be2270San Mehat
73f1b736bc5605e92e917ab27f5abf3ba839be2270San MehatLOCAL_C_INCLUDES := $(KERNEL_HEADERS)
74f1b736bc5605e92e917ab27f5abf3ba839be2270San Mehat
75f1b736bc5605e92e917ab27f5abf3ba839be2270San MehatLOCAL_CFLAGS := 
76f1b736bc5605e92e917ab27f5abf3ba839be2270San Mehat
77f1b736bc5605e92e917ab27f5abf3ba839be2270San MehatLOCAL_SHARED_LIBRARIES := libcutils
78f1b736bc5605e92e917ab27f5abf3ba839be2270San Mehat
79f1b736bc5605e92e917ab27f5abf3ba839be2270San Mehatinclude $(BUILD_EXECUTABLE)
80