Merge commit '3794062ab1a13442b06f6d76c54dce51ffa54697'
[ffmpeg.git] / tests / checkasm / Makefile
1 # libavcodec tests
2 # subsystems
3 AVCODECOBJS-$(CONFIG_AUDIODSP)          += audiodsp.o
4 AVCODECOBJS-$(CONFIG_BLOCKDSP)          += blockdsp.o
5 AVCODECOBJS-$(CONFIG_BSWAPDSP)          += bswapdsp.o
6 AVCODECOBJS-$(CONFIG_FLACDSP)           += flacdsp.o
7 AVCODECOBJS-$(CONFIG_FMTCONVERT)        += fmtconvert.o
8 AVCODECOBJS-$(CONFIG_H264DSP)           += h264dsp.o
9 AVCODECOBJS-$(CONFIG_H264PRED)          += h264pred.o
10 AVCODECOBJS-$(CONFIG_H264QPEL)          += h264qpel.o
11 AVCODECOBJS-$(CONFIG_LLVIDDSP)          += llviddsp.o
12 AVCODECOBJS-$(CONFIG_VP8DSP)            += vp8dsp.o
13 AVCODECOBJS-$(CONFIG_VIDEODSP)          += videodsp.o
14
15 # decoders/encoders
16 AVCODECOBJS-$(CONFIG_ALAC_DECODER)      += alacdsp.o
17 AVCODECOBJS-$(CONFIG_DCA_DECODER)       += synth_filter.o
18 AVCODECOBJS-$(CONFIG_JPEG2000_DECODER)  += jpeg2000dsp.o
19 AVCODECOBJS-$(CONFIG_PIXBLOCKDSP)       += pixblockdsp.o
20 AVCODECOBJS-$(CONFIG_HEVC_DECODER)      += hevc_add_res.o hevc_idct.o
21 AVCODECOBJS-$(CONFIG_V210_ENCODER)      += v210enc.o
22 AVCODECOBJS-$(CONFIG_VP9_DECODER)       += vp9dsp.o
23
24 CHECKASMOBJS-$(CONFIG_AVCODEC)          += $(AVCODECOBJS-yes)
25
26 # libavfilter tests
27 AVFILTEROBJS-$(CONFIG_BLEND_FILTER) += vf_blend.o
28 AVFILTEROBJS-$(CONFIG_COLORSPACE_FILTER) += vf_colorspace.o
29
30 CHECKASMOBJS-$(CONFIG_AVFILTER) += $(AVFILTEROBJS-yes)
31
32
33 CHECKASMOBJS-$(ARCH_AARCH64)            += aarch64/checkasm.o
34 CHECKASMOBJS-$(HAVE_ARMV5TE_EXTERNAL)   += arm/checkasm.o
35 CHECKASMOBJS-$(HAVE_YASM)               += x86/checkasm.o
36
37 CHECKASMOBJS += $(CHECKASMOBJS-yes) checkasm.o
38 CHECKASMOBJS := $(sort $(CHECKASMOBJS:%=tests/checkasm/%))
39
40 -include $(CHECKASMOBJS:.o=.d)
41
42 CHECKASMDIRS := $(sort $(dir $(CHECKASMOBJS)))
43 $(CHECKASMOBJS): | $(CHECKASMDIRS)
44 OBJDIRS += $(CHECKASMDIRS)
45
46 tests/checkasm/checkasm.o: CFLAGS += -Umain
47
48 CHECKASM := tests/checkasm/checkasm$(EXESUF)
49
50 $(CHECKASM): $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS)
51         $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS) $(EXTRALIBS)
52
53 checkasm: $(CHECKASM)
54
55 testclean:: checkasmclean
56
57 checkasmclean:
58         $(RM) $(CHECKASM) $(CLEANSUFFIXES:%=tests/checkasm/%) $(CLEANSUFFIXES:%=tests/checkasm/$(ARCH)/%)
59
60 .PHONY: checkasm