66b894d66e749474f47be3693e6fde208f1f487f
[ffmpeg.git] / libavutil / Makefile
1 NAME = avutil
2 DESC = FFmpeg utility library
3
4 HEADERS = adler32.h                                                     \
5           aes.h                                                         \
6           aes_ctr.h                                                     \
7           attributes.h                                                  \
8           audio_fifo.h                                                  \
9           avassert.h                                                    \
10           avstring.h                                                    \
11           avutil.h                                                      \
12           base64.h                                                      \
13           blowfish.h                                                    \
14           bprint.h                                                      \
15           bswap.h                                                       \
16           buffer.h                                                      \
17           cast5.h                                                       \
18           camellia.h                                                    \
19           channel_layout.h                                              \
20           common.h                                                      \
21           cpu.h                                                         \
22           crc.h                                                         \
23           des.h                                                         \
24           dict.h                                                        \
25           display.h                                                     \
26           downmix_info.h                                                \
27           error.h                                                       \
28           eval.h                                                        \
29           fifo.h                                                        \
30           file.h                                                        \
31           frame.h                                                       \
32           hash.h                                                        \
33           hmac.h                                                        \
34           hwcontext.h                                                   \
35           hwcontext_cuda.h                                              \
36           hwcontext_d3d11va.h                                           \
37           hwcontext_drm.h                                               \
38           hwcontext_dxva2.h                                             \
39           hwcontext_qsv.h                                               \
40           hwcontext_mediacodec.h                                        \
41           hwcontext_vaapi.h                                             \
42           hwcontext_videotoolbox.h                                      \
43           hwcontext_vdpau.h                                             \
44           imgutils.h                                                    \
45           intfloat.h                                                    \
46           intreadwrite.h                                                \
47           lfg.h                                                         \
48           log.h                                                         \
49           macros.h                                                      \
50           mathematics.h                                                 \
51           mastering_display_metadata.h                                  \
52           md5.h                                                         \
53           mem.h                                                         \
54           motion_vector.h                                               \
55           murmur3.h                                                     \
56           opt.h                                                         \
57           parseutils.h                                                  \
58           pixdesc.h                                                     \
59           pixelutils.h                                                  \
60           pixfmt.h                                                      \
61           random_seed.h                                                 \
62           rc4.h                                                         \
63           rational.h                                                    \
64           replaygain.h                                                  \
65           ripemd.h                                                      \
66           samplefmt.h                                                   \
67           sha.h                                                         \
68           sha512.h                                                      \
69           spherical.h                                                   \
70           stereo3d.h                                                    \
71           threadmessage.h                                               \
72           time.h                                                        \
73           timecode.h                                                    \
74           timestamp.h                                                   \
75           tree.h                                                        \
76           twofish.h                                                     \
77           version.h                                                     \
78           xtea.h                                                        \
79           tea.h                                                         \
80
81 HEADERS-$(CONFIG_LZO)                   += lzo.h
82
83 ARCH_HEADERS = bswap.h                                                  \
84                intmath.h                                                \
85                intreadwrite.h                                           \
86                timer.h                                                  \
87
88 BUILT_HEADERS = avconfig.h                                              \
89                 ffversion.h
90
91 OBJS = adler32.o                                                        \
92        aes.o                                                            \
93        aes_ctr.o                                                        \
94        audio_fifo.o                                                     \
95        avstring.o                                                       \
96        base64.o                                                         \
97        blowfish.o                                                       \
98        bprint.o                                                         \
99        buffer.o                                                         \
100        cast5.o                                                          \
101        camellia.o                                                       \
102        channel_layout.o                                                 \
103        color_utils.o                                                    \
104        cpu.o                                                            \
105        crc.o                                                            \
106        des.o                                                            \
107        dict.o                                                           \
108        display.o                                                        \
109        downmix_info.o                                                   \
110        error.o                                                          \
111        eval.o                                                           \
112        fifo.o                                                           \
113        file.o                                                           \
114        file_open.o                                                      \
115        float_dsp.o                                                      \
116        fixed_dsp.o                                                      \
117        frame.o                                                          \
118        hash.o                                                           \
119        hmac.o                                                           \
120        hwcontext.o                                                      \
121        imgutils.o                                                       \
122        integer.o                                                        \
123        intmath.o                                                        \
124        lfg.o                                                            \
125        lls.o                                                            \
126        log.o                                                            \
127        log2_tab.o                                                       \
128        mathematics.o                                                    \
129        mastering_display_metadata.o                                     \
130        md5.o                                                            \
131        mem.o                                                            \
132        murmur3.o                                                        \
133        opt.o                                                            \
134        parseutils.o                                                     \
135        pixdesc.o                                                        \
136        pixelutils.o                                                     \
137        random_seed.o                                                    \
138        rational.o                                                       \
139        reverse.o                                                        \
140        rc4.o                                                            \
141        ripemd.o                                                         \
142        samplefmt.o                                                      \
143        sha.o                                                            \
144        sha512.o                                                         \
145        slicethread.o                                                    \
146        spherical.o                                                      \
147        stereo3d.o                                                       \
148        threadmessage.o                                                  \
149        time.o                                                           \
150        timecode.o                                                       \
151        tree.o                                                           \
152        twofish.o                                                        \
153        utils.o                                                          \
154        xga_font_data.o                                                  \
155        xtea.o                                                           \
156        tea.o                                                            \
157
158 OBJS-$(!HAVE_ATOMICS_NATIVE)            += atomic.o                     \
159
160 OBJS-$(CONFIG_CUDA)                     += hwcontext_cuda.o
161 OBJS-$(CONFIG_D3D11VA)                  += hwcontext_d3d11va.o
162 OBJS-$(CONFIG_DXVA2)                    += hwcontext_dxva2.o
163 OBJS-$(CONFIG_QSV)                   += hwcontext_qsv.o
164 OBJS-$(CONFIG_LIBDRM)                   += hwcontext_drm.o
165 OBJS-$(CONFIG_LZO)                      += lzo.o
166 OBJS-$(CONFIG_OPENCL)                   += hwcontext_opencl.o
167 OBJS-$(CONFIG_VAAPI)                    += hwcontext_vaapi.o
168 OBJS-$(CONFIG_VIDEOTOOLBOX)             += hwcontext_videotoolbox.o
169 OBJS-$(CONFIG_VDPAU)                    += hwcontext_vdpau.o
170 OBJS-$(CONFIG_MEDIACODEC)               += hwcontext_mediacodec.o
171
172 OBJS += $(COMPAT_OBJS:%=../compat/%)
173
174 # Windows resource file
175 SLIBOBJS-$(HAVE_GNU_WINDRES)            += avutilres.o
176
177 SKIPHEADERS-$(HAVE_CUDA_H)             += hwcontext_cuda.h
178 SKIPHEADERS-$(CONFIG_CUDA)             += hwcontext_cuda_internal.h
179 SKIPHEADERS-$(CONFIG_D3D11VA)          += hwcontext_d3d11va.h
180 SKIPHEADERS-$(CONFIG_DXVA2)            += hwcontext_dxva2.h
181 SKIPHEADERS-$(CONFIG_QSV)           += hwcontext_qsv.h
182 SKIPHEADERS-$(CONFIG_OPENCL)           += hwcontext_opencl.h
183 SKIPHEADERS-$(CONFIG_VAAPI)            += hwcontext_vaapi.h
184 SKIPHEADERS-$(CONFIG_VIDEOTOOLBOX)     += hwcontext_videotoolbox.h
185 SKIPHEADERS-$(CONFIG_VDPAU)            += hwcontext_vdpau.h
186 SKIPHEADERS-$(HAVE_ATOMICS_GCC)        += atomic_gcc.h
187 SKIPHEADERS-$(HAVE_ATOMICS_SUNCC)      += atomic_suncc.h
188 SKIPHEADERS-$(HAVE_ATOMICS_WIN32)      += atomic_win32.h
189
190 TESTPROGS = adler32                                                     \
191             aes                                                         \
192             aes_ctr                                                     \
193             atomic                                                      \
194             audio_fifo                                                  \
195             avstring                                                    \
196             base64                                                      \
197             blowfish                                                    \
198             bprint                                                      \
199             cast5                                                       \
200             camellia                                                    \
201             color_utils                                                 \
202             cpu                                                         \
203             crc                                                         \
204             des                                                         \
205             dict                                                        \
206             display                                                     \
207             error                                                       \
208             eval                                                        \
209             file                                                        \
210             fifo                                                        \
211             hash                                                        \
212             hmac                                                        \
213             imgutils                                                    \
214             lfg                                                         \
215             lls                                                         \
216             log                                                         \
217             md5                                                         \
218             murmur3                                                     \
219             opt                                                         \
220             pca                                                         \
221             parseutils                                                  \
222             pixdesc                                                     \
223             pixelutils                                                  \
224             pixfmt_best                                                 \
225             random_seed                                                 \
226             rational                                                    \
227             ripemd                                                      \
228             sha                                                         \
229             sha512                                                      \
230             softfloat                                                   \
231             tree                                                        \
232             twofish                                                     \
233             utf8                                                        \
234             xtea                                                        \
235             tea                                                         \
236
237 TESTPROGS-$(HAVE_THREADS)            += cpu_init
238 TESTPROGS-$(HAVE_LZO1X_999_COMPRESS) += lzo
239
240 TOOLS = crypto_bench ffhash ffeval ffescape
241
242 tools/crypto_bench$(EXESUF): ELIBS += $(if $(VERSUS),$(subst +, -l,+$(VERSUS)),)
243 tools/crypto_bench$(EXESUF): CFLAGS += -DUSE_EXT_LIBS=0$(if $(VERSUS),$(subst +,+USE_,+$(VERSUS)),)
244
245 $(SUBDIR)tests/lzo$(EXESUF): ELIBS = -llzo2