33e2c09dc67535655be80ffa59169b75adcfbca6
[ffmpeg.git] / tests / checkasm / Makefile
1 # libavcodec tests
2 AVCODECOBJS-$(CONFIG_H264PRED) += h264pred.o
3
4 CHECKASMOBJS-$(CONFIG_AVCODEC) += $(AVCODECOBJS-yes)
5
6
7 -include $(SRC_PATH)/tests/checkasm/$(ARCH)/Makefile
8
9 CHECKASMOBJS += $(CHECKASMOBJS-yes) checkasm.o
10 CHECKASMOBJS := $(sort $(CHECKASMOBJS:%=tests/checkasm/%))
11
12 -include $(CHECKASMOBJS:.o=.d)
13
14 CHECKASMDIRS := $(sort $(dir $(CHECKASMOBJS)))
15 $(CHECKASMOBJS): | $(CHECKASMDIRS)
16 OBJDIRS += $(CHECKASMDIRS)
17
18 # We rely on function pointers intentionally declared without specified argument types.
19 tests/checkasm/%.o: CFLAGS := $(CFLAGS:-Wstrict-prototypes=-Wno-strict-prototypes)
20
21 CHECKASM := tests/checkasm/checkasm$(EXESUF)
22
23 $(CHECKASM): $(EXEOBJS) $(CHECKASMOBJS) $(FF_DEP_LIBS)
24         $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $(CHECKASMOBJS) $(FF_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