From e4021d7780033cfce20d0bd415358503ab2a75b2 Mon Sep 17 00:00:00 2001 From: Renaud Fivet Date: Thu, 2 Jan 2025 11:21:52 +0800 Subject: [PATCH] Fetch ncursesw compilation flags and libs using ncurseswN-config. --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 5ea442c..50a418b 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # Makefile -- µEMACS -# Copyright © 2013-2022 Renaud Fivet +# Copyright © 2013-2025 Renaud Fivet # Make the build silent by default V = @@ -15,12 +15,16 @@ export E Q PROGRAM=ue +NCWCFG=ncursesw6-config +NCWFLGS !=$(NCWCFG) --cflags +NCWLIBS !=$(NCWCFG) --libs + CC=cc WARNINGS=-pedantic -Wall -Wextra -Wstrict-prototypes -Wno-unused-parameter CFLAGS=-O2 $(WARNINGS) LDFLAGS=-s -LIBS=-lcurses -DEFINES=-DPROGRAM=$(PROGRAM) -D_GNU_SOURCE # -DNDEBUG +LIBS=$(NCWLIBS) +DEFINES=-DPROGRAM=$(PROGRAM) $(NCWFLGS) # -DNDEBUG BINDIR=/usr/bin LIBDIR=/usr/lib