diff options
-rw-r--r-- | Makerules | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -399,7 +399,7 @@ endif +depfiles := $(strip $(sources:.c=.d) \ $(patsubst %.o,%.d,$(filter %.o,$(extra-objs:.so=.o))) \ - $(addsuffix .d,$(others) $(tests))) + $(addsuffix .d,$(others) $(tests) $(test-srcs))) +depfiles := $(addprefix $(objpfx),\ $(filter-out $(addsuffix .d,$(omit-deps)),\ $(+depfiles))) @@ -835,9 +835,10 @@ mostlyclean: common-mostlyclean # Remove the object files. common-mostlyclean: - -rm -f $(addprefix $(objpfx),$(tests) $(others) \ - $(addsuffix .o,$(tests) $(others)) \ - $(addsuffix .out,$(tests))) + -rm -f $(addprefix $(objpfx),$(tests) $(test-srcs) $(others) \ + $(addsuffix .o,$(tests) $(test-srcs) \ + $(others)) \ + $(addsuffix .out,$(tests) $(test-srcs))) -rm -f $(addprefix $(objpfx),$(extra-objs) $(install-lib)) -rm -f core $(common-objpfx)stub-$(subdir) $(rmobjs) |