checkasm: Use a self-balancing tree
[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 AVCODECOBJS-$(CONFIG_V210_ENCODER) += v210enc.o
6
7 CHECKASMOBJS-$(CONFIG_AVCODEC) += $(AVCODECOBJS-yes)
8
9
10 -include $(SRC_PATH)/tests/checkasm/$(ARCH)/Makefile
11
12 CHECKASMOBJS += $(CHECKASMOBJS-yes) checkasm.o
13 CHECKASMOBJS := $(sort $(CHECKASMOBJS:%=tests/checkasm/%))
14
15 -include $(CHECKASMOBJS:.o=.d)
16
17 CHECKASMDIRS := $(sort $(dir $(CHECKASMOBJS)))
18 $(CHECKASMOBJS): | $(CHECKASMDIRS)
19 OBJDIRS += $(CHECKASMDIRS)
20
21 CHECKASM := tests/checkasm/checkasm$(EXESUF)
22
23 $(CHECKASM): $(EXEOBJS) $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS)
24         $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS) $(EXTRALIBS)
25
26 checkasm: $(CHECKASM)
27
28 clean:: checkasmclean
29
30 checkasmclean:
31         $(RM) $(CHECKASM) $(CLEANSUFFIXES:%=tests/checkasm/%) $(CLEANSUFFIXES:%=tests/checkasm/$(ARCH)/%)
32
33 .PHONY: checkasm