1
0
mirror of https://github.com/rfivet/uemacs.git synced 2025-02-20 23:17:13 -05:00

Fetch ncursesw compilation flags and libs using ncurseswN-config.

This commit is contained in:
Renaud 2025-01-02 11:21:52 +08:00
parent d60640af0f
commit e4021d7780

View File

@ -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