From: Andre Noll Date: Mon, 19 Jan 2015 21:49:01 +0000 (+0100) Subject: build: Use curses_cppflags also for compiling gui.c. X-Git-Tag: v0.5.4~5 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=c5ad4956c7ff5e7458c23b37d9fea9a3084602a2;p=paraslash.git build: Use curses_cppflags also for compiling gui.c. 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. --- 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)