From b7b7e30b7bd0e68c559191b223ec120f892567cb Mon Sep 17 00:00:00 2001 From: hamiltonianflow Date: Wed, 5 Jul 2023 15:18:54 +0200 Subject: [PATCH] Added check for Termux to Makefile --- Makefile | 4 ++++ README | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1b19e81..91f42da 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,10 @@ ifeq ($(SYSTEM),$(filter $(SYSTEM),FreeBSD OpenBSD)) else ifeq ($(SYSTEM),Darwin) LIBS+= -liconv +else +ifeq ($(shell uname -o),Android) + LIBS+= -L/data/data/com.termux/files/usr/lib -liconv +endif endif endif diff --git a/README b/README index 1655dab..1d080f6 100644 --- a/README +++ b/README @@ -15,9 +15,9 @@ Building Just running "make" (or "gmake" on BSD systems) should build the cp437 binary. You'll need iconv, which is provided by glibc on Linux but is provided by the -libiconv port on FreeBSD. As yet I've not tested it on any operating systems -other than those two, although it is reputed to work on OS X and OpenBSD too - -feedback is welcome. +libiconv port on FreeBSD and on Termux. As yet I've not tested it on any +operating systems other than the above, although it is reputed to work on OS X +and OpenBSD too - feedback is welcome. You can move the binary wherever you like - I suggest $HOME/bin.