e2fsprogs/debugfs/Android.mk
Alex Deymo 205593f65b Android.mk: Replace _host suffix with more standard -host suffix
Most libraries use the "-host" suffix when building for the host. This
patch renames all the libraries to use -host instead of _host.

Addresses-Google-Bug: #24619596
TEST=make dist

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2016-03-15 01:25:11 -04:00

94 lines
1.9 KiB
Makefile

LOCAL_PATH := $(call my-dir)
#########################
# Build the debugfs binary
debugfs_src_files := \
debug_cmds.c \
debugfs.c \
util.c \
ncheck.c\
icheck.c \
ls.c \
lsdel.c \
dump.c \
set_fields.c \
logdump.c \
htree.c \
unused.c \
e2freefrag.c \
filefrag.c \
extent_cmds.c \
extent_inode.c \
zap.c \
create_inode.c \
quota.c \
xattrs.c \
journal.c \
revoke.c \
recovery.c \
do_journal.c
debugfs_shared_libraries := \
libext2fs \
libext2_blkid \
libext2_uuid \
libext2_ss \
libext2_quota \
libext2_com_err \
libext2_e2p
debugfs_system_shared_libraries := libc
debugfs_static_libraries := \
libext2fs \
libext2_blkid \
libext2_uuid_static \
libext2_ss \
libext2_quota \
libext2_com_err \
libext2_e2p
debugfs_system_static_libraries := libc
debugfs_c_includes := \
external/e2fsprogs/e2fsck \
external/e2fsprogs/misc \
external/e2fsprogs/lib
debugfs_cflags := -O2 -g -W -Wall -fno-strict-aliasing -DDEBUGFS
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(debugfs_src_files)
LOCAL_C_INCLUDES := $(debugfs_c_includes)
LOCAL_CFLAGS := $(debugfs_cflags)
LOCAL_SYSTEM_SHARED_LIBRARIES := $(debugfs_system_shared_libraries)
LOCAL_SHARED_LIBRARIES := $(debugfs_shared_libraries)
LOCAL_MODULE := debugfs
LOCAL_MODULE_TAGS := optional
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(debugfs_src_files)
LOCAL_C_INCLUDES := $(debugfs_c_includes)
LOCAL_CFLAGS := $(debugfs_cflags)
LOCAL_STATIC_LIBRARIES := $(debugfs_static_libraries) $(debugfs_system_static_libraries)
LOCAL_FORCE_STATIC_EXECUTABLE := true
LOCAL_MODULE := debugfs_static
LOCAL_MODULE_TAGS := optional
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(debugfs_src_files)
LOCAL_C_INCLUDES := $(debugfs_c_includes)
LOCAL_CFLAGS := $(debugfs_cflags)
LOCAL_SHARED_LIBRARIES := $(addsuffix -host, $(debugfs_shared_libraries))
LOCAL_MODULE := debugfs_host
LOCAL_MODULE_STEM := debugfs
LOCAL_MODULE_TAGS := optional
include $(BUILD_HOST_EXECUTABLE)