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