forked from npat-efault/picocom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.mk
59 lines (38 loc) · 1.21 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
58
59
#
# 2017, Christopher N. Hesse <[email protected]>
#
LOCAL_PATH := $(call my-dir)
VERSION := 3.2a
TTY_Q_SZ := 0
HISTFILE := .picocom_history
##########################################################################
# linenoise
include $(CLEAR_VARS)
LOCAL_SRC_FILES := linenoise-1.0/linenoise.c
LOCAL_MODULE := linenoise
include $(BUILD_STATIC_LIBRARY)
##########################################################################
# picocom
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
picocom.c \
term.c \
fdio.c \
split.c \
termios2.c
LOCAL_CFLAGS += -DVERSION_STR=\"$(VERSION)\"
LOCAL_CFLAGS += -DTTY_Q_SZ=$(TTY_Q_SZ)
## Comment this out to disable high-baudrate support
LOCAL_CFLAGS += -DHIGH_BAUD
## Normally you should NOT enable both: UUCP-style and flock(2)
## locking.
## Comment this out to disable locking with flock
LOCAL_CFLAGS += -DUSE_FLOCK
## Comment these out to disable UUCP-style lockdirs
#UUCP_LOCK_DIR=/var/lock
#LOCAL_CFLAGS += -DUUCP_LOCK_DIR=\"$(UUCP_LOCK_DIR)\"
## Comment these out to disable "linenoise"-library support
LOCAL_CFLAGS += -DHISTFILE=\"$(HISTFILE)\" -DLINENOISE
LOCAL_STATIC_LIBRARIES += linenoise
LOCAL_MODULE := picocom
include $(BUILD_EXECUTABLE)