build: miscellaneous cosmetics
[ffmpeg.git] / tests / checkasm / Makefile
1 # libavcodec tests
2 # subsystems
3 AVCODECOBJS-$(CONFIG_BSWAPDSP)          += bswapdsp.o
4 AVCODECOBJS-$(CONFIG_FMTCONVERT)        += fmtconvert.o
5 AVCODECOBJS-$(CONFIG_H264PRED)          += h264pred.o
6 AVCODECOBJS-$(CONFIG_H264QPEL)          += h264qpel.o
7
8 # decoders/encoders
9 AVCODECOBJS-$(CONFIG_DCA_DECODER)       += dcadsp.o synth_filter.o
10 AVCODECOBJS-$(CONFIG_HEVC_DECODER)      += hevc_mc.o
11 AVCODECOBJS-$(CONFIG_V210_ENCODER)      += v210enc.o
12
13 CHECKASMOBJS-$(CONFIG_AVCODEC)          += $(AVCODECOBJS-yes)
14
15
16 -include $(SRC_PATH)/tests/checkasm/$(ARCH)/Makefile
17
18 CHECKASMOBJS += $(CHECKASMOBJS-yes) checkasm.o
19 CHECKASMOBJS := $(sort $(CHECKASMOBJS:%=tests/checkasm/%))
20
21 -include $(CHECKASMOBJS:.o=.d)
22
23 CHECKASMDIRS := $(sort $(dir $(CHECKASMOBJS)))
24 $(CHECKASMOBJS): | $(CHECKASMDIRS)
25 OBJDIRS += $(CHECKASMDIRS)
26
27 CHECKASM := tests/checkasm/checkasm$(EXESUF)
28
29 $(CHECKASM): $(EXEOBJS) $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS)
30         $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS) $(EXTRALIBS)
31
32 checkasm: $(CHECKASM)
33
34 clean:: checkasmclean
35
36 checkasmclean:
37         $(RM) $(CHECKASM) $(CLEANSUFFIXES:%=tests/checkasm/%) $(CLEANSUFFIXES:%=tests/checkasm/$(ARCH)/%)
38
39 .PHONY: checkasm