Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. # decoders/encoders
  10. AVCODECOBJS-$(CONFIG_ALAC_DECODER) += alacdsp.o
  11. AVCODECOBJS-$(CONFIG_DCA_DECODER) += synth_filter.o
  12. AVCODECOBJS-$(CONFIG_JPEG2000_DECODER) += jpeg2000dsp.o
  13. AVCODECOBJS-$(CONFIG_PIXBLOCKDSP) += pixblockdsp.o
  14. AVCODECOBJS-$(CONFIG_V210_ENCODER) += v210enc.o
  15. AVCODECOBJS-$(CONFIG_VP9_DECODER) += vp9dsp.o
  16. CHECKASMOBJS-$(CONFIG_AVCODEC) += $(AVCODECOBJS-yes)
  17. # libavfilter tests
  18. AVFILTEROBJS-$(CONFIG_BLEND_FILTER) += vf_blend.o
  19. AVFILTEROBJS-$(CONFIG_COLORSPACE_FILTER) += vf_colorspace.o
  20. CHECKASMOBJS-$(CONFIG_AVFILTER) += $(AVFILTEROBJS-yes)
  21. -include $(SRC_PATH)/tests/checkasm/$(ARCH)/Makefile
  22. CHECKASMOBJS += $(CHECKASMOBJS-yes) checkasm.o
  23. CHECKASMOBJS := $(sort $(CHECKASMOBJS:%=tests/checkasm/%))
  24. -include $(CHECKASMOBJS:.o=.d)
  25. CHECKASMDIRS := $(sort $(dir $(CHECKASMOBJS)))
  26. $(CHECKASMOBJS): | $(CHECKASMDIRS)
  27. OBJDIRS += $(CHECKASMDIRS)
  28. tests/checkasm/checkasm.o: CFLAGS += -Umain
  29. CHECKASM := tests/checkasm/checkasm$(EXESUF)
  30. $(CHECKASM): $(EXEOBJS) $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS)
  31. $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS) $(EXTRALIBS)
  32. checkasm: $(CHECKASM)
  33. testclean:: checkasmclean
  34. checkasmclean:
  35. $(RM) $(CHECKASM) $(CLEANSUFFIXES:%=tests/checkasm/%) $(CLEANSUFFIXES:%=tests/checkasm/$(ARCH)/%)
  36. .PHONY: checkasm