1LOCAL_PATH := $(call my-dir) 2 3resize2fs_src_files := \ 4 extent.c \ 5 resize2fs.c \ 6 main.c \ 7 online.c \ 8 sim_progress.c \ 9 resource_track.c 10 11resize2fs_c_includes := external/e2fsprogs/lib 12 13resize2fs_cflags := -O2 -g -W -Wall \ 14 -DHAVE_UNISTD_H \ 15 -DHAVE_ERRNO_H \ 16 -DHAVE_NETINET_IN_H \ 17 -DHAVE_SYS_IOCTL_H \ 18 -DHAVE_SYS_MMAN_H \ 19 -DHAVE_SYS_MOUNT_H \ 20 -DHAVE_SYS_PRCTL_H \ 21 -DHAVE_SYS_RESOURCE_H \ 22 -DHAVE_SYS_SELECT_H \ 23 -DHAVE_SYS_STAT_H \ 24 -DHAVE_SYS_TYPES_H \ 25 -DHAVE_STDLIB_H \ 26 -DHAVE_STRDUP \ 27 -DHAVE_MMAP \ 28 -DHAVE_UTIME_H \ 29 -DHAVE_GETPAGESIZE \ 30 -DHAVE_LSEEK64 \ 31 -DHAVE_LSEEK64_PROTOTYPE \ 32 -DHAVE_EXT2_IOCTLS \ 33 -DHAVE_LINUX_FD_H \ 34 -DHAVE_TYPE_SSIZE_T \ 35 -DHAVE_SYS_TIME_H \ 36 -DHAVE_SYS_PARAM_H \ 37 -DHAVE_SYSCONF 38 39resize2fs_shared_libraries := \ 40 libext2fs \ 41 libext2_com_err \ 42 libext2_e2p \ 43 libext2_uuid \ 44 libext2_blkid 45 46resize2fs_system_shared_libraries := libc 47 48include $(CLEAR_VARS) 49 50LOCAL_SRC_FILES := $(resize2fs_src_files) 51LOCAL_C_INCLUDES := $(resize2fs_c_includes) 52LOCAL_CFLAGS := $(resize2fs_cflags) 53LOCAL_SHARED_LIBRARIES := $(resize2fs_shared_libraries) 54LOCAL_SYSTEM_SHARED_LIBRARIES := $(resize2fs_system_shared_libraries) 55LOCAL_MODULE := resize2fs 56LOCAL_MODULE_TAGS := optional 57include $(BUILD_EXECUTABLE) 58 59include $(CLEAR_VARS) 60 61LOCAL_SRC_FILES := $(resize2fs_src_files) 62LOCAL_C_INCLUDES := $(resize2fs_c_includes) 63LOCAL_CFLAGS := $(resize2fs_cflags) 64LOCAL_SHARED_LIBRARIES := $(addsuffix -host, $(resize2fs_shared_libraries)) 65LOCAL_MODULE := resize2fs_host 66LOCAL_MODULE_STEM := resize2fs 67LOCAL_MODULE_TAGS := optional 68 69include $(BUILD_HOST_EXECUTABLE) 70