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