1 LOCAL_PATH := $(call my-dir)
3 libext2_com_err_src_files := \
10 libext2_com_err_c_includes := external/e2fsprogs/lib
12 libext2_com_err_cflags := -O2 -g -W -Wall \
19 -DHAVE_SYS_RESOURCE_H \
34 libext2_com_err_cflags_linux := \
38 -DHAVE_LSEEK64_PROTOTYPE
40 libext2_com_err_system_shared_libraries := libc
44 LOCAL_SRC_FILES := $(libext2_com_err_src_files)
45 LOCAL_C_INCLUDES := $(libext2_com_err_c_includes)
46 LOCAL_CFLAGS := $(libext2_com_err_cflags) $(libext2_com_err_cflags_linux)
47 LOCAL_SYSTEM_SHARED_LIBRARIES := libc
48 LOCAL_MODULE := libext2_com_err
49 LOCAL_MODULE_TAGS := optional
51 include $(BUILD_SHARED_LIBRARY)
55 LOCAL_SRC_FILES := $(libext2_com_err_src_files)
56 LOCAL_C_INCLUDES := $(libext2_com_err_c_includes)
57 LOCAL_CFLAGS := $(libext2_com_err_cflags) $(libext2_com_err_cflags_linux)
58 LOCAL_STATIC_LIBRARIES := libc
59 LOCAL_MODULE := libext2_com_err
60 LOCAL_MODULE_TAGS := optional
61 LOCAL_PRELINK_MODULE := false
63 include $(BUILD_STATIC_LIBRARY)
67 LOCAL_SRC_FILES := $(libext2_com_err_src_files)
68 LOCAL_C_INCLUDES := $(libext2_com_err_c_includes)
69 ifeq ($(HOST_OS),linux)
70 LOCAL_CFLAGS := $(libext2_com_err_cflags) $(libext2_com_err_cflags_linux)
72 LOCAL_CFLAGS := $(libext2_com_err_cflags)
74 LOCAL_MODULE := libext2_com_err_host
75 LOCAL_MODULE_TAGS := optional
77 include $(BUILD_HOST_SHARED_LIBRARY)