OSDN Git Service

Enable chattr and lsattr in the e2fsprogs build.
[android-x86/external-e2fsprogs.git] / resize / Android.mk
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_SYS_PARAM_H \
36         -DHAVE_SYSCONF
37
38 resize2fs_shared_libraries := \
39         libext2fs \
40         libext2_com_err \
41         libext2_e2p \
42         libext2_uuid \
43         libext2_blkid
44
45 resize2fs_system_shared_libraries := libc
46
47 include $(CLEAR_VARS)
48
49 LOCAL_SRC_FILES := $(resize2fs_src_files)
50 LOCAL_C_INCLUDES := $(resize2fs_c_includes)
51 LOCAL_CFLAGS := $(resize2fs_cflags)
52 LOCAL_SHARED_LIBRARIES := $(resize2fs_shared_libraries)
53 LOCAL_SYSTEM_SHARED_LIBRARIES := $(resize2fs_system_shared_libraries)
54 LOCAL_MODULE := resize2fs
55 LOCAL_MODULE_TAGS := optional
56 include $(BUILD_EXECUTABLE)
57
58 include $(CLEAR_VARS)
59
60 LOCAL_SRC_FILES := $(resize2fs_src_files)
61 LOCAL_C_INCLUDES := $(resize2fs_c_includes)
62 LOCAL_CFLAGS := $(resize2fs_cflags)
63 LOCAL_SHARED_LIBRARIES := $(addsuffix _host, $(resize2fs_shared_libraries))
64 LOCAL_MODULE := resize2fs_host
65 LOCAL_MODULE_STEM := resize2fs
66 LOCAL_MODULE_TAGS := optional
67
68 include $(BUILD_HOST_EXECUTABLE)