blob: e4256aec9fe8793e0361b3212587dbb88bd085a4 [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 \
Kenny Root344ca102012-04-03 17:23:01 -070013 Ext4.cpp \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070014 Fat.cpp \
15 Loop.cpp \
16 Devmapper.cpp \
17 ResponseCode.cpp \
Ken Sumrall8f869aa2010-12-03 03:47:09 -080018 Xwarp.cpp \
19 cryptfs.c
Kenny Rootacc9e7d2010-06-18 19:06:50 -070020
21common_c_includes := \
22 $(KERNEL_HEADERS) \
Ken Sumrall3ed82362011-01-28 23:31:16 -080023 system/extras/ext4_utils \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070024 external/openssl/include
25
26common_shared_libraries := \
27 libsysutils \
28 libcutils \
29 libdiskconfig \
Ken Sumrall5d4c68e2011-01-30 19:06:03 -080030 libhardware_legacy \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070031 libcrypto
32
San Mehatf1b736b2009-10-10 17:22:08 -070033include $(CLEAR_VARS)
34
Kenny Rootacc9e7d2010-06-18 19:06:50 -070035LOCAL_MODULE := libvold
36
37LOCAL_SRC_FILES := $(common_src_files)
38
39LOCAL_C_INCLUDES := $(common_c_includes)
40
41LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
42
43LOCAL_MODULE_TAGS := eng tests
44
45include $(BUILD_STATIC_LIBRARY)
46
47include $(CLEAR_VARS)
San Mehatf1b736b2009-10-10 17:22:08 -070048
49LOCAL_MODULE:= vold
50
Kenny Rootacc9e7d2010-06-18 19:06:50 -070051LOCAL_SRC_FILES := \
52 main.cpp \
53 $(common_src_files)
54
55LOCAL_C_INCLUDES := $(common_c_includes)
San Mehatf1b736b2009-10-10 17:22:08 -070056
Nick Kralevich9713ed42012-02-23 13:20:30 -080057LOCAL_CFLAGS := -Werror=format
San Mehatf1b736b2009-10-10 17:22:08 -070058
Kenny Rootacc9e7d2010-06-18 19:06:50 -070059LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
San Mehatf1b736b2009-10-10 17:22:08 -070060
61include $(BUILD_EXECUTABLE)
62
63include $(CLEAR_VARS)
Kenny Root7b18a7b2010-03-15 13:13:41 -070064
65LOCAL_SRC_FILES:= vdc.c
San Mehatf1b736b2009-10-10 17:22:08 -070066
67LOCAL_MODULE:= vdc
68
69LOCAL_C_INCLUDES := $(KERNEL_HEADERS)
70
71LOCAL_CFLAGS :=
72
73LOCAL_SHARED_LIBRARIES := libcutils
74
75include $(BUILD_EXECUTABLE)