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