diff --git a/libavutil/Makefile b/libavutil/Makefile index 54ac475a49..064e7e81bd 100644 --- a/libavutil/Makefile +++ b/libavutil/Makefile @@ -42,3 +42,18 @@ LIBVERSION=$(LAVUVERSION) LIBMAJOR=$(LAVUMAJOR) include ../common.mak + +TESTS = $(addsuffix -test$(EXESUF), adler32 aes crc des lls md5 sha1 softfloat tree) + +tests: $(TESTS) + +%-test$(EXESUF): %.c $(LIBNAME) + $(CC) $(CFLAGS) $(LDFLAGS) -DTEST -o $@ $^ $(EXTRALIBS) + +lzo-test$(EXESUF): lzo.c $(LIBNAME) + $(CC) $(CFLAGS) $(LDFLAGS) -DTEST -o $@ $^ $(EXTRALIBS) -llzo2 + +clean:: + rm -f $(TESTS) lzo-test$(EXESUF) + +.PHONY: tests