9f62844781685c555c7f4075c7946739bbf4c4ac
[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_H264PRED) += h264pred.o
7 AVCODECOBJS-$(CONFIG_H264QPEL) += h264qpel.o
8 AVCODECOBJS-$(CONFIG_VIDEODSP) += videodsp.o
9
10 # decoders/encoders
11 AVCODECOBJS-$(CONFIG_ALAC_DECODER) += alacdsp.o
12 AVCODECOBJS-$(CONFIG_DCA_DECODER) += synth_filter.o
13 AVCODECOBJS-$(CONFIG_JPEG2000_DECODER) += jpeg2000dsp.o
14 AVCODECOBJS-$(CONFIG_PIXBLOCKDSP) += pixblockdsp.o
15 AVCODECOBJS-$(CONFIG_V210_ENCODER) += v210enc.o
16 AVCODECOBJS-$(CONFIG_VP9_DECODER) += vp9dsp.o
17
18 CHECKASMOBJS-$(CONFIG_AVCODEC) += $(AVCODECOBJS-yes)
19
20 # libavfilter tests
21 AVFILTEROBJS-$(CONFIG_BLEND_FILTER) += vf_blend.o
22 AVFILTEROBJS-$(CONFIG_COLORSPACE_FILTER) += vf_colorspace.o
23
24 CHECKASMOBJS-$(CONFIG_AVFILTER) += $(AVFILTEROBJS-yes)
25
26
27 -include $(SRC_PATH)/tests/checkasm/$(ARCH)/Makefile
28
29 CHECKASMOBJS += $(CHECKASMOBJS-yes) checkasm.o
30 CHECKASMOBJS := $(sort $(CHECKASMOBJS:%=tests/checkasm/%))
31
32 -include $(CHECKASMOBJS:.o=.d)
33
34 CHECKASMDIRS := $(sort $(dir $(CHECKASMOBJS)))
35 $(CHECKASMOBJS): | $(CHECKASMDIRS)
36 OBJDIRS += $(CHECKASMDIRS)
37
38 tests/checkasm/checkasm.o: CFLAGS += -Umain
39
40 CHECKASM := tests/checkasm/checkasm$(EXESUF)
41
42 $(CHECKASM): $(EXEOBJS) $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS)
43         $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS) $(EXTRALIBS)
44
45 checkasm: $(CHECKASM)
46
47 testclean:: checkasmclean
48
49 checkasmclean:
50         $(RM) $(CHECKASM) $(CLEANSUFFIXES:%=tests/checkasm/%) $(CLEANSUFFIXES:%=tests/checkasm/$(ARCH)/%)
51
52 .PHONY: checkasm