blob: 28882ac51bc49170d5f99bf31ddfc4373567a396 [file] [log] [blame]
Dan Pasanenf157ca82014-10-02 14:08:59 -05001LOCAL_PATH := $(call my-dir)
2
3# ========================================================
4# libhistory.a
5# ========================================================
6include $(CLEAR_VARS)
7
8LOCAL_SRC_FILES:= \
9 history.c \
10 histexpand.c \
11 histfile.c \
12 histsearch.c \
13 shell.c \
14 savestring.c \
15 mbutil.c \
16 xmalloc.c
17
18LOCAL_C_INCLUDES += \
19 $(LOCAL_PATH)/../.. \
20 $(LOCAL_PATH)/../../include \
21 $(LOCAL_PATH)/../../lib
22
23LOCAL_CFLAGS += \
24 -DHAVE_CONFIG_H
25
26LOCAL_CFLAGS += \
27 -Wno-incompatible-pointer-types-discards-qualifiers \
28 -Wno-missing-braces \
29 -Wno-parentheses \
30 -Wno-sometimes-uninitialized \
31 -Wno-sign-compare \
32 -Wno-unused-function \
33 -Wno-unused-parameter \
34 -Wno-unused-variable \
35 -Wno-user-defined-warnings
36
37LOCAL_MODULE := libhistory
38
39LOCAL_MODULE_TAGS := optional
40
41include $(BUILD_STATIC_LIBRARY)
42
43# ========================================================
44# libreadline.a
45# ========================================================
46include $(CLEAR_VARS)
47
48LOCAL_SRC_FILES:= \
49 readline.c \
50 vi_mode.c \
51 funmap.c \
52 keymaps.c \
53 parens.c \
54 search.c \
55 rltty.c \
56 colors.c \
57 parse-colors.c \
58 complete.c \
59 bind.c \
60 isearch.c \
61 display.c \
62 signals.c \
63 util.c \
64 kill.c \
65 undo.c \
66 macro.c \
67 input.c \
68 callback.c \
69 terminal.c \
70 text.c \
71 nls.c \
72 misc.c \
73 history.c \
74 histexpand.c \
75 histfile.c \
76 histsearch.c \
77 shell.c \
78 savestring.c \
79 mbutil.c \
80 tilde.c \
81 xmalloc.c \
82 compat.c
83
84LOCAL_C_INCLUDES += \
85 $(LOCAL_PATH)/../.. \
86 $(LOCAL_PATH)/../../include \
87 $(LOCAL_PATH)/../../lib
88
89LOCAL_CFLAGS += \
90 -DHAVE_CONFIG_H
91
92LOCAL_CFLAGS += \
93 -Wno-incompatible-pointer-types-discards-qualifiers \
94 -Wno-missing-braces \
95 -Wno-parentheses \
96 -Wno-sometimes-uninitialized \
97 -Wno-sign-compare \
98 -Wno-uninitialized \
99 -Wno-unused-function \
100 -Wno-unused-label \
101 -Wno-unused-parameter \
102 -Wno-unused-variable \
103 -Wno-user-defined-warnings
104
105LOCAL_MODULE := libreadline
106
107LOCAL_MODULE_TAGS := optional
108
109include $(BUILD_STATIC_LIBRARY)
110
111# ========================================================
112include $(call all-makefiles-under,$(LOCAL_PATH))