Thumbnail

rani/cscroll.git

Clone URL: https://git.buni.party/rani/cscroll.git

commit 02e51ca14370986825ea65ed3cf09ca1b01bfa14 Author: Raniconduh <clagv.randomgames@gmail.com> Date: Mon Jan 31 20:33:45 2022 +0000 added check for ncursesw -- compile woth wide char support by default diff --git a/Makefile b/Makefile index dd62d29..492902e 100644 --- a/Makefile +++ b/Makefile @@ -77 +715 @@ ICONS ?= 1    CC ?= cc  CFLAGS += -DICONS=$(ICONS) -Wall -Wextra -pedantic $(shell pkg-config --cflags ncurses) -LIBS += $(shell pkg-config --libs ncurses) -ltinfo -lm + +$(shell pkg-config --exists ncursesw) +ifeq ($(.SHELLSTATUS),0) + NCURSES := ncursesw +else + NCURSES := ncurses +endif + +LIBS += $(shell pkg-config --libs $(NCURSES)) -ltinfo -lm    PREFIX ?= /usr/local