Commit 4942a0e8 authored by Diego Biurrun's avatar Diego Biurrun

Add Makefile rules for test programs.

Originally committed as revision 11643 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent cff7ccdd
...@@ -42,3 +42,18 @@ LIBVERSION=$(LAVUVERSION) ...@@ -42,3 +42,18 @@ LIBVERSION=$(LAVUVERSION)
LIBMAJOR=$(LAVUMAJOR) LIBMAJOR=$(LAVUMAJOR)
include ../common.mak 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment