1 LOCAL_PATH := $(call my-dir) 2 3 libext2_quota_src_files := \ 4 mkquota.c \ 5 quotaio.c \ 6 quotaio_tree.c \ 7 quotaio_v2.c \ 8 ../../e2fsck/dict.c 9 10 libext2_quota_c_includes := external/e2fsprogs/lib 11 12 libext2_quota_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_PRCTL_H \ 20 -DHAVE_SYS_RESOURCE_H \ 21 -DHAVE_SYS_SELECT_H \ 22 -DHAVE_SYS_STAT_H \ 23 -DHAVE_SYS_TYPES_H \ 24 -DHAVE_STDLIB_H \ 25 -DHAVE_STRDUP \ 26 -DHAVE_MMAP \ 27 -DHAVE_UTIME_H \ 28 -DHAVE_GETPAGESIZE \ 29 -DHAVE_LSEEK64 \ 30 -DHAVE_LSEEK64_PROTOTYPE \ 31 -DHAVE_EXT2_IOCTLS \ 32 -DHAVE_LINUX_FD_H \ 33 -DHAVE_TYPE_SSIZE_T \ 34 -DHAVE_SYS_TIME_H \ 35 -DHAVE_SYS_PARAM_H \ 36 -DHAVE_SYSCONF 37 38 libext2_quota_shared_libraries := libext2fs libext2_com_err 39 40 include $(CLEAR_VARS) 41 42 LOCAL_SRC_FILES := $(libext2_quota_src_files) 43 LOCAL_C_INCLUDES := $(libext2_quota_c_includes) 44 LOCAL_CFLAGS := $(libext2_quota_cflags) 45 LOCAL_SYSTEM_SHARED_LIBRARIES := libc $(libext2_quota_shared_libraries) 46 LOCAL_PRELINK_MODULE := false 47 LOCAL_MODULE := libext2_quota 48 LOCAL_MODULE_TAGS := optional 49 50 include $(BUILD_SHARED_LIBRARY) 51 52 include $(CLEAR_VARS) 53 54 LOCAL_SRC_FILES := $(libext2_quota_src_files) 55 LOCAL_C_INCLUDES := $(libext2_quota_c_includes) 56 LOCAL_CFLAGS := $(libext2_quota_cflags) 57 LOCAL_MODULE := libext2_quota_host 58 LOCAL_MODULE_TAGS := optional 59 LOCAL_SHARED_LIBRARIES := $(addsuffix _host, $(libext2_quota_shared_libraries)) 60 61 include $(BUILD_HOST_SHARED_LIBRARY) 62