From 4da500e5ec5268dfdc2aafbcd3ee7561063cf12f Mon Sep 17 00:00:00 2001 From: "(Tim) Efthimis Kritikos" Date: Tue, 20 Feb 2024 15:36:12 +0000 Subject: [PATCH] Build system: Started using pkg-config for finding the link flags and cflags for ncursesw --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a82fecb..09a1d4a 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ else Q = endif -CFLAGS=-O2 +CFLAGS::=-O2 $(shell pkg-config ncursesw --cflags) ifeq "${PROFILING}" "1" CFLAGS += -pg @@ -39,7 +39,7 @@ all:${MAIN_ROM} first: ${OBJECT_FILES} ${QUIET_LINK} - ${Q}gcc -ggdb $^ -lncursesw -ltinfow -lm -o $@ ${LDFLAGS} + ${Q}gcc -ggdb $^ $(shell pkg-config --libs ncursesw) -lm -o $@ ${LDFLAGS} gprof: gprof first -b|less