aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2024-03-08 10:04:16 +0200
committerMartin Storsjö <martin@martin.st>2024-03-10 23:45:51 +0200
commitcd420c2949413bcd93cd47c683dfe2349aea25ae (patch)
tree05d507e692b5ce27cb74294ad2001f8ff523c661
parente0e30e07a1755c4f7829f64d35dc07e399c02c6e (diff)
downloadffmpeg-cd420c2949413bcd93cd47c683dfe2349aea25ae.tar.gz
makefile: Clean up missed object files with "make clean"
In some builds, the following object files could be left behind after make clean: ./libavfilter/metal/utils.o ./libavfilter/metal/vf_yadif_videotoolbox.metallib.o ./libavcodec/x86/h26x/h2656dsp.o ./libavcodec/neon/mpegvideo.o ./ffbuild/bin2c_host.o Fixes: http://trac.ffmpeg.org/ticket/10895 Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r--ffbuild/common.mak2
-rw-r--r--libavcodec/neon/Makefile3
-rw-r--r--libavcodec/x86/vvc/Makefile2
-rw-r--r--libavfilter/Makefile1
4 files changed, 6 insertions, 2 deletions
diff --git a/ffbuild/common.mak b/ffbuild/common.mak
index ac54ac0681..87a3ffd2b0 100644
--- a/ffbuild/common.mak
+++ b/ffbuild/common.mak
@@ -140,7 +140,7 @@ else
endif
clean::
- $(RM) $(BIN2CEXE)
+ $(RM) $(BIN2CEXE) $(CLEANSUFFIXES:%=ffbuild/%)
%.c %.h %.pc %.ver %.version: TAG = GEN
diff --git a/libavcodec/neon/Makefile b/libavcodec/neon/Makefile
index 607f116a77..83c2f0051c 100644
--- a/libavcodec/neon/Makefile
+++ b/libavcodec/neon/Makefile
@@ -1 +1,4 @@
+clean::
+ $(RM) $(CLEANSUFFIXES:%=libavcodec/neon/%)
+
OBJS-$(CONFIG_MPEGVIDEO) += neon/mpegvideo.o
diff --git a/libavcodec/x86/vvc/Makefile b/libavcodec/x86/vvc/Makefile
index 82f281d1c7..d1623bd46a 100644
--- a/libavcodec/x86/vvc/Makefile
+++ b/libavcodec/x86/vvc/Makefile
@@ -1,5 +1,5 @@
clean::
- $(RM) $(CLEANSUFFIXES:%=libavcodec/x86/vvc/%)
+ $(RM) $(CLEANSUFFIXES:%=libavcodec/x86/vvc/%) $(CLEANSUFFIXES:%=libavcodec/x86/h26x/%)
OBJS-$(CONFIG_VVC_DECODER) += x86/vvc/vvcdsp_init.o \
x86/h26x/h2656dsp.o
diff --git a/libavfilter/Makefile b/libavfilter/Makefile
index f6c1d641d6..994d9773ba 100644
--- a/libavfilter/Makefile
+++ b/libavfilter/Makefile
@@ -666,6 +666,7 @@ TOOLS-$(CONFIG_LIBZMQ) += zmqsend
clean::
$(RM) $(CLEANSUFFIXES:%=libavfilter/dnn/%) $(CLEANSUFFIXES:%=libavfilter/opencl/%) \
+ $(CLEANSUFFIXES:%=libavfilter/metal/%) \
$(CLEANSUFFIXES:%=libavfilter/vulkan/%)
OPENCL = $(subst $(SRC_PATH)/,,$(wildcard $(SRC_PATH)/libavfilter/opencl/*.cl))