Whamcloud - gitweb
2c436c7081e3d967f12d06e8b5565dec95d3ad8d
[tools/e2fsprogs.git] / misc / Android.mk
1 LOCAL_PATH := $(call my-dir)
2
3 #########################################################################
4 # Build mke2fs
5 mke2fs_src_files := \
6         mke2fs.c \
7         util.c \
8         mk_hugefiles.c \
9         default_profile.c \
10         create_inode.c \
11         plausible.c
12
13 mke2fs_c_includes := \
14         external/e2fsprogs/lib \
15         external/e2fsprogs/e2fsck
16
17 mke2fs_cflags := -O2 -g -W -Wall
18
19 mke2fs_shared_libraries := \
20         libext2fs \
21         libext2_blkid \
22         libext2_uuid \
23         libext2_quota \
24         libext2_com_err \
25         libext2_e2p
26
27 mke2fs_system_shared_libraries := libc
28
29 include $(CLEAR_VARS)
30
31 LOCAL_SRC_FILES := $(mke2fs_src_files)
32 LOCAL_C_INCLUDES := $(mke2fs_c_includes)
33 LOCAL_CFLAGS := $(mke2fs_cflags)
34 LOCAL_SYSTEM_SHARED_LIBRARIES := $(mke2fs_system_shared_libraries)
35 LOCAL_SHARED_LIBRARIES := $(mke2fs_shared_libraries)
36 LOCAL_MODULE := mke2fs
37 LOCAL_MODULE_TAGS := optional
38 include $(BUILD_EXECUTABLE)
39
40 include $(CLEAR_VARS)
41
42 LOCAL_SRC_FILES := $(mke2fs_src_files)
43 LOCAL_C_INCLUDES := $(mke2fs_c_includes)
44 LOCAL_CFLAGS := $(mke2fs_cflags)
45 LOCAL_SHARED_LIBRARIES := $(addsuffix _host, $(mke2fs_shared_libraries))
46 LOCAL_MODULE := mke2fs_host
47 LOCAL_MODULE_STEM := mke2fs
48 LOCAL_MODULE_TAGS := optional
49
50 include $(BUILD_HOST_EXECUTABLE)
51
52 ###########################################################################
53 # Build tune2fs
54 #
55 tune2fs_src_files := \
56         tune2fs.c \
57         plausible.c \
58         util.c
59
60 tune2fs_c_includes := \
61         external/e2fsprogs/lib \
62         external/e2fsprogs/e2fsck
63
64 tune2fs_cflags := -O2 -g -W -Wall
65
66 tune2fs_shared_libraries := \
67         libext2fs \
68         libext2_com_err \
69         libext2_blkid \
70         libext2_quota \
71         libext2_uuid \
72         libext2_e2p
73
74 tune2fs_system_shared_libraries := libc
75
76
77 tune2fs_static_libraries := \
78         libext2_com_err \
79         libext2_blkid \
80         libext2_quota \
81         libext2_uuid_static \
82         libext2_e2p \
83         libext2fs
84
85 tune2fs_system_static_libraries := libc
86
87 include $(CLEAR_VARS)
88
89 LOCAL_SRC_FILES := $(tune2fs_src_files)
90 LOCAL_C_INCLUDES := $(tune2fs_c_includes)
91 LOCAL_CFLAGS := $(tune2fs_cflags)
92 LOCAL_SHARED_LIBRARIES := $(tune2fs_shared_libraries)
93 LOCAL_SYSTEM_SHARED_LIBRARIES := $(tune2fs_system_shared_libraries)
94 LOCAL_MODULE := tune2fs
95 LOCAL_MODULE_TAGS := optional
96
97 include $(BUILD_EXECUTABLE)
98
99 include $(CLEAR_VARS)
100
101 LOCAL_SRC_FILES := $(tune2fs_src_files)
102 LOCAL_C_INCLUDES := $(tune2fs_c_includes)
103 LOCAL_CFLAGS := $(tune2fs_cflags)
104 LOCAL_STATIC_LIBRARIES := $(tune2fs_static_libraries) $(tune2fs_system_static_libraries)
105 LOCAL_FORCE_STATIC_EXECUTABLE := true
106 LOCAL_MODULE := tune2fs_static
107 LOCAL_MODULE_TAGS := optional
108
109 include $(BUILD_EXECUTABLE)
110
111 include $(CLEAR_VARS)
112
113 LOCAL_SRC_FILES := $(tune2fs_src_files)
114 LOCAL_C_INCLUDES := $(tune2fs_c_includes)
115 LOCAL_CFLAGS := $(tune2fs_cflags) -DBUILD_AS_LIB
116 LOCAL_STATIC_LIBRARIES := $(tune2fs_static_libraries) $(tune2fs_system_static_libraries)
117 LOCAL_MODULE := libtune2fs
118 LOCAL_MODULE_TAGS := optional
119
120 include $(BUILD_STATIC_LIBRARY)
121
122 include $(CLEAR_VARS)
123
124 LOCAL_SRC_FILES := $(tune2fs_src_files)
125 LOCAL_C_INCLUDES := $(tune2fs_c_includes)
126 LOCAL_CFLAGS := $(tune2fs_cflags)
127 LOCAL_SHARED_LIBRARIES := $(addsuffix _host, $(tune2fs_shared_libraries))
128 LOCAL_MODULE := tune2fs_host
129 LOCAL_MODULE_STEM := tune2fs
130 LOCAL_MODULE_TAGS := optional
131
132 include $(BUILD_HOST_EXECUTABLE)
133
134 #########################################################################
135 # Build badblocks
136 #
137 include $(CLEAR_VARS)
138
139 badblocks_src_files := \
140         badblocks.c
141
142 badblocks_c_includes := \
143         external/e2fsprogs/lib
144
145 badblocks_cflags := -O2 -g -W -Wall
146
147 badblocks_shared_libraries := \
148         libext2fs \
149         libext2_com_err \
150         libext2_uuid \
151         libext2_blkid \
152         libext2_e2p
153
154 badblocks_system_shared_libraries := libc
155
156 include $(CLEAR_VARS)
157
158 LOCAL_SRC_FILES := $(badblocks_src_files)
159 LOCAL_C_INCLUDES := $(badblocks_c_includes)
160 LOCAL_CFLAGS := $(badblocks_cflags)
161 LOCAL_SHARED_LIBRARIES := $(badblocks_shared_libraries)
162 LOCAL_SYSTEM_SHARED_LIBRARIES := $(badblocks_system_shared_libraries)
163 LOCAL_MODULE := badblocks
164 LOCAL_MODULE_TAGS := optional
165
166 include $(BUILD_EXECUTABLE)
167
168 include $(CLEAR_VARS)
169
170 LOCAL_SRC_FILES := $(badblocks_src_files)
171 LOCAL_C_INCLUDES := $(badblocks_c_includes)
172 LOCAL_CFLAGS := $(badblocks_cflags)
173 LOCAL_SHARED_LIBRARIES := $(addsuffix _host, $(badblocks_shared_libraries))
174 LOCAL_MODULE := badblocks_host
175 LOCAL_MODULE_STEM := badblocks
176 LOCAL_MODULE_TAGS := optional
177
178 include $(BUILD_HOST_EXECUTABLE)
179
180 #########################################################################
181 # Build chattr
182 #
183 include $(CLEAR_VARS)
184
185 chattr_src_files := \
186         chattr.c
187
188 chattr_c_includes := \
189         external/e2fsprogs/lib
190
191 chattr_cflags := -O2 -g -W -Wall
192
193 chattr_shared_libraries := \
194         libext2_com_err \
195         libext2_e2p
196
197 chattr_system_shared_libraries := libc
198
199 include $(CLEAR_VARS)
200
201 LOCAL_SRC_FILES := $(chattr_src_files)
202 LOCAL_C_INCLUDES := $(chattr_c_includes)
203 LOCAL_CFLAGS := $(chattr_cflags)
204 LOCAL_SHARED_LIBRARIES := $(chattr_shared_libraries)
205 LOCAL_SYSTEM_SHARED_LIBRARIES := $(chattr_system_shared_libraries)
206 LOCAL_MODULE := chattr
207 LOCAL_MODULE_TAGS := optional
208
209 include $(BUILD_EXECUTABLE)
210
211 include $(CLEAR_VARS)
212
213 LOCAL_SRC_FILES := $(chattr_src_files)
214 LOCAL_C_INCLUDES := $(chattr_c_includes)
215 LOCAL_CFLAGS := $(chattr_cflags)
216 LOCAL_SHARED_LIBRARIES := $(addsuffix _host, $(chattr_shared_libraries))
217 LOCAL_MODULE := chattr_host
218 LOCAL_MODULE_STEM := chattr
219 LOCAL_MODULE_TAGS := optional
220
221 include $(BUILD_HOST_EXECUTABLE)
222
223 #########################################################################
224 # Build lsattr
225 #
226 include $(CLEAR_VARS)
227
228 lsattr_src_files := \
229         lsattr.c
230
231 lsattr_c_includes := \
232         external/e2fsprogs/lib
233
234 lsattr_cflags := -O2 -g -W -Wall
235
236 lsattr_shared_libraries := \
237         libext2_com_err \
238         libext2_e2p
239
240 lsattr_system_shared_libraries := libc
241
242 include $(CLEAR_VARS)
243
244 LOCAL_SRC_FILES := $(lsattr_src_files)
245 LOCAL_C_INCLUDES := $(lsattr_c_includes)
246 LOCAL_CFLAGS := $(lsattr_cflags)
247 LOCAL_SHARED_LIBRARIES := $(lsattr_shared_libraries)
248 LOCAL_SYSTEM_SHARED_LIBRARIES := $(lsattr_system_shared_libraries)
249 LOCAL_MODULE := lsattr
250 LOCAL_MODULE_TAGS := optional
251
252 include $(BUILD_EXECUTABLE)
253
254 include $(CLEAR_VARS)
255
256 LOCAL_SRC_FILES := $(lsattr_src_files)
257 LOCAL_C_INCLUDES := $(lsattr_c_includes)
258 LOCAL_CFLAGS := $(lsattr_cflags)
259 LOCAL_SHARED_LIBRARIES := $(addsuffix _host, $(lsattr_shared_libraries))
260 LOCAL_MODULE := lsattr_host
261 LOCAL_MODULE_STEM := lsattr
262 LOCAL_MODULE_TAGS := optional
263
264 include $(BUILD_HOST_EXECUTABLE)
265
266 #########################################################################
267 # Build blkid
268 #
269 include $(CLEAR_VARS)
270
271 blkid_src_files := \
272     blkid.c
273
274 blkid_c_includes := \
275     external/e2fsprogs/lib
276
277 blkid_cflags := -O2 -g -W -Wall
278
279 blkid_shared_libraries := \
280     libext2fs \
281     libext2_blkid \
282     libext2_com_err \
283     libext2_e2p
284
285 blkid_system_shared_libraries := libc
286
287 include $(CLEAR_VARS)
288
289 LOCAL_SRC_FILES := $(blkid_src_files)
290 LOCAL_C_INCLUDES := $(blkid_c_includes)
291 LOCAL_CFLAGS := $(blkid_cflags)
292 LOCAL_SHARED_LIBRARIES := $(blkid_shared_libraries)
293 LOCAL_SYSTEM_SHARED_LIBRARIES := $(blkid_system_shared_libraries)
294 LOCAL_MODULE := blkid
295 LOCAL_MODULE_TAGS := optional
296
297 include $(BUILD_EXECUTABLE)
298
299 #########################################################################
300 # Build e4crypt
301 e4crypt_src_files := e4crypt.c
302
303 e4crypt_c_includes := \
304         external/e2fsprogs/lib
305
306 e4crypt_cflags := -O2 -g -W -Wall
307
308 e4crypt_shared_libraries := libext2fs libext2_uuid
309
310 e4crypt_system_shared_libraries := libc
311
312 include $(CLEAR_VARS)
313
314 LOCAL_SRC_FILES := $(e4crypt_src_files)
315 LOCAL_C_INCLUDES := $(e4crypt_c_includes)
316 LOCAL_CFLAGS := $(e4crypt_cflags)
317 LOCAL_SYSTEM_SHARED_LIBRARIES := $(e4crypt_system_shared_libraries)
318 LOCAL_SHARED_LIBRARIES := $(e4crypt_shared_libraries)
319 LOCAL_MODULE := e4crypt
320 LOCAL_MODULE_TAGS := optional
321 include $(BUILD_EXECUTABLE)
322
323 include $(CLEAR_VARS)
324
325 LOCAL_SRC_FILES := $(e4crypt_src_files)
326 LOCAL_C_INCLUDES := $(e4crypt_c_includes)
327 LOCAL_CFLAGS := $(e4crypt_cflags)
328 LOCAL_SHARED_LIBRARIES := $(addsuffix _host, $(e4crypt_shared_libraries))
329 LOCAL_MODULE := e4crypt_host
330 LOCAL_MODULE_STEM := e4crypt
331 LOCAL_MODULE_TAGS := optional
332
333 include $(BUILD_HOST_EXECUTABLE)
334
335 ###########################################################################
336 # Build e2image
337 #
338 e2image_src_files := \
339         e2image.c \
340         plausible.c
341
342 e2image_c_includes := \
343         external/e2fsprogs/lib
344
345 e2image_cflags := -O2 -g -W -Wall
346
347 e2image_shared_libraries := \
348         libext2fs \
349         libext2_blkid \
350         libext2_com_err
351
352 e2image_system_shared_libraries := libc
353
354 include $(CLEAR_VARS)
355
356 LOCAL_SRC_FILES := $(e2image_src_files)
357 LOCAL_C_INCLUDES := $(e2image_c_includes)
358 mke2fs_c_includesLOCAL_CFLAGS := $(e2image_cflags)
359 LOCAL_SHARED_LIBRARIES := $(e2image_shared_libraries)
360 LOCAL_SYSTEM_SHARED_LIBRARIES := $(e2image_system_shared_libraries)
361 LOCAL_MODULE := e2image
362 LOCAL_MODULE_TAGS := optional
363
364 include $(BUILD_EXECUTABLE)
365
366 include $(CLEAR_VARS)
367
368 LOCAL_SRC_FILES := $(e2image_src_files)
369 LOCAL_C_INCLUDES := $(e2image_c_includes)
370 LOCAL_CFLAGS := $(e2image_cflags)
371 LOCAL_SHARED_LIBRARIES := $(addsuffix _host, $(e2image_shared_libraries))
372 LOCAL_MODULE := e2image_host
373 LOCAL_MODULE_STEM := e2image
374 LOCAL_MODULE_TAGS := optional
375
376 include $(BUILD_HOST_EXECUTABLE)
377