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