Whamcloud - gitweb
Add configure --disable-tdb which disables e2fsck's scratch_files feature
[tools/e2fsprogs.git] / lib / ext2fs / Android.mk
1 LOCAL_PATH := $(call my-dir)
2
3 libext2fs_src_files := \
4         ext2_err.c \
5         alloc.c \
6         alloc_sb.c \
7         alloc_stats.c \
8         alloc_tables.c \
9         atexit.c \
10         badblocks.c \
11         bb_inode.c \
12         bitmaps.c \
13         bitops.c \
14         blkmap64_ba.c \
15         blkmap64_rb.c \
16         blknum.c \
17         block.c \
18         bmap.c \
19         check_desc.c \
20         crc16.c \
21         crc32c.c \
22         csum.c \
23         closefs.c \
24         dblist.c \
25         dblist_dir.c \
26         digest_encode.c \
27         dirblock.c \
28         dirhash.c \
29         dir_iterate.c \
30         dupfs.c \
31         expanddir.c \
32         ext_attr.c \
33         extent.c \
34         fallocate.c \
35         fileio.c \
36         finddev.c \
37         flushb.c \
38         freefs.c \
39         gen_bitmap.c \
40         gen_bitmap64.c \
41         get_num_dirs.c \
42         get_pathname.c \
43         getsize.c \
44         getsectsize.c \
45         i_block.c \
46         icount.c \
47         imager.c \
48         ind_block.c \
49         initialize.c \
50         inline.c \
51         inline_data.c \
52         inode.c \
53         io_manager.c \
54         ismounted.c \
55         link.c \
56         llseek.c \
57         lookup.c \
58         mmp.c \
59         mkdir.c \
60         mkjournal.c \
61         namei.c \
62         native.c \
63         newdir.c \
64         openfs.c \
65         progress.c \
66         punch.c \
67         qcow2.c \
68         rbtree.c \
69         read_bb.c \
70         read_bb_file.c \
71         res_gdt.c \
72         rw_bitmaps.c \
73         sha256.c \
74         sha512.c \
75         swapfs.c \
76         symlink.c \
77         undo_io.c \
78         unix_io.c \
79         unlink.c \
80         valid_blk.c \
81         version.c
82
83 # get rid of this?!
84 libext2fs_src_files += test_io.c
85
86 libext2fs_shared_libraries := \
87         libext2_com_err \
88         libext2_uuid \
89         libext2_blkid \
90         libext2_e2p
91
92 libext2fs_system_shared_libraries := libc
93
94 libext2fs_static_libraries := \
95         libext2_com_err \
96         libext2_uuid_static \
97         libext2_blkid \
98         libext2_e2p
99
100 libext2fs_system_static_libraries := libc
101
102 libext2fs_c_includes := external/e2fsprogs/lib
103
104 libext2fs_cflags := -O2 -g -W -Wall
105
106 include $(CLEAR_VARS)
107
108 LOCAL_SRC_FILES := $(libext2fs_src_files)
109 LOCAL_SYSTEM_SHARED_LIBRARIES := $(libext2fs_system_shared_libraries)
110 LOCAL_SHARED_LIBRARIES := $(libext2fs_shared_libraries)
111 LOCAL_C_INCLUDES := $(libext2fs_c_includes)
112 LOCAL_EXPORT_C_INCLUDE_DIRS := $(libext2fs_c_includes)
113 LOCAL_CFLAGS := $(libext2fs_cflags)
114 LOCAL_MODULE := libext2fs
115 LOCAL_MODULE_TAGS := optional
116
117 include $(BUILD_SHARED_LIBRARY)
118
119 include $(CLEAR_VARS)
120
121 LOCAL_SRC_FILES := $(libext2fs_src_files)
122 LOCAL_STATIC_LIBRARIES := $(libext2fs_static_libraries) $(libext2fs_system_static_libraries)
123 LOCAL_C_INCLUDES := $(libext2fs_c_includes)
124 LOCAL_EXPORT_C_INCLUDE_DIRS := $(libext2fs_c_includes)
125 LOCAL_CFLAGS := $(libext2fs_cflags) $(libext2fs_cflags_linux)
126 LOCAL_MODULE := libext2fs
127 LOCAL_MODULE_TAGS := optional
128
129 include $(BUILD_STATIC_LIBRARY)
130
131 include $(CLEAR_VARS)
132
133 LOCAL_SRC_FILES := $(libext2fs_src_files)
134 LOCAL_SHARED_LIBRARIES := $(addsuffix -host, $(libext2fs_shared_libraries))
135 LOCAL_C_INCLUDES := $(libext2fs_c_includes)
136 LOCAL_EXPORT_C_INCLUDE_DIRS := $(libext2fs_c_includes)
137 LOCAL_CFLAGS := $(libext2fs_cflags)
138 LOCAL_MODULE := libext2fs-host
139 LOCAL_MODULE_TAGS := optional
140
141 include $(BUILD_HOST_SHARED_LIBRARY)