]> git.sesse.net Git - ffmpeg/blob - libavutil/Makefile
ffmpeg; check return code of avcodec_send_frame when flushing encoders
[ffmpeg] / libavutil / Makefile
1 include $(SUBDIR)../config.mak
2
3 NAME = avutil
4
5 HEADERS = adler32.h                                                     \
6           aes.h                                                         \
7           aes_ctr.h                                                     \
8           attributes.h                                                  \
9           audio_fifo.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           cast5.h                                                       \
19           camellia.h                                                    \
20           channel_layout.h                                              \
21           common.h                                                      \
22           cpu.h                                                         \
23           crc.h                                                         \
24           des.h                                                         \
25           dict.h                                                        \
26           display.h                                                     \
27           downmix_info.h                                                \
28           error.h                                                       \
29           eval.h                                                        \
30           fifo.h                                                        \
31           file.h                                                        \
32           frame.h                                                       \
33           hash.h                                                        \
34           hmac.h                                                        \
35           hwcontext.h                                                   \
36           hwcontext_cuda.h                                              \
37           hwcontext_dxva2.h                                             \
38           hwcontext_qsv.h                                               \
39           hwcontext_vaapi.h                                             \
40           hwcontext_vdpau.h                                             \
41           imgutils.h                                                    \
42           intfloat.h                                                    \
43           intreadwrite.h                                                \
44           lfg.h                                                         \
45           log.h                                                         \
46           macros.h                                                      \
47           mathematics.h                                                 \
48           mastering_display_metadata.h                                  \
49           md5.h                                                         \
50           mem.h                                                         \
51           motion_vector.h                                               \
52           murmur3.h                                                     \
53           opt.h                                                         \
54           parseutils.h                                                  \
55           pixdesc.h                                                     \
56           pixelutils.h                                                  \
57           pixfmt.h                                                      \
58           random_seed.h                                                 \
59           rc4.h                                                         \
60           rational.h                                                    \
61           replaygain.h                                                  \
62           ripemd.h                                                      \
63           samplefmt.h                                                   \
64           sha.h                                                         \
65           sha512.h                                                      \
66           spherical.h                                                   \
67           stereo3d.h                                                    \
68           threadmessage.h                                               \
69           time.h                                                        \
70           timecode.h                                                    \
71           timestamp.h                                                   \
72           tree.h                                                        \
73           twofish.h                                                     \
74           version.h                                                     \
75           xtea.h                                                        \
76           tea.h                                                         \
77
78 HEADERS-$(CONFIG_LZO)                   += lzo.h
79
80 HEADERS-$(CONFIG_OPENCL)                += opencl.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        spherical.o                                                      \
145        stereo3d.o                                                       \
146        threadmessage.o                                                  \
147        time.o                                                           \
148        timecode.o                                                       \
149        tree.o                                                           \
150        twofish.o                                                        \
151        utils.o                                                          \
152        xga_font_data.o                                                  \
153        xtea.o                                                           \
154        tea.o                                                            \
155
156 OBJS-$(!HAVE_ATOMICS_NATIVE)            += atomic.o                     \
157
158 OBJS-$(CONFIG_CUDA)                     += hwcontext_cuda.o
159 OBJS-$(CONFIG_DXVA2)                    += hwcontext_dxva2.o
160 OBJS-$(CONFIG_QSV)                   += hwcontext_qsv.o
161 OBJS-$(CONFIG_LZO)                      += lzo.o
162 OBJS-$(CONFIG_OPENCL)                   += opencl.o opencl_internal.o
163 OBJS-$(CONFIG_VAAPI)                    += hwcontext_vaapi.o
164 OBJS-$(CONFIG_VDPAU)                    += hwcontext_vdpau.o
165
166 OBJS += $(COMPAT_OBJS:%=../compat/%)
167
168 # Windows resource file
169 SLIBOBJS-$(HAVE_GNU_WINDRES)            += avutilres.o
170
171 SKIPHEADERS-$(HAVE_CUDA_H)             += hwcontext_cuda.h
172 SKIPHEADERS-$(CONFIG_CUDA)             += hwcontext_cuda_internal.h
173 SKIPHEADERS-$(CONFIG_DXVA2)            += hwcontext_dxva2.h
174 SKIPHEADERS-$(CONFIG_QSV)           += hwcontext_qsv.h
175 SKIPHEADERS-$(CONFIG_VAAPI)            += hwcontext_vaapi.h
176 SKIPHEADERS-$(CONFIG_VDPAU)            += hwcontext_vdpau.h
177 SKIPHEADERS-$(HAVE_ATOMICS_GCC)        += atomic_gcc.h
178 SKIPHEADERS-$(HAVE_ATOMICS_SUNCC)      += atomic_suncc.h
179 SKIPHEADERS-$(HAVE_ATOMICS_WIN32)      += atomic_win32.h
180 SKIPHEADERS-$(CONFIG_OPENCL)           += opencl.h
181
182 TESTPROGS = adler32                                                     \
183             aes                                                         \
184             aes_ctr                                                     \
185             atomic                                                      \
186             audio_fifo                                                  \
187             avstring                                                    \
188             base64                                                      \
189             blowfish                                                    \
190             bprint                                                      \
191             cast5                                                       \
192             camellia                                                    \
193             color_utils                                                 \
194             cpu                                                         \
195             crc                                                         \
196             des                                                         \
197             dict                                                        \
198             display                                                     \
199             error                                                       \
200             eval                                                        \
201             file                                                        \
202             fifo                                                        \
203             float_dsp                                                   \
204             hash                                                        \
205             hmac                                                        \
206             imgutils                                                    \
207             lfg                                                         \
208             lls                                                         \
209             log                                                         \
210             md5                                                         \
211             murmur3                                                     \
212             opt                                                         \
213             pca                                                         \
214             parseutils                                                  \
215             pixdesc                                                     \
216             pixelutils                                                  \
217             random_seed                                                 \
218             rational                                                    \
219             ripemd                                                      \
220             sha                                                         \
221             sha512                                                      \
222             softfloat                                                   \
223             tree                                                        \
224             twofish                                                     \
225             utf8                                                        \
226             xtea                                                        \
227             tea                                                         \
228
229 TESTPROGS-$(HAVE_THREADS)            += cpu_init
230 TESTPROGS-$(HAVE_LZO1X_999_COMPRESS) += lzo
231
232 TOOLS = crypto_bench ffhash ffeval ffescape
233
234 tools/crypto_bench$(EXESUF): ELIBS += $(if $(VERSUS),$(subst +, -l,+$(VERSUS)),)
235 tools/crypto_bench$(EXESUF): CFLAGS += -DUSE_EXT_LIBS=0$(if $(VERSUS),$(subst +,+USE_,+$(VERSUS)),)
236
237 $(SUBDIR)tests/lzo$(EXESUF): ELIBS = -llzo2