]> git.sesse.net Git - ffmpeg/blob - libavutil/Makefile
92ee5bd0b3c14bd92a0c5c13ec9d5408d057cf60
[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_videotoolbox.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_VIDEOTOOLBOX)             += hwcontext_videotoolbox.o
165 OBJS-$(CONFIG_VDPAU)                    += hwcontext_vdpau.o
166
167 OBJS += $(COMPAT_OBJS:%=../compat/%)
168
169 # Windows resource file
170 SLIBOBJS-$(HAVE_GNU_WINDRES)            += avutilres.o
171
172 SKIPHEADERS-$(HAVE_CUDA_H)             += hwcontext_cuda.h
173 SKIPHEADERS-$(CONFIG_CUDA)             += hwcontext_cuda_internal.h
174 SKIPHEADERS-$(CONFIG_DXVA2)            += hwcontext_dxva2.h
175 SKIPHEADERS-$(CONFIG_QSV)           += hwcontext_qsv.h
176 SKIPHEADERS-$(CONFIG_VAAPI)            += hwcontext_vaapi.h
177 SKIPHEADERS-$(CONFIG_VIDEOTOOLBOX)     += hwcontext_videotoolbox.h
178 SKIPHEADERS-$(CONFIG_VDPAU)            += hwcontext_vdpau.h
179 SKIPHEADERS-$(HAVE_ATOMICS_GCC)        += atomic_gcc.h
180 SKIPHEADERS-$(HAVE_ATOMICS_SUNCC)      += atomic_suncc.h
181 SKIPHEADERS-$(HAVE_ATOMICS_WIN32)      += atomic_win32.h
182 SKIPHEADERS-$(CONFIG_OPENCL)           += opencl.h
183
184 TESTPROGS = adler32                                                     \
185             aes                                                         \
186             aes_ctr                                                     \
187             atomic                                                      \
188             audio_fifo                                                  \
189             avstring                                                    \
190             base64                                                      \
191             blowfish                                                    \
192             bprint                                                      \
193             cast5                                                       \
194             camellia                                                    \
195             color_utils                                                 \
196             cpu                                                         \
197             crc                                                         \
198             des                                                         \
199             dict                                                        \
200             display                                                     \
201             error                                                       \
202             eval                                                        \
203             file                                                        \
204             fifo                                                        \
205             float_dsp                                                   \
206             hash                                                        \
207             hmac                                                        \
208             imgutils                                                    \
209             lfg                                                         \
210             lls                                                         \
211             log                                                         \
212             md5                                                         \
213             murmur3                                                     \
214             opt                                                         \
215             pca                                                         \
216             parseutils                                                  \
217             pixdesc                                                     \
218             pixelutils                                                  \
219             random_seed                                                 \
220             rational                                                    \
221             ripemd                                                      \
222             sha                                                         \
223             sha512                                                      \
224             softfloat                                                   \
225             tree                                                        \
226             twofish                                                     \
227             utf8                                                        \
228             xtea                                                        \
229             tea                                                         \
230
231 TESTPROGS-$(HAVE_THREADS)            += cpu_init
232 TESTPROGS-$(HAVE_LZO1X_999_COMPRESS) += lzo
233
234 TOOLS = crypto_bench ffhash ffeval ffescape
235
236 tools/crypto_bench$(EXESUF): ELIBS += $(if $(VERSUS),$(subst +, -l,+$(VERSUS)),)
237 tools/crypto_bench$(EXESUF): CFLAGS += -DUSE_EXT_LIBS=0$(if $(VERSUS),$(subst +,+USE_,+$(VERSUS)),)
238
239 $(SUBDIR)tests/lzo$(EXESUF): ELIBS = -llzo2