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