blob: 54abb232c2aaeb12e888886384c6fbf6078209e8 [file] [log] [blame]
San Mehatf1b736b2009-10-10 17:22:08 -07001LOCAL_PATH:= $(call my-dir)
2
Kenny Rootacc9e7d2010-06-18 19:06:50 -07003common_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 Sumrall8f869aa2010-12-03 03:47:09 -080017 Xwarp.cpp \
18 cryptfs.c
Kenny Rootacc9e7d2010-06-18 19:06:50 -070019
20common_c_includes := \
21 $(KERNEL_HEADERS) \
Ken Sumrall3ed82362011-01-28 23:31:16 -080022 system/extras/ext4_utils \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070023 external/openssl/include
24
25common_shared_libraries := \
26 libsysutils \
27 libcutils \
28 libdiskconfig \
Ken Sumrall5d4c68e2011-01-30 19:06:03 -080029 libhardware_legacy \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070030 libcrypto
31
San Mehatf1b736b2009-10-10 17:22:08 -070032include $(CLEAR_VARS)
33
Kenny Rootacc9e7d2010-06-18 19:06:50 -070034LOCAL_MODULE := libvold
35
36LOCAL_SRC_FILES := $(common_src_files)
37
38LOCAL_C_INCLUDES := $(common_c_includes)
39
40LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
41
42LOCAL_MODULE_TAGS := eng tests
43
44include $(BUILD_STATIC_LIBRARY)
45
46include $(CLEAR_VARS)
San Mehatf1b736b2009-10-10 17:22:08 -070047
48LOCAL_MODULE:= vold
49
Kenny Rootacc9e7d2010-06-18 19:06:50 -070050LOCAL_SRC_FILES := \
51 main.cpp \
52 $(common_src_files)
53
54LOCAL_C_INCLUDES := $(common_c_includes)
San Mehatf1b736b2009-10-10 17:22:08 -070055
Nick Kralevich9713ed42012-02-23 13:20:30 -080056LOCAL_CFLAGS := -Werror=format
San Mehatf1b736b2009-10-10 17:22:08 -070057
Kenny Rootacc9e7d2010-06-18 19:06:50 -070058LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
San Mehatf1b736b2009-10-10 17:22:08 -070059
60include $(BUILD_EXECUTABLE)
61
62include $(CLEAR_VARS)
Kenny Root7b18a7b2010-03-15 13:13:41 -070063
64LOCAL_SRC_FILES:= vdc.c
San Mehatf1b736b2009-10-10 17:22:08 -070065
66LOCAL_MODULE:= vdc
67
68LOCAL_C_INCLUDES := $(KERNEL_HEADERS)
69
70LOCAL_CFLAGS :=
71
72LOCAL_SHARED_LIBRARIES := libcutils
73
74include $(BUILD_EXECUTABLE)