1 # Copyright 2010 The Android Open Source Project
3 LOCAL_PATH:= $(call my-dir)
5 libext4_utils_src_files := \
19 # -- All host/targets including windows
23 LOCAL_SRC_FILES := $(libext4_utils_src_files)
24 LOCAL_MODULE := libext4_utils_host
25 # Various instances of dereferencing a type-punned pointer in extent.c
26 LOCAL_CFLAGS += -fno-strict-aliasing
27 LOCAL_STATIC_LIBRARIES := \
30 ifneq ($(HOST_OS),windows)
31 LOCAL_STATIC_LIBRARIES += libselinux
33 include $(BUILD_HOST_STATIC_LIBRARY)
37 LOCAL_SRC_FILES := make_ext4fs_main.c canned_fs_config.c
38 LOCAL_MODULE := make_ext4fs
39 LOCAL_SHARED_LIBRARIES += libcutils
40 LOCAL_STATIC_LIBRARIES += \
44 ifeq ($(HOST_OS),windows)
45 LOCAL_LDLIBS += -lws2_32
47 LOCAL_SHARED_LIBRARIES += libselinux
48 LOCAL_CFLAGS := -DHOST
50 include $(BUILD_HOST_EXECUTABLE)
54 # -- All host/targets excluding windows
57 libext4_utils_src_files += \
60 unencrypted_properties.cpp
62 ifneq ($(HOST_OS),windows)
65 LOCAL_SRC_FILES := $(libext4_utils_src_files)
66 LOCAL_MODULE := libext4_utils
67 LOCAL_C_INCLUDES += system/core/logwrapper/include
68 # Various instances of dereferencing a type-punned pointer in extent.c
69 LOCAL_CFLAGS += -fno-strict-aliasing
70 LOCAL_SHARED_LIBRARIES := \
76 LOCAL_CFLAGS := -DREAL_UUID
77 include $(BUILD_SHARED_LIBRARY)
81 LOCAL_SRC_FILES := $(libext4_utils_src_files) \
82 ext4_crypt_init_extensions.cpp
83 LOCAL_MODULE := libext4_utils_static
84 # Various instances of dereferencing a type-punned pointer in extent.c
85 LOCAL_CFLAGS += -fno-strict-aliasing
86 LOCAL_STATIC_LIBRARIES := \
88 include $(BUILD_STATIC_LIBRARY)
92 LOCAL_SRC_FILES := make_ext4fs_main.c canned_fs_config.c
93 LOCAL_MODULE := make_ext4fs
94 LOCAL_SHARED_LIBRARIES := \
100 LOCAL_CFLAGS := -DREAL_UUID
101 include $(BUILD_EXECUTABLE)
104 include $(CLEAR_VARS)
105 LOCAL_SRC_FILES := ext2simg.c
106 LOCAL_MODULE := ext2simg
107 LOCAL_SHARED_LIBRARIES += \
112 include $(BUILD_EXECUTABLE)
115 include $(CLEAR_VARS)
116 LOCAL_SRC_FILES := ext2simg.c
117 LOCAL_MODULE := ext2simg
118 LOCAL_SHARED_LIBRARIES += \
120 LOCAL_STATIC_LIBRARIES += \
124 include $(BUILD_HOST_EXECUTABLE)
127 include $(CLEAR_VARS)
128 LOCAL_SRC_FILES := setup_fs.c
129 LOCAL_MODULE := setup_fs
130 LOCAL_SHARED_LIBRARIES += libcutils
131 include $(BUILD_EXECUTABLE)
134 include $(CLEAR_VARS)
135 LOCAL_SRC_FILES := ext4fixup_main.c
136 LOCAL_MODULE := ext4fixup
137 LOCAL_SHARED_LIBRARIES += \
141 include $(BUILD_EXECUTABLE)
144 include $(CLEAR_VARS)
145 LOCAL_SRC_FILES := ext4fixup_main.c
146 LOCAL_MODULE := ext4fixup
147 LOCAL_STATIC_LIBRARIES += \
151 include $(BUILD_HOST_EXECUTABLE)
154 include $(CLEAR_VARS)
155 LOCAL_MODULE := mkuserimg.sh
156 LOCAL_SRC_FILES := mkuserimg.sh
157 LOCAL_MODULE_CLASS := EXECUTABLES
158 # We don't need any additional suffix.
159 LOCAL_MODULE_SUFFIX :=
160 LOCAL_BUILT_MODULE_STEM := $(notdir $(LOCAL_SRC_FILES))
161 LOCAL_IS_HOST_MODULE := true
162 include $(BUILD_PREBUILT)