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