Skip to content
Snippets Groups Projects
Commit adc39350 authored by Diego Biurrun's avatar Diego Biurrun
Browse files

Generate the list of files to clean in subdirectories in common.mak.

This way, it can be used from all directories.

Originally committed as revision 12800 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent d4210e2a
No related branches found
No related tags found
No related merge requests found
...@@ -76,7 +76,8 @@ $(SUBDIR)%-test$(EXESUF): $(SUBDIR)%.c $(LIBNAME) ...@@ -76,7 +76,8 @@ $(SUBDIR)%-test$(EXESUF): $(SUBDIR)%.c $(LIBNAME)
$(CC) $(CFLAGS) $(FFLDFLAGS) -DTEST -o $$@ $$^ $(FFEXTRALIBS) $(CC) $(CFLAGS) $(FFLDFLAGS) -DTEST -o $$@ $$^ $(FFEXTRALIBS)
clean:: clean::
rm -f $(TESTS) $(addprefix $(SUBDIR),$(CLEANFILES) $(CLEANSUFFIXES) $(LIBSUFFIXES)) rm -f $(TESTS) $(addprefix $(SUBDIR),$(CLEANFILES) $(CLEANSUFFIXES) $(LIBSUFFIXES)) \
$(addprefix $(SUBDIR), $(foreach suffix,$(CLEANSUFFIXES),$(addsuffix /$(suffix),$(DIRS))))
distclean:: clean distclean:: clean
rm -f $(DEPS) rm -f $(DEPS)
......
...@@ -467,11 +467,9 @@ ASM_OBJS-$(ARCH_BFIN) += bfin/pixels_bfin.o \ ...@@ -467,11 +467,9 @@ ASM_OBJS-$(ARCH_BFIN) += bfin/pixels_bfin.o \
TESTS = $(addsuffix -test$(EXESUF), cabac dct eval fft h264 imgresample rangecoder snow) TESTS = $(addsuffix -test$(EXESUF), cabac dct eval fft h264 imgresample rangecoder snow)
TESTS-$(ARCH_X86) += cpuid-test$(EXESUF) motion-test$(EXESUF) TESTS-$(ARCH_X86) += cpuid-test$(EXESUF) motion-test$(EXESUF)
CLEANFILES = apiexample$(EXESUF)
DIRS = alpha armv4l bfin i386 mlib ppc ps2 sh4 sparc DIRS = alpha armv4l bfin i386 mlib ppc ps2 sh4 sparc
CLEANFILES = $(addsuffix /*.o,$(DIRS)) $(addsuffix /*.ho,$(DIRS)) \
$(addsuffix /*~,$(DIRS)) apiexample$(EXESUF)
include $(SUBDIR)../subdir.mak include $(SUBDIR)../subdir.mak
$(SUBDIR)cpuid-test$(EXESUF): $(SUBDIR)i386/cputest.c $(SUBDIR)cpuid-test$(EXESUF): $(SUBDIR)i386/cputest.c
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment