OSDN Git Service

92ef7764effe566eb60b9d07faf36dee708e9390
[android-x86/external-e2fsprogs.git] / lib / blkid / Android.mk
1 LOCAL_PATH := $(call my-dir)
2
3 libext2_blkid_src_files := \
4         cache.c \
5         dev.c \
6         devname.c \
7         devno.c \
8         getsize.c \
9         llseek.c \
10         probe.c \
11         read.c \
12         resolve.c \
13         save.c \
14         tag.c \
15         version.c \
16
17
18 libext2_blkid_shared_libraries := libext2_uuid
19
20 libext2_blkid_system_shared_libraries := libc
21
22 libext2_blkid_c_includes := external/e2fsprogs/lib
23
24 libext2_blkid_cflags := -O2 -g -W -Wall -fno-strict-aliasing \
25         -DHAVE_UNISTD_H \
26         -DHAVE_ERRNO_H \
27         -DHAVE_NETINET_IN_H \
28         -DHAVE_SYS_IOCTL_H \
29         -DHAVE_SYS_MMAN_H \
30         -DHAVE_SYS_MOUNT_H \
31         -DHAVE_SYS_RESOURCE_H \
32         -DHAVE_SYS_SELECT_H \
33         -DHAVE_SYS_STAT_H \
34         -DHAVE_SYS_TYPES_H \
35         -DHAVE_STDLIB_H \
36         -DHAVE_STRDUP \
37         -DHAVE_MMAP \
38         -DHAVE_UTIME_H \
39         -DHAVE_GETPAGESIZE \
40         -DHAVE_EXT2_IOCTLS \
41         -DHAVE_TYPE_SSIZE_T \
42         -DHAVE_SYS_TIME_H \
43         -DHAVE_SYS_PARAM_H \
44         -DHAVE_SYSCONF
45
46 libext2_blkid_cflags_linux := \
47         -DHAVE_LINUX_FD_H \
48         -DHAVE_SYS_PRCTL_H \
49         -DHAVE_LSEEK64 \
50         -DHAVE_LSEEK64_PROTOTYPE
51
52 include $(CLEAR_VARS)
53
54 LOCAL_SRC_FILES := $(libext2_blkid_src_files)
55 LOCAL_SYSTEM_SHARED_LIBRARIES := $(libext2_blkid_system_shared_libraries)
56 LOCAL_SHARED_LIBRARIES := $(libext2_blkid_shared_libraries)
57 LOCAL_C_INCLUDES := $(libext2_blkid_c_includes)
58 LOCAL_CFLAGS := $(libext2_blkid_cflags) $(libext2_blkid_cflags_linux) -fno-strict-aliasing
59 LOCAL_PRELINK_MODULE := false
60 LOCAL_MODULE := libext2_blkid
61 LOCAL_MODULE_TAGS := optional
62
63 include $(BUILD_SHARED_LIBRARY)
64
65 include $(CLEAR_VARS)
66
67 LOCAL_SRC_FILES := $(libext2_blkid_src_files)
68 LOCAL_SHARED_LIBRARIES := $(addsuffix _host, $(libext2_blkid_shared_libraries))
69 LOCAL_C_INCLUDES := $(libext2_blkid_c_includes)
70 ifeq ($(HOST_OS),linux)
71 LOCAL_CFLAGS := $(libext2_blkid_cflags) $(libext2_blkid_cflags_linux)
72 else
73 LOCAL_CFLAGS := $(libext2_blkid_cflags)
74 endif
75 LOCAL_MODULE := libext2_blkid_host
76 LOCAL_MODULE_TAGS := optional
77
78 include $(BUILD_HOST_SHARED_LIBRARY)