checkasm: add float_dsp tests
[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 AVUTILOBJS                              += fixed_dsp.o
33 AVUTILOBJS                              += float_dsp.o
34
35 CHECKASMOBJS-$(CONFIG_AVUTIL)  += $(AVUTILOBJS)
36
37 CHECKASMOBJS-$(ARCH_AARCH64)            += aarch64/checkasm.o
38 CHECKASMOBJS-$(HAVE_ARMV5TE_EXTERNAL)   += arm/checkasm.o
39 CHECKASMOBJS-$(HAVE_YASM)               += x86/checkasm.o
40
41 CHECKASMOBJS += $(CHECKASMOBJS-yes) checkasm.o
42 CHECKASMOBJS := $(sort $(CHECKASMOBJS:%=tests/checkasm/%))
43
44 -include $(CHECKASMOBJS:.o=.d)
45
46 CHECKASMDIRS := $(sort $(dir $(CHECKASMOBJS)))
47 $(CHECKASMOBJS): | $(CHECKASMDIRS)
48 OBJDIRS += $(CHECKASMDIRS)
49
50 tests/checkasm/checkasm.o: CFLAGS += -Umain
51
52 CHECKASM := tests/checkasm/checkasm$(EXESUF)
53
54 $(CHECKASM): $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS)
55         $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS) $(EXTRALIBS)
56
57 checkasm: $(CHECKASM)
58
59 testclean:: checkasmclean
60
61 checkasmclean:
62         $(RM) $(CHECKASM) $(CLEANSUFFIXES:%=tests/checkasm/%) $(CLEANSUFFIXES:%=tests/checkasm/$(ARCH)/%)
63
64 .PHONY: checkasm