Whamcloud - gitweb
libext2fs: remove c99 idiom to fix build
[tools/e2fsprogs.git] / contrib / android / Android.mk
1 LOCAL_PATH := $(call my-dir)
2
3 #########################################################################
4 # Build statically linked e2fsdroid for recovery
5 e2fsdroid_src_files := \
6         e2fsdroid.c \
7         block_range.c \
8         fsmap.c \
9         block_list.c \
10         base_fs.c \
11         perms.c \
12         basefs_allocator.c \
13
14 e2fsdroid_cflags := -W -Wall -Werror -Wno-error=macro-redefined
15
16 e2fsdroid_static_libraries := \
17         libext2_com_err \
18         libext2_misc \
19         libcutils \
20         libselinux \
21         libcrypto \
22         libsparse \
23         liblog \
24         libz \
25
26 e2fsdroid_whole_static_libraries := \
27         libbase \
28         libext2fs \
29
30 include $(CLEAR_VARS)
31
32 LOCAL_SRC_FILES := $(e2fsdroid_src_files)
33 LOCAL_CFLAGS := $(e2fsdroid_cflags)
34 LOCAL_WHOLE_STATIC_LIBRARIES := $(e2fsdroid_whole_static_libraries)
35 LOCAL_STATIC_LIBRARIES := $(e2fsdroid_static_libraries)
36 LOCAL_MODULE := e2fsdroid_static
37 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
38 LOCAL_FORCE_STATIC_EXECUTABLE := true
39
40 include $(BUILD_EXECUTABLE)
41