1# Copyright 2010 The Android Open Source Project
2
3LOCAL_PATH:= $(call my-dir)
4
5#
6# -- All host/targets including windows
7#
8
9include $(CLEAR_VARS)
10LOCAL_SRC_FILES := make_ext4fs_main.c
11LOCAL_MODULE := make_ext4fs
12LOCAL_C_INCLUDES := \
13    $(LOCAL_PATH)/include
14LOCAL_SHARED_LIBRARIES += libcutils
15LOCAL_STATIC_LIBRARIES += \
16    libext4_utils \
17    libsparse \
18    libz
19LOCAL_LDLIBS_windows += -lws2_32
20LOCAL_SHARED_LIBRARIES_darwin += libselinux
21LOCAL_SHARED_LIBRARIES_linux += libselinux
22LOCAL_CFLAGS_darwin := -DHOST
23LOCAL_CFLAGS_linux := -DHOST
24include $(BUILD_HOST_EXECUTABLE)
25
26
27include $(CLEAR_VARS)
28LOCAL_SRC_FILES := blk_alloc_to_base_fs.c
29LOCAL_MODULE := blk_alloc_to_base_fs
30LOCAL_SHARED_LIBRARIES := libcutils
31LOCAL_CFLAGS_darwin := -DHOST
32LOCAL_CFLAGS_linux := -DHOST
33include $(BUILD_HOST_EXECUTABLE)
34
35#
36# -- All host/targets excluding windows
37#
38
39ifneq ($(HOST_OS),windows)
40
41include $(CLEAR_VARS)
42LOCAL_SRC_FILES := make_ext4fs_main.c
43LOCAL_MODULE := make_ext4fs
44LOCAL_C_INCLUDES := \
45    $(LOCAL_PATH)/include
46LOCAL_SHARED_LIBRARIES := \
47    libcutils \
48    libext2_uuid \
49    libext4_utils \
50    libselinux \
51    libz
52LOCAL_CFLAGS := -DREAL_UUID
53include $(BUILD_EXECUTABLE)
54
55
56include $(CLEAR_VARS)
57LOCAL_SRC_FILES := setup_fs.c
58LOCAL_MODULE := setup_fs
59LOCAL_SHARED_LIBRARIES += libcutils
60include $(BUILD_EXECUTABLE)
61
62
63include $(CLEAR_VARS)
64LOCAL_SRC_FILES := ext4fixup_main.c
65LOCAL_MODULE := ext4fixup
66LOCAL_SHARED_LIBRARIES += \
67    libext4_utils \
68    libsparse \
69    libz
70include $(BUILD_EXECUTABLE)
71
72
73include $(CLEAR_VARS)
74LOCAL_SRC_FILES := ext4fixup_main.c
75LOCAL_MODULE := ext4fixup
76LOCAL_STATIC_LIBRARIES += \
77    libext4_utils \
78    libsparse \
79    libz
80include $(BUILD_HOST_EXECUTABLE)
81
82
83include $(CLEAR_VARS)
84LOCAL_MODULE := mkuserimg.sh
85LOCAL_SRC_FILES := mkuserimg.sh
86LOCAL_MODULE_CLASS := EXECUTABLES
87# We don't need any additional suffix.
88LOCAL_MODULE_SUFFIX :=
89LOCAL_BUILT_MODULE_STEM := $(notdir $(LOCAL_SRC_FILES))
90LOCAL_IS_HOST_MODULE := true
91include $(BUILD_PREBUILT)
92
93
94include $(CLEAR_VARS)
95LOCAL_MODULE := mkuserimg_mke2fs.sh
96LOCAL_SRC_FILES := mkuserimg_mke2fs.sh
97LOCAL_MODULE_CLASS := EXECUTABLES
98LOCAL_REQUIRED_MODULES := mke2fs e2fsdroid
99# We don't need any additional suffix.
100LOCAL_MODULE_SUFFIX :=
101LOCAL_BUILT_MODULE_STEM := $(notdir $(LOCAL_SRC_FILES))
102LOCAL_IS_HOST_MODULE := true
103include $(BUILD_PREBUILT)
104
105endif
106