tools: add benchmark for crypto functions.
[ffmpeg.git] / libavutil / Makefile
1 include $(SUBDIR)../config.mak
2
3 NAME = avutil
4
5 HEADERS = adler32.h                                                     \
6           aes.h                                                         \
7           attributes.h                                                  \
8           audio_fifo.h                                                  \
9           audioconvert.h                                                \
10           avassert.h                                                    \
11           avstring.h                                                    \
12           avutil.h                                                      \
13           base64.h                                                      \
14           blowfish.h                                                    \
15           bprint.h                                                      \
16           bswap.h                                                       \
17           buffer.h                                                      \
18           channel_layout.h                                              \
19           common.h                                                      \
20           cpu.h                                                         \
21           crc.h                                                         \
22           error.h                                                       \
23           eval.h                                                        \
24           fifo.h                                                        \
25           file.h                                                        \
26           frame.h                                                       \
27           hmac.h                                                        \
28           imgutils.h                                                    \
29           intfloat.h                                                    \
30           intfloat_readwrite.h                                          \
31           intreadwrite.h                                                \
32           lfg.h                                                         \
33           log.h                                                         \
34           mathematics.h                                                 \
35           md5.h                                                         \
36           mem.h                                                         \
37           murmur3.h                                                     \
38           dict.h                                                        \
39           old_pix_fmts.h                                                \
40           opt.h                                                         \
41           parseutils.h                                                  \
42           pixdesc.h                                                     \
43           pixfmt.h                                                      \
44           random_seed.h                                                 \
45           rational.h                                                    \
46           ripemd.h                                                      \
47           samplefmt.h                                                   \
48           sha.h                                                         \
49           sha512.h                                                      \
50           time.h                                                        \
51           timecode.h                                                    \
52           timestamp.h                                                   \
53           version.h                                                     \
54           xtea.h                                                        \
55
56 HEADERS-$(CONFIG_LZO)                   += lzo.h
57
58 HEADERS-$(CONFIG_OPENCL)                += opencl.h
59
60 ARCH_HEADERS = bswap.h                                                  \
61                intmath.h                                                \
62                intreadwrite.h                                           \
63                timer.h                                                  \
64
65 BUILT_HEADERS = avconfig.h
66
67 OBJS = adler32.o                                                        \
68        aes.o                                                            \
69        atomic.o                                                         \
70        audio_fifo.o                                                     \
71        avstring.o                                                       \
72        base64.o                                                         \
73        blowfish.o                                                       \
74        bprint.o                                                         \
75        buffer.o                                                         \
76        channel_layout.o                                                 \
77        cpu.o                                                            \
78        crc.o                                                            \
79        des.o                                                            \
80        error.o                                                          \
81        eval.o                                                           \
82        fifo.o                                                           \
83        file.o                                                           \
84        file_open.o                                                      \
85        float_dsp.o                                                      \
86        frame.o                                                          \
87        hash.o                                                           \
88        hmac.o                                                           \
89        imgutils.o                                                       \
90        intfloat_readwrite.o                                             \
91        intmath.o                                                        \
92        lfg.o                                                            \
93        lls.o                                                            \
94        log.o                                                            \
95        log2_tab.o                                                       \
96        mathematics.o                                                    \
97        md5.o                                                            \
98        mem.o                                                            \
99        murmur3.o                                                        \
100        dict.o                                                           \
101        opt.o                                                            \
102        parseutils.o                                                     \
103        pixdesc.o                                                        \
104        random_seed.o                                                    \
105        rational.o                                                       \
106        rc4.o                                                            \
107        ripemd.o                                                         \
108        samplefmt.o                                                      \
109        sha.o                                                            \
110        sha512.o                                                         \
111        time.o                                                           \
112        timecode.o                                                       \
113        tree.o                                                           \
114        utils.o                                                          \
115        xga_font_data.o                                                  \
116        xtea.o                                                           \
117
118 OBJS-$(CONFIG_LZO)                      += lzo.o
119 OBJS-$(CONFIG_OPENCL)                   += opencl.o opencl_internal.o
120
121 OBJS += $(COMPAT_OBJS:%=../compat/%)
122
123 SKIPHEADERS          = old_pix_fmts.h
124
125 SKIPHEADERS-$(HAVE_ATOMICS_GCC)        += atomic_gcc.h
126 SKIPHEADERS-$(HAVE_ATOMICS_SUNCC)      += atomic_suncc.h
127 SKIPHEADERS-$(HAVE_ATOMICS_WIN32)      += atomic_win32.h
128 SKIPHEADERS-$(CONFIG_OPENCL)           += opencl.h
129
130 TESTPROGS = adler32                                                     \
131             aes                                                         \
132             atomic                                                      \
133             avstring                                                    \
134             base64                                                      \
135             blowfish                                                    \
136             bprint                                                      \
137             cpu                                                         \
138             crc                                                         \
139             des                                                         \
140             error                                                       \
141             eval                                                        \
142             file                                                        \
143             fifo                                                        \
144             hmac                                                        \
145             lfg                                                         \
146             lls                                                         \
147             md5                                                         \
148             murmur3                                                     \
149             opt                                                         \
150             pca                                                         \
151             parseutils                                                  \
152             random_seed                                                 \
153             rational                                                    \
154             ripemd                                                      \
155             sha                                                         \
156             sha512                                                      \
157             tree                                                        \
158             xtea                                                        \
159
160 TESTPROGS-$(HAVE_LZO1X_999_COMPRESS) += lzo
161
162 TOOLS = crypto_bench ffhash ffeval ffescape
163
164 tools/crypto_bench$(EXESUF): ELIBS += $(if $(VERSUS),$(subst +, -l,+$(VERSUS)),)
165 tools/crypto_bench$(EXESUF): CFLAGS += -DUSE_EXT_LIBS=0$(if $(VERSUS),$(subst +,+USE_,+$(VERSUS)),)
166
167 $(SUBDIR)lzo-test$(EXESUF): ELIBS = -llzo2