9498ebfc7fc60176e34dbe0b11b14d9f6a7ebe11
[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 # We rely on function pointers intentionally declared without specified argument types.
21 tests/checkasm/%.o: CFLAGS := $(CFLAGS:-Wstrict-prototypes=-Wno-strict-prototypes)
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