Move common test program infrastructure to common.mak.
[ffmpeg.git] / libavutil / Makefile
1 include ../config.mak
2
3 OBJS = adler32.o \
4        aes.o \
5        base64.o \
6        crc.o \
7        des.o \
8        fifo.o \
9        intfloat_readwrite.o \
10        lls.o \
11        log.o \
12        lzo.o \
13        mathematics.o \
14        md5.o \
15        mem.o \
16        random.o \
17        rational.o \
18        rc4.o \
19        sha1.o \
20        string.o \
21        tree.o \
22
23 HEADERS = adler32.h \
24           avstring.h \
25           avutil.h \
26           base64.h \
27           common.h \
28           crc.h \
29           fifo.h \
30           intfloat_readwrite.h \
31           log.h \
32           lzo.h \
33           mathematics.h \
34           md5.h \
35           mem.h \
36           random.h \
37           rational.h \
38           sha1.h
39
40 NAME=avutil
41 LIBVERSION=$(LAVUVERSION)
42 LIBMAJOR=$(LAVUMAJOR)
43
44 TESTS = $(addsuffix -test$(EXESUF), adler32 aes crc des lls md5 sha1 softfloat tree)
45
46 include ../common.mak
47
48 lzo-test$(EXESUF): lzo.c $(LIBNAME)
49         $(CC) $(CFLAGS) $(LDFLAGS) -DTEST -o $@ $^ $(EXTRALIBS) -llzo2
50
51 clean::
52         rm -f lzo-test$(EXESUF)