[FFmpeg-cvslog] r11643 - in trunk/libavutil: . Makefile

diego subversion
Sun Jan 27 23:39:30 CET 2008


Author: diego
Date: Sun Jan 27 23:39:30 2008
New Revision: 11643

Log:
Add Makefile rules for test programs.


Modified:
   trunk/libavutil/   (props changed)
   trunk/libavutil/Makefile

Modified: trunk/libavutil/Makefile
==============================================================================
--- trunk/libavutil/Makefile	(original)
+++ trunk/libavutil/Makefile	Sun Jan 27 23:39:30 2008
@@ -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




More information about the ffmpeg-cvslog mailing list