aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-09-15 18:33:56 +0000
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2012-09-15 19:44:05 -0400
commit1c9d54b468e4b026dab2cf86d7993da06d00eda1 (patch)
tree6e8d261e292def17b63f25255afba1bfd0accd41
parent7689eea49ae70591fa9cf26b09b315821d25b9bf (diff)
downloadffmpeg-1c9d54b468e4b026dab2cf86d7993da06d00eda1.tar.gz
build: Properly remove object files while cleaning
Previously, object files in, for example, compat/ were left after a clean or distclean was run. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
-rw-r--r--common.mak3
1 files changed, 3 insertions, 0 deletions
diff --git a/common.mak b/common.mak
index d866ef1eef..dd9f4cbbc5 100644
--- a/common.mak
+++ b/common.mak
@@ -52,4 +52,7 @@ CLEANSUFFIXES = *.d *.o *~ *.h.c *.map *.ver
DISTCLEANSUFFIXES = *.pc
LIBSUFFIXES = *.a *.lib *.so *.so.* *.dylib *.dll *.def *.dll.a
+clean::
+ $(RM) $(OBJS) $(OBJS:.o=.d)
+
-include $(wildcard $(OBJS:.o=.d) $(HOSTOBJS:.o=.d) $(TESTOBJS:.o=.d) $(HOBJS:.o=.d))