configure: remove libdl dependency from libndi_newtek
[ffmpeg.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_FLACDSP)           += flacdsp.o
7 AVCODECOBJS-$(CONFIG_FMTCONVERT)        += fmtconvert.o
8 AVCODECOBJS-$(CONFIG_G722DSP)           += g722dsp.o
9 AVCODECOBJS-$(CONFIG_H264DSP)           += h264dsp.o
10 AVCODECOBJS-$(CONFIG_H264PRED)          += h264pred.o
11 AVCODECOBJS-$(CONFIG_H264QPEL)          += h264qpel.o
12 AVCODECOBJS-$(CONFIG_LLVIDDSP)          += llviddsp.o
13 AVCODECOBJS-$(CONFIG_VP8DSP)            += vp8dsp.o
14 AVCODECOBJS-$(CONFIG_VIDEODSP)          += videodsp.o
15
16 # decoders/encoders
17 AVCODECOBJS-$(CONFIG_AAC_DECODER)       += aacpsdsp.o \
18                                            sbrdsp.o
19 AVCODECOBJS-$(CONFIG_ALAC_DECODER)      += alacdsp.o
20 AVCODECOBJS-$(CONFIG_DCA_DECODER)       += synth_filter.o
21 AVCODECOBJS-$(CONFIG_EXR_DECODER)       += exrdsp.o
22 AVCODECOBJS-$(CONFIG_JPEG2000_DECODER)  += jpeg2000dsp.o
23 AVCODECOBJS-$(CONFIG_PIXBLOCKDSP)       += pixblockdsp.o
24 AVCODECOBJS-$(CONFIG_HEVC_DECODER)      += hevc_add_res.o hevc_idct.o
25 AVCODECOBJS-$(CONFIG_V210_ENCODER)      += v210enc.o
26 AVCODECOBJS-$(CONFIG_VP9_DECODER)       += vp9dsp.o
27
28 CHECKASMOBJS-$(CONFIG_AVCODEC)          += $(AVCODECOBJS-yes)
29
30 # libavfilter tests
31 AVFILTEROBJS-$(CONFIG_BLEND_FILTER) += vf_blend.o
32 AVFILTEROBJS-$(CONFIG_COLORSPACE_FILTER) += vf_colorspace.o
33
34 CHECKASMOBJS-$(CONFIG_AVFILTER) += $(AVFILTEROBJS-yes)
35
36 AVUTILOBJS                              += fixed_dsp.o
37 AVUTILOBJS                              += float_dsp.o
38
39 CHECKASMOBJS-$(CONFIG_AVUTIL)  += $(AVUTILOBJS)
40
41 CHECKASMOBJS-$(ARCH_AARCH64)            += aarch64/checkasm.o
42 CHECKASMOBJS-$(HAVE_ARMV5TE_EXTERNAL)   += arm/checkasm.o
43 CHECKASMOBJS-$(HAVE_X86ASM)             += x86/checkasm.o
44
45 CHECKASMOBJS += $(CHECKASMOBJS-yes) checkasm.o
46 CHECKASMOBJS := $(sort $(CHECKASMOBJS:%=tests/checkasm/%))
47
48 -include $(CHECKASMOBJS:.o=.d)
49
50 CHECKASMDIRS := $(sort $(dir $(CHECKASMOBJS)))
51 $(CHECKASMOBJS): | $(CHECKASMDIRS)
52 OBJDIRS += $(CHECKASMDIRS)
53
54 tests/checkasm/checkasm.o: CFLAGS += -Umain
55
56 CHECKASM := tests/checkasm/checkasm$(EXESUF)
57
58 $(CHECKASM): $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS)
59         $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS) $(EXTRALIBS)
60
61 checkasm: $(CHECKASM)
62
63 testclean:: checkasmclean
64
65 checkasmclean:
66         $(RM) $(CHECKASM) $(CLEANSUFFIXES:%=tests/checkasm/%) $(CLEANSUFFIXES:%=tests/checkasm/$(ARCH)/%)
67
68 .PHONY: checkasm