-
Notifications
You must be signed in to change notification settings - Fork 32
/
Android.mk
57 lines (49 loc) · 1.42 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
LOCAL_PATH:= $(call my-dir)
# ========================================================
# nano
# ========================================================
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
src/browser.c \
src/chars.c \
src/color.c \
src/cut.c \
src/files.c \
src/global.c \
src/help.c \
src/move.c \
src/nano.c \
src/prompt.c \
src/rcfile.c \
src/search.c \
src/text.c \
src/utils.c \
src/winio.c
LOCAL_C_INCLUDES += \
$(LOCAL_PATH) \
external/clearsilver \
external/clearsilver/util/regex \
external/libncurses/include
LOCAL_CFLAGS += \
-DHAVE_CONFIG_H \
-DLOCALEDIR=\"/data/locale\" \
-DSYSCONFDIR=\"/system/etc/nano\"
LOCAL_SHARED_LIBRARIES += \
libncurses
LOCAL_STATIC_LIBRARIES += \
libclearsilverregex
LOCAL_MODULE := nano
LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
include $(BUILD_EXECUTABLE)
# ========================================================
# nano configs
# ========================================================
etc_files := $(shell ls -1 $(LOCAL_PATH)/etc/)
copy_to := $(addprefix $(TARGET_OUT)/etc/$(LOCAL_MODULE)/,$(etc_files))
copy_from := $(addprefix $(LOCAL_PATH)/etc/,$(etc_files))
$(copy_to) : PRIVATE_MODULE := system_etcdir
$(copy_to) : $(TARGET_OUT)/etc/$(LOCAL_MODULE)/% : $(LOCAL_PATH)/etc/% | $(ACP)
$(transform-prebuilt-to-target)
ALL_PREBUILT += $(copy_to)
# ========================================================
include $(call all-makefiles-under,$(LOCAL_PATH))