From 1c9d54b468e4b026dab2cf86d7993da06d00eda1 Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Sat, 15 Sep 2012 18:33:56 +0000 Subject: [PATCH] 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 --- common.mak | 3 +++ 1 file changed, 3 insertions(+) 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))