Whamcloud - gitweb
tune2fs: allow tune2fs to be built as a static library for Android
[tools/e2fsprogs.git] / lib / support / Android.mk
1 LOCAL_PATH := $(call my-dir)
2
3 libext2_quota_src_files := \
4         mkquota.c \
5         quotaio.c \
6         quotaio_tree.c \
7         quotaio_v2.c \
8         ../../e2fsck/dict.c
9
10 libext2_quota_c_includes := external/e2fsprogs/lib
11
12 libext2_quota_cflags := -O2 -g -W -Wall
13
14 libext2_quota_shared_libraries := libext2fs libext2_com_err
15
16 libext2_quota_system_shared_libraries := libc
17
18 include $(CLEAR_VARS)
19
20 LOCAL_SRC_FILES := $(libext2_quota_src_files)
21 LOCAL_SYSTEM_SHARED_LIBRARIES := $(libext2_quota_system_shared_libraries)
22 LOCAL_C_INCLUDES := $(libext2_quota_c_includes)
23 LOCAL_CFLAGS := $(libext2_quota_cflags)
24 LOCAL_SYSTEM_SHARED_LIBRARIES := libc $(libext2_quota_shared_libraries)
25 LOCAL_MODULE := libext2_quota
26 LOCAL_MODULE_TAGS := optional
27
28 include $(BUILD_SHARED_LIBRARY)
29
30 libext2_quota_static_libraries := libext2fs libext2_com_err
31
32 include $(CLEAR_VARS)
33
34 LOCAL_SRC_FILES := $(libext2_quota_src_files)
35 LOCAL_C_INCLUDES := $(libext2_quota_c_includes)
36 LOCAL_CFLAGS := $(libext2_quota_cflags)
37 LOCAL_STATIC_LIBRARIES := libc $(libext2_quota_static_libraries)
38 LOCAL_PRELINK_MODULE := false
39 LOCAL_MODULE := libext2_quota
40 LOCAL_MODULE_TAGS := optional
41
42 include $(BUILD_STATIC_LIBRARY)
43
44 include $(CLEAR_VARS)
45
46 LOCAL_SRC_FILES := $(libext2_quota_src_files)
47 LOCAL_C_INCLUDES := $(libext2_quota_c_includes)
48 LOCAL_CFLAGS := $(libext2_quota_cflags)
49 LOCAL_MODULE := libext2_quota_host
50 LOCAL_MODULE_TAGS := optional
51 LOCAL_SHARED_LIBRARIES := $(addsuffix _host, $(libext2_quota_shared_libraries))
52
53 include $(BUILD_HOST_SHARED_LIBRARY)