summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWelpyes <helloilikeoppai@protonmail.com>2025-09-25 12:29:36 +0800
committerWelpyes <helloilikeoppai@protonmail.com>2025-09-25 12:29:36 +0800
commitc9bed3541401d78e5e0a3673a138f81ba66023fc (patch)
tree94eb5885469c48631e039661e8a8007fb678786b
parent6c8f46da2c3edb191de1850b43fdd0a61ac79240 (diff)
yeah
-rw-r--r--Makefile7
-rw-r--r--README.md8
2 files changed, 14 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c283518..b80f809 100644
--- a/Makefile
+++ b/Makefile
@@ -34,12 +34,17 @@ LDFLAGS ?= -Wl,-O1 -pie
# libraries
LDLIBS ?= -lX11 -lXinerama -lXcursor
-# prefer pkg-confgi
+# prefer pkg-config
ifneq ($(shell $(PKG_CONFIG) --exists x11 xinerama xcursor && echo yes),)
CPPFLAGS += $(shell $(PKG_CONFIG) --cflags x11 xinerama xcursor)
LDLIBS := $(shell $(PKG_CONFIG) --libs x11 xinerama xcursor)
endif
+# Termux detection for libandroid-wordexp
+ifneq ($(shell if [ "$$PREFIX" = "/data/data/com.termux/files/usr" ]; then echo yes; fi),)
+LDLIBS += -landroid-wordexp
+endif
+
.PHONY: all clean install uninstall clangd
.SUFFIXES:
diff --git a/README.md b/README.md
index b1f2299..4be51f7 100644
--- a/README.md
+++ b/README.md
@@ -297,6 +297,14 @@ sudo pkg update
sudo pkg install gcc gmake libX11 libXinerama</code></pre>
</details>
+<details>
+<summary>Termux</summary>
+<pre><code>
+pkg update
+pkg install xcb-util-keysyms xorgproto libxcursor libx11 libxinerama libandroid-wordexp
+</code></pre>
+</details>
+
---
## Build & Install