From: nhmall Date: Wed, 15 Jun 2022 22:58:44 +0000 (-0400) Subject: correct some conditional code in hints macOS.370 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f2033562d1ffbc84e88352482f3e6f4710c508a;p=nethack correct some conditional code in hints macOS.370 --- diff --git a/sys/unix/hints/macOS.370 b/sys/unix/hints/macOS.370 index bc5583da4..4308fc315 100755 --- a/sys/unix/hints/macOS.370 +++ b/sys/unix/hints/macOS.370 @@ -134,11 +134,14 @@ NHCFLAGS+=-DNOMAIL #NHCFLAGS+=-DLIVELOG ifdef MAKEFILE_SRC -ifeq "$(USE_CURSESLIB)" "1" # default CURSESLIB = -lncurses ifeq "$(CURSES_UNICODE)" "sys" NHCFLAGS+=-DCURSES_UNICODE +WINLIB += $(CURSESLIB) +else +ifeq "$(USE_CURSESLIB)" "1" +NHCFLAGS+=-DCURSES_UNICODE else # If CURSES_UNICODE is defined, we need ncursesw. # Without CURSES_UNICODE the following simpler setting works. @@ -158,11 +161,7 @@ else $(info Attention: CURSES_UNICODE is not being defined without ncursesw) endif #HAVE_NCURSESW endif #not CURSES_UNICODE=0 -endif #not CURSES_UNICODE=sys endif #USE_CURSESLIB -endif #MAKEFILE_SRC - -ifdef MAKEFILE_SRC ifneq "$(CURSES_UNICODE)" "0" ifdef CURSESLIB PKGCFLAGS= @@ -192,7 +191,10 @@ PKGCFLAGS += $(HOMEBREW_CFLAGS) $(MACPORTS_CFLAGS) endif #CURSESLIB else # CURSES_UNICODE WINLIB += $(CURSESLIB) +$(info WINLIB=$(WINLIB)) +$(info CURSESLIB=$(CURSESLIB)) endif #not CURSES_UNICODE=0 +endif #not CURSES_UNIODE=sys endif #MAKEFILE_SRC CFLAGS+= $(PKGCFLAGS) $(WINCFLAGS) #WINCFLAGS set from multiw-2.370