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