1LOCAL_PATH:= $(call my-dir) 2 3common_src_files := \ 4 VolumeManager.cpp \ 5 CommandListener.cpp \ 6 VoldCommand.cpp \ 7 NetlinkManager.cpp \ 8 NetlinkHandler.cpp \ 9 Volume.cpp \ 10 DirectVolume.cpp \ 11 Process.cpp \ 12 Ext4.cpp \ 13 Fat.cpp \ 14 Loop.cpp \ 15 Devmapper.cpp \ 16 ResponseCode.cpp \ 17 Xwarp.cpp \ 18 VoldUtil.c \ 19 fstrim.c \ 20 cryptfs.c 21 22common_c_includes := \ 23 $(KERNEL_HEADERS) \ 24 system/extras/ext4_utils \ 25 external/openssl/include \ 26 external/stlport/stlport \ 27 bionic \ 28 external/scrypt/lib/crypto 29 30common_shared_libraries := \ 31 libsysutils \ 32 libstlport \ 33 libcutils \ 34 liblog \ 35 libdiskconfig \ 36 libhardware_legacy \ 37 liblogwrap \ 38 libext4_utils \ 39 libcrypto 40 41common_static_libraries := \ 42 libfs_mgr \ 43 libscrypt_static \ 44 libmincrypt 45 46include $(CLEAR_VARS) 47 48LOCAL_MODULE := libvold 49 50LOCAL_SRC_FILES := $(common_src_files) 51 52LOCAL_C_INCLUDES := $(common_c_includes) 53 54LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) 55 56LOCAL_STATIC_LIBRARIES := $(common_static_libraries) 57 58LOCAL_MODULE_TAGS := eng tests 59 60include $(BUILD_STATIC_LIBRARY) 61 62include $(CLEAR_VARS) 63 64LOCAL_MODULE:= vold 65 66LOCAL_SRC_FILES := \ 67 main.cpp \ 68 $(common_src_files) 69 70LOCAL_C_INCLUDES := $(common_c_includes) 71 72LOCAL_CFLAGS := -Werror=format 73 74LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) 75 76LOCAL_STATIC_LIBRARIES := $(common_static_libraries) 77 78include $(BUILD_EXECUTABLE) 79 80include $(CLEAR_VARS) 81 82LOCAL_SRC_FILES:= vdc.c 83 84LOCAL_MODULE:= vdc 85 86LOCAL_C_INCLUDES := $(KERNEL_HEADERS) 87 88LOCAL_CFLAGS := 89 90LOCAL_SHARED_LIBRARIES := libcutils 91 92include $(BUILD_EXECUTABLE) 93