From 2ae0e394a5db615f4382ed8010f586f80a7fb14a Mon Sep 17 00:00:00 2001 From: FarewellNehir Date: Sun, 8 Sep 2024 12:58:52 +0300 Subject: [PATCH] add make scripts --- make/buildcheck.mk | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 make/buildcheck.mk diff --git a/make/buildcheck.mk b/make/buildcheck.mk new file mode 100644 index 0000000..4036888 --- /dev/null +++ b/make/buildcheck.mk @@ -0,0 +1,9 @@ +HAS_NCURSES := $(shell pkg-config --exists ncurses && echo yes || echo no) +HAS_PKG_CONFIG := $(shell command -v pkg-config >/dev/null 2>&1 && echo yes || echo no) + +# Check for ncurses if pkg-config is available +ifeq ($(HAS_PKG_CONFIG),yes) + HAS_NCURSES := $(shell pkg-config --exists ncurses && echo yes || echo no) +else + HAS_NCURSES := no +endif