build: Fine-grained link-time dependency settings
[libav.git] / tests / checkasm / Makefile
CommitLineData
8bc67ec2 1# libavcodec tests
01621202 2# subsystems
e9ef6171 3AVCODECOBJS-$(CONFIG_AUDIODSP) += audiodsp.o
2eb97af6 4AVCODECOBJS-$(CONFIG_BLOCKDSP) += blockdsp.o
01621202
DB
5AVCODECOBJS-$(CONFIG_BSWAPDSP) += bswapdsp.o
6AVCODECOBJS-$(CONFIG_FMTCONVERT) += fmtconvert.o
22c3ab18 7AVCODECOBJS-$(CONFIG_HUFFYUVDSP) += huffyuvdsp.o
105998fb 8AVCODECOBJS-$(CONFIG_H264DSP) += h264dsp.o
01621202
DB
9AVCODECOBJS-$(CONFIG_H264PRED) += h264pred.o
10AVCODECOBJS-$(CONFIG_H264QPEL) += h264qpel.o
f8d17d53 11AVCODECOBJS-$(CONFIG_VP8DSP) += vp8dsp.o
01621202
DB
12
13# decoders/encoders
14AVCODECOBJS-$(CONFIG_DCA_DECODER) += dcadsp.o synth_filter.o
ed48a9d8 15AVCODECOBJS-$(CONFIG_HEVC_DECODER) += hevc_add_res.o hevc_idct.o hevc_mc.o
01621202 16AVCODECOBJS-$(CONFIG_V210_ENCODER) += v210enc.o
e99ecda5 17AVCODECOBJS-$(CONFIG_VP9_DECODER) += vp9dsp.o
01621202
DB
18
19CHECKASMOBJS-$(CONFIG_AVCODEC) += $(AVCODECOBJS-yes)
8bc67ec2
HG
20
21
2816f8a8
DB
22CHECKASMOBJS-$(ARCH_AARCH64) += aarch64/checkasm.o
23CHECKASMOBJS-$(HAVE_ARMV5TE_EXTERNAL) += arm/checkasm.o
24CHECKASMOBJS-$(HAVE_YASM) += x86/checkasm.o
8bc67ec2
HG
25
26CHECKASMOBJS += $(CHECKASMOBJS-yes) checkasm.o
27CHECKASMOBJS := $(sort $(CHECKASMOBJS:%=tests/checkasm/%))
28
29-include $(CHECKASMOBJS:.o=.d)
30
31CHECKASMDIRS := $(sort $(dir $(CHECKASMOBJS)))
32$(CHECKASMOBJS): | $(CHECKASMDIRS)
33OBJDIRS += $(CHECKASMDIRS)
34
8bc67ec2
HG
35CHECKASM := tests/checkasm/checkasm$(EXESUF)
36
3794062a 37$(CHECKASM): $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS)
7cb1d9e2 38 $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS) $(EXTRALIBS-avcodec) $(EXTRALIBS-avutil) $(EXTRALIBS)
8bc67ec2
HG
39
40checkasm: $(CHECKASM)
41
42clean:: checkasmclean
43
44checkasmclean:
45 $(RM) $(CHECKASM) $(CLEANSUFFIXES:%=tests/checkasm/%) $(CLEANSUFFIXES:%=tests/checkasm/$(ARCH)/%)
46
47.PHONY: checkasm