Home | History | Annotate | Download | only in et
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 libext2_com_err_src_files := \
      4 	error_message.c \
      5 	et_name.c \
      6 	init_et.c \
      7 	com_err.c \
      8 	com_right.c
      9 
     10 libext2_com_err_c_includes := external/e2fsprogs/lib
     11 
     12 libext2_com_err_cflags := -O2 -g -W -Wall \
     13 	-DHAVE_UNISTD_H \
     14 	-DHAVE_ERRNO_H \
     15 	-DHAVE_NETINET_IN_H \
     16 	-DHAVE_SYS_IOCTL_H \
     17 	-DHAVE_SYS_MMAN_H \
     18 	-DHAVE_SYS_MOUNT_H \
     19 	-DHAVE_SYS_RESOURCE_H \
     20 	-DHAVE_SYS_SELECT_H \
     21 	-DHAVE_SYS_STAT_H \
     22 	-DHAVE_SYS_TYPES_H \
     23 	-DHAVE_STDLIB_H \
     24 	-DHAVE_STRDUP \
     25 	-DHAVE_MMAP \
     26 	-DHAVE_UTIME_H \
     27 	-DHAVE_GETPAGESIZE \
     28 	-DHAVE_EXT2_IOCTLS \
     29 	-DHAVE_TYPE_SSIZE_T \
     30 	-DHAVE_SYS_TIME_H \
     31         -DHAVE_SYS_PARAM_H \
     32 	-DHAVE_SYSCONF
     33 
     34 libext2_com_err_cflags_linux := \
     35 	-DHAVE_LINUX_FD_H \
     36 	-DHAVE_SYS_PRCTL_H \
     37 	-DHAVE_LSEEK64 \
     38 	-DHAVE_LSEEK64_PROTOTYPE
     39 
     40 libext2_com_err_system_shared_libraries := libc
     41 
     42 include $(CLEAR_VARS)
     43 
     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
     50 
     51 include $(BUILD_SHARED_LIBRARY)
     52 
     53 include $(CLEAR_VARS)
     54 
     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 
     62 include $(BUILD_STATIC_LIBRARY)
     63 
     64 include $(CLEAR_VARS)
     65 
     66 LOCAL_SRC_FILES := $(libext2_com_err_src_files)
     67 LOCAL_C_INCLUDES := $(libext2_com_err_c_includes)
     68 ifeq ($(HOST_OS),linux)
     69 LOCAL_CFLAGS := $(libext2_com_err_cflags) $(libext2_com_err_cflags_linux)
     70 else
     71 LOCAL_CFLAGS := $(libext2_com_err_cflags)
     72 endif
     73 LOCAL_MODULE := libext2_com_err-host
     74 LOCAL_MODULE_TAGS := optional
     75 
     76 include $(BUILD_HOST_SHARED_LIBRARY)
     77