mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-17 12:27:18 +00:00
Add Makefile rules for test programs.
Originally committed as revision 11643 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
cff7ccdd44
commit
4942a0e8ee
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user