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