]> granicus.if.org Git - nethack/commitdiff
correct some conditional code in hints macOS.370
authornhmall <nhmall@nethack.org>
Wed, 15 Jun 2022 22:58:44 +0000 (18:58 -0400)
committernhmall <nhmall@nethack.org>
Wed, 15 Jun 2022 22:58:44 +0000 (18:58 -0400)
sys/unix/hints/macOS.370

index bc5583da4eaff5574e0a71d4db1d6dfa49d99d9b..4308fc315fb678b7540b03011826bcc9fa6df3f6 100755 (executable)
@@ -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