build: Fine-grained link-time dependency settings
[libav.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_FMTCONVERT) += fmtconvert.o
7 AVCODECOBJS-$(CONFIG_HUFFYUVDSP) += huffyuvdsp.o
8 AVCODECOBJS-$(CONFIG_H264DSP) += h264dsp.o
9 AVCODECOBJS-$(CONFIG_H264PRED) += h264pred.o
10 AVCODECOBJS-$(CONFIG_H264QPEL) += h264qpel.o
11 AVCODECOBJS-$(CONFIG_VP8DSP) += vp8dsp.o
12
13 # decoders/encoders
14 AVCODECOBJS-$(CONFIG_DCA_DECODER) += dcadsp.o synth_filter.o
15 AVCODECOBJS-$(CONFIG_HEVC_DECODER) += hevc_add_res.o hevc_idct.o hevc_mc.o
16 AVCODECOBJS-$(CONFIG_V210_ENCODER) += v210enc.o
17 AVCODECOBJS-$(CONFIG_VP9_DECODER) += vp9dsp.o
18
19 CHECKASMOBJS-$(CONFIG_AVCODEC) += $(AVCODECOBJS-yes)
20
21
22 CHECKASMOBJS-$(ARCH_AARCH64) += aarch64/checkasm.o
23 CHECKASMOBJS-$(HAVE_ARMV5TE_EXTERNAL) += arm/checkasm.o
24 CHECKASMOBJS-$(HAVE_YASM) += x86/checkasm.o
25
26 CHECKASMOBJS += $(CHECKASMOBJS-yes) checkasm.o
27 CHECKASMOBJS := $(sort $(CHECKASMOBJS:%=tests/checkasm/%))
28
29 -include $(CHECKASMOBJS:.o=.d)
30
31 CHECKASMDIRS := $(sort $(dir $(CHECKASMOBJS)))
32 $(CHECKASMOBJS): | $(CHECKASMDIRS)
33 OBJDIRS += $(CHECKASMDIRS)
34
35 CHECKASM := tests/checkasm/checkasm$(EXESUF)
36
37 $(CHECKASM): $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS)
38 $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS) $(EXTRALIBS-avcodec) $(EXTRALIBS-avutil) $(EXTRALIBS)
39
40 checkasm: $(CHECKASM)
41
42 clean:: checkasmclean
43
44 checkasmclean:
45 $(RM) $(CHECKASM) $(CLEANSUFFIXES:%=tests/checkasm/%) $(CLEANSUFFIXES:%=tests/checkasm/$(ARCH)/%)
46
47 .PHONY: checkasm