]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blob - debugfs/Android.mk
AOSP: HACK: android: exit(1) if selabel_lookup fails
[thirdparty/e2fsprogs.git] / debugfs / Android.mk
1 LOCAL_PATH := $(call my-dir)
2
3 #########################
4 # Build the debugfs binary
5
6 debugfs_src_files := \
7 debug_cmds.c \
8 debugfs.c \
9 util.c \
10 ncheck.c\
11 icheck.c \
12 ls.c \
13 lsdel.c \
14 dump.c \
15 set_fields.c \
16 logdump.c \
17 htree.c \
18 unused.c \
19 e2freefrag.c \
20 filefrag.c \
21 extent_cmds.c \
22 extent_inode.c \
23 zap.c \
24 create_inode.c \
25 quota.c \
26 xattrs.c \
27 journal.c \
28 revoke.c \
29 recovery.c \
30 do_journal.c
31
32 debugfs_shared_libraries := \
33 libext2fs \
34 libext2_blkid \
35 libext2_uuid \
36 libext2_ss \
37 libext2_quota \
38 libext2_com_err \
39 libext2_e2p
40
41 debugfs_system_shared_libraries := libc
42
43 debugfs_static_libraries := \
44 libext2fs \
45 libext2_blkid \
46 libext2_uuid_static \
47 libext2_ss \
48 libext2_quota \
49 libext2_com_err \
50 libext2_e2p
51
52 debugfs_system_static_libraries := libc
53
54 debugfs_c_includes := \
55 external/e2fsprogs/e2fsck \
56 external/e2fsprogs/misc \
57 external/e2fsprogs/lib
58
59 debugfs_cflags := -O2 -g -W -Wall -fno-strict-aliasing -DDEBUGFS
60
61 include $(CLEAR_VARS)
62
63 LOCAL_SRC_FILES := $(debugfs_src_files)
64 LOCAL_C_INCLUDES := $(debugfs_c_includes)
65 LOCAL_CFLAGS := $(debugfs_cflags)
66 LOCAL_SYSTEM_SHARED_LIBRARIES := $(debugfs_system_shared_libraries)
67 LOCAL_SHARED_LIBRARIES := $(debugfs_shared_libraries)
68 LOCAL_MODULE := debugfs
69 LOCAL_MODULE_TAGS := optional
70 include $(BUILD_EXECUTABLE)
71
72 include $(CLEAR_VARS)
73
74 LOCAL_SRC_FILES := $(debugfs_src_files)
75 LOCAL_C_INCLUDES := $(debugfs_c_includes)
76 LOCAL_CFLAGS := $(debugfs_cflags)
77 LOCAL_STATIC_LIBRARIES := $(debugfs_static_libraries) $(debugfs_system_static_libraries)
78 LOCAL_FORCE_STATIC_EXECUTABLE := true
79 LOCAL_MODULE := debugfs_static
80 LOCAL_MODULE_TAGS := optional
81 include $(BUILD_EXECUTABLE)
82
83 include $(CLEAR_VARS)
84
85 LOCAL_SRC_FILES := $(debugfs_src_files)
86 LOCAL_C_INCLUDES := $(debugfs_c_includes)
87 LOCAL_CFLAGS := $(debugfs_cflags)
88 LOCAL_SHARED_LIBRARIES := $(addsuffix -host, $(debugfs_shared_libraries))
89 LOCAL_MODULE := debugfs_host
90 LOCAL_MODULE_STEM := debugfs
91 LOCAL_MODULE_TAGS := optional
92
93 include $(BUILD_HOST_EXECUTABLE)