From 3102cd10945bc46e51d161d5a34bfb2558bd572a Mon Sep 17 00:00:00 2001 From: Bill Lash Date: Fri, 21 Jun 2019 23:41:32 -0500 Subject: [PATCH] Clean up makefile for MACOS --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 2ff9fe6..8de6d46 100644 --- a/Makefile +++ b/Makefile @@ -73,6 +73,13 @@ COLOR ?= yes #CURSES ?= ncurses CURSES ?= ncursesw +# On MACOS, curses is actually ncurses, but to get wide char support +# you need to define _XOPEN_SOURCE_EXTENDED +ifdef MACOS + CURSES = curses + CFLAGS += -D_XOPEN_SOURCE_EXTENDED +endif + # Uncomment this if you want to disable the compilation of Blorb support. #NO_BLORB = yes @@ -140,10 +147,6 @@ endif BUILD_DATE = $(shell date "+%Y-%m-%d %H:%M:%S %z") export CFLAGS -ifdef MACOS - CFLAGS += -I/usr/local/opt/freetype/include/freetype2 - CURSES = curses -endif # Compile time options handling # -- 2.34.1