Skip to content

Commit

Permalink
Fetch ncursesw compilation flags and libs using ncurseswN-config.
Browse files Browse the repository at this point in the history
  • Loading branch information
rfivet committed Jan 2, 2025
1 parent d60640a commit e4021d7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Makefile -- µEMACS
# Copyright © 2013-2022 Renaud Fivet
# Copyright © 2013-2025 Renaud Fivet

# Make the build silent by default
V =
Expand All @@ -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
Expand Down

0 comments on commit e4021d7

Please sign in to comment.