Improve cpmtools Makefile, Issue #505

See issue #505.  This change should improve build compatibility if there are multiple variants of ncurses installed.

Thanks and credit to @mabartibin.

Co-Authored-By: mabartibin <16798058+mabartibin@users.noreply.github.com>
This commit is contained in:
Wayne Warthen
2025-03-21 18:50:49 -07:00
parent b28e308bfd
commit 6f5aa06fb3

View File

@@ -15,8 +15,9 @@ DEFFORMAT=wbw_fd144
# Locate the ncurses libs or try a guess if pkg-config does not exist
NCURSESLIBS=$(shell if env pkg-config --libs ncurses ; then : ; else echo -lncurses ; fi)
NCURSESCFLAGS=$(shell if env pkg-config --cflags ncurses ; then : ; fi)
CPPFLAGS = -DDISKDEFS=\"$(DISKDEFS)\" -DFORMAT=\"$(DEFFORMAT)\"
CPPFLAGS = -DDISKDEFS=\"$(DISKDEFS)\" -DFORMAT=\"$(DEFFORMAT)\" $(NCURSESCFLAGS)
DEVICEOBJ = device_posix.o