blob: b7a4905eb09c4c7dac2e993e4102cb0a021ebf39 [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
Ken Sumrallf0679f02012-04-01 23:58:44 -070043LOCAL_STATIC_LIBRARIES := libfs_mgr
44
Kenny Rootacc9e7d2010-06-18 19:06:50 -070045LOCAL_MODULE_TAGS := eng tests
46
47include $(BUILD_STATIC_LIBRARY)
48
49include $(CLEAR_VARS)
San Mehatf1b736b2009-10-10 17:22:08 -070050
51LOCAL_MODULE:= vold
52
Kenny Rootacc9e7d2010-06-18 19:06:50 -070053LOCAL_SRC_FILES := \
54 main.cpp \
55 $(common_src_files)
56
57LOCAL_C_INCLUDES := $(common_c_includes)
San Mehatf1b736b2009-10-10 17:22:08 -070058
Nick Kralevich9713ed42012-02-23 13:20:30 -080059LOCAL_CFLAGS := -Werror=format
San Mehatf1b736b2009-10-10 17:22:08 -070060
Kenny Rootacc9e7d2010-06-18 19:06:50 -070061LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
San Mehatf1b736b2009-10-10 17:22:08 -070062
Ken Sumrallf0679f02012-04-01 23:58:44 -070063LOCAL_STATIC_LIBRARIES := libfs_mgr
64
San Mehatf1b736b2009-10-10 17:22:08 -070065include $(BUILD_EXECUTABLE)
66
67include $(CLEAR_VARS)
Kenny Root7b18a7b2010-03-15 13:13:41 -070068
69LOCAL_SRC_FILES:= vdc.c
San Mehatf1b736b2009-10-10 17:22:08 -070070
71LOCAL_MODULE:= vdc
72
73LOCAL_C_INCLUDES := $(KERNEL_HEADERS)
74
75LOCAL_CFLAGS :=
76
77LOCAL_SHARED_LIBRARIES := libcutils
78
79include $(BUILD_EXECUTABLE)