78626339976b5bcd8a106c4998b2dec225a589c7
[ffmpeg.git] / tests / checkasm / Makefile
1 # libavcodec tests
2 # subsystems
3 AVCODECOBJS-$(CONFIG_BLOCKDSP)          += blockdsp.o
4 AVCODECOBJS-$(CONFIG_BSWAPDSP)          += bswapdsp.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_VP8DSP)            += vp8dsp.o
10
11 # decoders/encoders
12 AVCODECOBJS-$(CONFIG_DCA_DECODER)       += dcadsp.o synth_filter.o
13 AVCODECOBJS-$(CONFIG_HEVC_DECODER)      += hevc_mc.o hevc_idct.o
14 AVCODECOBJS-$(CONFIG_V210_ENCODER)      += v210enc.o
15 AVCODECOBJS-$(CONFIG_VP9_DECODER)       += vp9dsp.o
16
17 CHECKASMOBJS-$(CONFIG_AVCODEC)          += $(AVCODECOBJS-yes)
18
19
20 -include $(SRC_PATH)/tests/checkasm/$(ARCH)/Makefile
21
22 CHECKASMOBJS += $(CHECKASMOBJS-yes) checkasm.o
23 CHECKASMOBJS := $(sort $(CHECKASMOBJS:%=tests/checkasm/%))
24
25 -include $(CHECKASMOBJS:.o=.d)
26
27 CHECKASMDIRS := $(sort $(dir $(CHECKASMOBJS)))
28 $(CHECKASMOBJS): | $(CHECKASMDIRS)
29 OBJDIRS += $(CHECKASMDIRS)
30
31 CHECKASM := tests/checkasm/checkasm$(EXESUF)
32
33 $(CHECKASM): $(EXEOBJS) $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS)
34         $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS) $(EXTRALIBS)
35
36 checkasm: $(CHECKASM)
37
38 clean:: checkasmclean
39
40 checkasmclean:
41         $(RM) $(CHECKASM) $(CLEANSUFFIXES:%=tests/checkasm/%) $(CLEANSUFFIXES:%=tests/checkasm/$(ARCH)/%)
42
43 .PHONY: checkasm