From c5ad4956c7ff5e7458c23b37d9fea9a3084602a2 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 19 Jan 2015 22:49:01 +0100 Subject: [PATCH] build: Use curses_cppflags also for compiling gui.c. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The make pattern rule gui%.o does not match gui.o because there must be at least one character to match the ‘%’. Consequently, the curses cppflags are ignored for compiling gui.c. Fix this by explicitly adding gui.o to the list of object files for which $(curses_cppflags) must be added to CPPFLAGS. --- Makefile.real | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.real b/Makefile.real index fb99679a..217d1a3c 100644 --- a/Makefile.real +++ b/Makefile.real @@ -188,7 +188,8 @@ error2.h: $(hostbin_dir)/error2 config.h $(object_dir)/%.o: %.c | $(object_dir) $(object_dir)/opus%.o $(dep_dir)/opus%.d: CPPFLAGS += $(opus_cppflags) -$(object_dir)/gui%.o $(dep_dir)/gui%.d: CPPFLAGS += $(curses_cppflags) +$(object_dir)/gui.o $(object_dir)/gui%.o $(dep_dir)/gui%.d \ +: CPPFLAGS += $(curses_cppflags) $(object_dir)/spx%.o $(dep_dir)/spx%.d: CPPFLAGS += $(speex_cppflags) $(object_dir)/flac%.o $(dep_dir)/flac%.d: CPPFLAGS += $(flac_cppflags) -- 2.39.2