Merge commit 'a465ed5707f5cbc9713d5e9629d424cd2d46e038' into release/0.10
[ffmpeg.git] / common.mak
index b7786c5..c21bff3 100644 (file)
@@ -117,4 +117,13 @@ CLEANSUFFIXES     = *.d *.o *~ *.ho *.map *.ver *.gcno *.gcda
 DISTCLEANSUFFIXES = *.pc
 LIBSUFFIXES       = *.a *.lib *.so *.so.* *.dylib *.dll *.def *.dll.a *.exp
 
+define RULES
+clean::
+       $(RM) $(OBJS) $(OBJS:.o=.d)
+       $(RM) $(HOSTPROGS)
+       $(RM) $(TOOLS)
+endef
+
+$(eval $(RULES))
+
 -include $(wildcard $(OBJS:.o=.d) $(TESTOBJS:.o=.d))