Whamcloud - gitweb
Bring back libext2_profile build rules.
[tools/e2fsprogs.git] / lib / support / Android.mk
1 LOCAL_PATH := $(call my-dir)
2
3 libext2_quota_src_files := \
4         dict.c \
5         mkquota.c \
6         parse_qtype.c \
7         plausible.c \
8         profile.c \
9         profile_helpers.c \
10         prof_err.c \
11         quotaio.c \
12         quotaio_tree.c \
13         quotaio_v2.c
14
15 libext2_quota_c_includes := external/e2fsprogs/lib
16
17 libext2_quota_cflags := -O2 -g -W -Wall
18
19 libext2_quota_shared_libraries := libext2fs libext2_com_err libext2_blkid
20
21 libext2_quota_system_shared_libraries := libc
22
23 include $(CLEAR_VARS)
24
25 LOCAL_SRC_FILES := $(libext2_quota_src_files)
26 LOCAL_SYSTEM_SHARED_LIBRARIES := $(libext2_quota_system_shared_libraries)
27 LOCAL_C_INCLUDES := $(libext2_quota_c_includes)
28 LOCAL_CFLAGS := $(libext2_quota_cflags)
29 LOCAL_SYSTEM_SHARED_LIBRARIES := libc $(libext2_quota_shared_libraries)
30 LOCAL_MODULE := libext2_quota
31 LOCAL_MODULE_TAGS := optional
32
33 include $(BUILD_SHARED_LIBRARY)
34
35 libext2_quota_static_libraries := libext2fs libext2_com_err
36
37 include $(CLEAR_VARS)
38
39 LOCAL_SRC_FILES := $(libext2_quota_src_files)
40 LOCAL_C_INCLUDES := $(libext2_quota_c_includes)
41 LOCAL_CFLAGS := $(libext2_quota_cflags)
42 LOCAL_STATIC_LIBRARIES := libc $(libext2_quota_static_libraries)
43 LOCAL_MODULE := libext2_quota
44 LOCAL_MODULE_TAGS := optional
45
46 include $(BUILD_STATIC_LIBRARY)
47
48 include $(CLEAR_VARS)
49
50 LOCAL_SRC_FILES := $(libext2_quota_src_files)
51 LOCAL_C_INCLUDES := $(libext2_quota_c_includes)
52 LOCAL_CFLAGS := $(libext2_quota_cflags)
53 LOCAL_MODULE := libext2_quota-host
54 LOCAL_MODULE_TAGS := optional
55 LOCAL_SHARED_LIBRARIES := $(addsuffix -host, $(libext2_quota_shared_libraries))
56
57 include $(BUILD_HOST_SHARED_LIBRARY)
58
59 include $(CLEAR_VARS)
60
61 libext2_profile_src_files :=  \
62        prof_err.c \
63        profile.c
64
65 libext2_profile_shared_libraries := \
66        libext2_com_err
67
68 libext2_profile_system_shared_libraries := libc
69
70 libext2_profile_c_includes := external/e2fsprogs/lib
71
72 libext2_profile_cflags := -O2 -g -W -Wall
73
74 include $(CLEAR_VARS)
75
76 LOCAL_SRC_FILES := $(libext2_profile_src_files)
77 LOCAL_SYSTEM_SHARED_LIBRARIES := $(libext2_profile_system_shared_libraries)
78 LOCAL_SHARED_LIBRARIES := $(libext2_profile_shared_libraries)
79 LOCAL_C_INCLUDES := $(libext2_profile_c_includes)
80 LOCAL_CFLAGS := $(libext2_profile_cflags)
81 LOCAL_MODULE := libext2_profile
82 LOCAL_MODULE_TAGS := optional
83
84 include $(BUILD_SHARED_LIBRARY)
85
86 include $(CLEAR_VARS)
87
88 LOCAL_SRC_FILES := $(libext2_profile_src_files)
89 LOCAL_SHARED_LIBRARIES := $(addsuffix -host, $(libext2_profile_shared_libraries))
90 LOCAL_C_INCLUDES := $(libext2_profile_c_includes)
91 LOCAL_CFLAGS := $(libext2_profile_cflags)
92 LOCAL_MODULE := libext2_profile-host
93 LOCAL_MODULE_TAGS := optional
94
95 include $(BUILD_HOST_SHARED_LIBRARY)