ff57aa879a6697ec0cafe25fe2c9d78928f7c45d
[ffmpeg.git] / tests / checkasm / Makefile
1 # libavcodec tests
2 AVCODECOBJS-$(CONFIG_BSWAPDSP) += bswapdsp.o
3 AVCODECOBJS-$(CONFIG_H264PRED) += h264pred.o
4 AVCODECOBJS-$(CONFIG_H264QPEL) += h264qpel.o
5
6 CHECKASMOBJS-$(CONFIG_AVCODEC) += $(AVCODECOBJS-yes)
7
8
9 -include $(SRC_PATH)/tests/checkasm/$(ARCH)/Makefile
10
11 CHECKASMOBJS += $(CHECKASMOBJS-yes) checkasm.o
12 CHECKASMOBJS := $(sort $(CHECKASMOBJS:%=tests/checkasm/%))
13
14 -include $(CHECKASMOBJS:.o=.d)
15
16 CHECKASMDIRS := $(sort $(dir $(CHECKASMOBJS)))
17 $(CHECKASMOBJS): | $(CHECKASMDIRS)
18 OBJDIRS += $(CHECKASMDIRS)
19
20 CHECKASM := tests/checkasm/checkasm$(EXESUF)
21
22 $(CHECKASM): $(EXEOBJS) $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS)
23         $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS) $(EXTRALIBS)
24
25 checkasm: $(CHECKASM)
26
27 clean:: checkasmclean
28
29 checkasmclean:
30         $(RM) $(CHECKASM) $(CLEANSUFFIXES:%=tests/checkasm/%) $(CLEANSUFFIXES:%=tests/checkasm/$(ARCH)/%)
31
32 .PHONY: checkasm