From 4942a0e8eea71395ad174fe0744de9f70e06459b Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sun, 27 Jan 2008 22:39:30 +0000 Subject: Add Makefile rules for test programs. Originally committed as revision 11643 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'libavutil/Makefile') 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 -- cgit v1.2.3