Thumbnail

rani/cscroll.git

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

commit 3741709e704337547d4eb88e2a5e864567cdd23b Author: Raniconduh <clagv.randomgames@gmail.com> Date: Sat Aug 27 21:54:43 2022 +0000 remove -ltinfo flag for darwin diff --git a/Makefile b/Makefile index 492902e..641ef5e 100644 --- a/Makefile +++ b/Makefile @@ -86 +87 @@ ICONS ?= 1  CC ?= cc  CFLAGS += -DICONS=$(ICONS) -Wall -Wextra -pedantic $(shell pkg-config --cflags ncurses)   +UNAME := $(shell uname)  $(shell pkg-config --exists ncursesw)  ifeq ($(.SHELLSTATUS),0) NCURSES := ncursesw @@ -157 +1610 @@ else NCURSES := ncurses  endif   -LIBS += $(shell pkg-config --libs $(NCURSES)) -ltinfo -lm +LIBS += $(shell pkg-config --libs $(NCURSES)) -lm +ifneq ($(UNAME), Darwin) + LIBS += -ltinfo +endif    PREFIX ?= /usr/local