aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2008-01-27 22:39:30 +0000
committerDiego Biurrun <diego@biurrun.de>2008-01-27 22:39:30 +0000
commit4942a0e8eea71395ad174fe0744de9f70e06459b (patch)
tree92e89e76fb20ed1debc014676aaafee4f2701e38
parentcff7ccdd448ec78b74620042f04de55450c543b5 (diff)
downloadffmpeg-4942a0e8eea71395ad174fe0744de9f70e06459b.tar.gz
Add Makefile rules for test programs.
Originally committed as revision 11643 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavutil/Makefile15
1 files changed, 15 insertions, 0 deletions
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