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