From: Andre Noll Date: Sat, 12 Jul 2014 09:50:02 +0000 (+0200) Subject: build: Do not create .d files for gengetopt source files. X-Git-Tag: v0.5.4~46^2~5 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=c880740b91c17c771ddee7b3c91057f6b65946d7;p=paraslash.git build: Do not create .d files for gengetopt source files. The generated *.cmdline* files do not depend on headers of the source tree, so it is pointless to let the compiler create dependencies for them. This speeds up make dep by 25%. --- diff --git a/Makefile.real b/Makefile.real index f391d26e..71f06679 100644 --- a/Makefile.real +++ b/Makefile.real @@ -32,7 +32,7 @@ test_dir := t all_objs := $(sort $(recv_objs) $(filter_objs) $(client_objs) $(gui_objs) \ $(audiod_objs) $(audioc_objs) $(fade_objs) $(server_objs) \ $(write_objs) $(afh_objs) $(play_objs)) -deps := $(addprefix $(dep_dir)/, $(all_objs:.o=.d)) +deps := $(addprefix $(dep_dir)/, $(filter-out %.cmdline.d, $(all_objs:.o=.d))) m4_deps := $(addprefix $(m4depdir)/, $(addsuffix .m4d, $(executables))) # now prefix all objects with object dir @@ -244,11 +244,6 @@ $(object_dir)/%.cmdline.o: $(cmdline_dir)/%.cmdline.c $(cmdline_dir)/%.cmdline.h @[ -z "$(Q)" ] || echo 'CC $<' $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $< -$(dep_dir)/%.cmdline.d: $(cmdline_dir)/%.cmdline.c error2.h | $(dep_dir) $(cmdlist_dir) - @[ -z "$(Q)" ] || echo 'DEP $<' - $(Q) ./depend.sh $(dep_dir) $(object_dir) $(cmdline_dir) \ - $(cmdlist_dir) $(CPPFLAGS) $< > $@ - $(dep_dir)/%.d: %.c error2.h | $(dep_dir) $(cmdlist_dir) @[ -z "$(Q)" ] || echo 'DEP $<' $(Q) ./depend.sh $(dep_dir) $(object_dir) $(cmdline_dir) \