Clean up makefile for MACOS
authorBill Lash <william.lash@gmail.com>
Sat, 22 Jun 2019 04:41:32 +0000 (23:41 -0500)
committerBill Lash <william.lash@gmail.com>
Sat, 22 Jun 2019 04:41:32 +0000 (23:41 -0500)
Makefile

index 2ff9fe6d47bd231909630825cfec4340169bc2d2..8de6d46c08be1a60bc1e8c5d6f87287a90b1b77b 100644 (file)
--- 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
 #