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