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