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 	resource_track.c
     10 
     11 resize2fs_c_includes := external/e2fsprogs/lib
     12 
     13 resize2fs_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 
     39 resize2fs_shared_libraries := \
     40 	libext2fs \
     41 	libext2_com_err \
     42 	libext2_e2p \
     43 	libext2_uuid \
     44 	libext2_blkid
     45 
     46 resize2fs_system_shared_libraries := libc
     47 
     48 include $(CLEAR_VARS)
     49 
     50 LOCAL_SRC_FILES := $(resize2fs_src_files)
     51 LOCAL_C_INCLUDES := $(resize2fs_c_includes)
     52 LOCAL_CFLAGS := $(resize2fs_cflags)
     53 LOCAL_SHARED_LIBRARIES := $(resize2fs_shared_libraries)
     54 LOCAL_SYSTEM_SHARED_LIBRARIES := $(resize2fs_system_shared_libraries)
     55 LOCAL_MODULE := resize2fs
     56 LOCAL_MODULE_TAGS := optional
     57 include $(BUILD_EXECUTABLE)
     58 
     59 include $(CLEAR_VARS)
     60 
     61 LOCAL_SRC_FILES := $(resize2fs_src_files)
     62 LOCAL_C_INCLUDES := $(resize2fs_c_includes)
     63 LOCAL_CFLAGS := $(resize2fs_cflags)
     64 LOCAL_SHARED_LIBRARIES := $(addsuffix _host, $(resize2fs_shared_libraries))
     65 LOCAL_MODULE := resize2fs_host
     66 LOCAL_MODULE_STEM := resize2fs
     67 LOCAL_MODULE_TAGS := optional
     68 
     69 include $(BUILD_HOST_EXECUTABLE)
     70