Makefile | 6 +++++- Makefile.generic | 6 +++++- diff --git a/Makefile b/Makefile index 54088a7936eb369ea2eeddfab456a9e48cf64643..c07e9501cf2569407a300a855d57ee918b954482 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,11 @@ PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man CFLAGS += -O3 -march=native -Wall -Wextra -Wno-unused-parameter -LDLIBS = -lncursesw +ifeq ($(shell uname), Darwin) + LDLIBS = -lncurses +else + LDLIBS = -lncursesw +endif DISTFILES = nnn.c config.def.h nnn.1 Makefile README.md LICENSE LOCALCONFIG = config.h diff --git a/Makefile.generic b/Makefile.generic index 488675a278f951cb658326d3fc176d25b78d56b7..f96cecfc5191c9c78ee42994b606e0b14e1e6524 100644 --- a/Makefile.generic +++ b/Makefile.generic @@ -4,7 +4,11 @@ PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man CFLAGS += -O2 -Wall -Wextra -Wno-unused-parameter -LDLIBS = -lncursesw +ifeq ($(shell uname), Darwin) + LDLIBS = -lncurses +else + LDLIBS = -lncursesw +endif DISTFILES = nnn.c config.def.h nnn.1 Makefile README.md LICENSE LOCALCONFIG = config.h