]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
build: Use curses_cppflags also for compiling gui.c.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 19 Jan 2015 21:49:01 +0000 (22:49 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 20 Jan 2015 08:38:37 +0000 (09:38 +0100)
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

index fb99679a0b1da2b62994be493b2d67f75a942d28..217d1a3ce8fa1f922343048f058a453f5fddd56f 100644 (file)
@@ -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)