Home | History | Annotate | Download | only in resize
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 resize2fs_src_files := \
      4 	extent.c \
      5 	resize2fs.c \
      6 	main.c \
      7 	online.c \
      8 	sim_progress.c
      9 
     10 resize2fs_c_includes := external/e2fsprogs/lib
     11 
     12 resize2fs_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_SYSCONF
     36 
     37 resize2fs_shared_libraries := \
     38 	libext2fs \
     39 	libext2_com_err \
     40 	libext2_e2p \
     41 	libext2_uuid \
     42 	libext2_blkid
     43 
     44 resize2fs_system_shared_libraries := libc
     45 
     46 include $(CLEAR_VARS)
     47 
     48 LOCAL_SRC_FILES := $(resize2fs_src_files)
     49 LOCAL_C_INCLUDES := $(resize2fs_c_includes)
     50 LOCAL_CFLAGS := $(resize2fs_cflags)
     51 LOCAL_SHARED_LIBRARIES := $(resize2fs_shared_libraries)
     52 LOCAL_SYSTEM_SHARED_LIBRARIES := $(resize2fs_system_shared_libraries)
     53 LOCAL_MODULE := resize2fs
     54 LOCAL_MODULE_TAGS := optional
     55 include $(BUILD_EXECUTABLE)
     56 
     57 include $(CLEAR_VARS)
     58 
     59 LOCAL_SRC_FILES := $(resize2fs_src_files)
     60 LOCAL_C_INCLUDES := $(resize2fs_c_includes)
     61 LOCAL_CFLAGS := $(resize2fs_cflags)
     62 LOCAL_SHARED_LIBRARIES := $(addsuffix _host, $(resize2fs_shared_libraries))
     63 LOCAL_MODULE := resize2fs_host
     64 LOCAL_MODULE_STEM := resize2fs
     65 LOCAL_MODULE_TAGS := optional
     66 
     67 include $(BUILD_HOST_EXECUTABLE)
     68