1
0
mirror of https://github.com/UzixLS/picocom.git synced 2025-07-19 07:21:18 +03:00

Merge pull request #66 from raymanfx/master

Initial Android makefile
This commit is contained in:
Nick Patavalis
2017-12-12 20:47:59 +02:00
committed by GitHub

59
Android.mk Normal file
View File

@ -0,0 +1,59 @@
#
# 2017, Christopher N. Hesse <christopher.hesse@delphi.com>
#
LOCAL_PATH := $(call my-dir)
VERSION := 2.3a
TTY_Q_SZ := 32768
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)