6aabcd73bdc3b2d9294dac22f8088a3058a3985c
[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 tests/checkasm/checkasm.o: CFLAGS += -Umain
22
23 CHECKASM := tests/checkasm/checkasm$(EXESUF)
24
25 $(CHECKASM): $(EXEOBJS) $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS)
26         $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS) $(EXTRALIBS)
27
28 checkasm: $(CHECKASM)
29
30 clean:: checkasmclean
31
32 checkasmclean:
33         $(RM) $(CHECKASM) $(CLEANSUFFIXES:%=tests/checkasm/%) $(CLEANSUFFIXES:%=tests/checkasm/$(ARCH)/%)
34
35 .PHONY: checkasm