From: Bill Lash Date: Sat, 22 Jun 2019 04:41:32 +0000 (-0500) Subject: Clean up makefile for MACOS X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=3102cd10945bc46e51d161d5a34bfb2558bd572a;p=liskon_frotz.git Clean up makefile for MACOS --- 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 #