Makefile 13 KB
Newer Older
1 2
include $(SUBDIR)../config.mak

3 4
NAME = avutil

5
HEADERS = adler32.h                                                     \
6
          aes.h                                                         \
7
          attributes.h                                                  \
8
          audio_fifo.h                                                  \
9
          audioconvert.h                                                \
10
          avassert.h                                                    \
11 12 13
          avstring.h                                                    \
          avutil.h                                                      \
          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                                                \
Ramiro Polla's avatar
Ramiro Polla committed
36
          lfg.h                                                         \
37
          log.h                                                         \
38
          macros.h                                                      \
39 40 41
          mathematics.h                                                 \
          md5.h                                                         \
          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                                                    \
James Almer's avatar
James Almer committed
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
          tea.h                                                         \
67

68 69
HEADERS-$(CONFIG_LZO)                   += lzo.h

70 71
HEADERS-$(CONFIG_OPENCL)                += opencl.h

72 73 74 75 76
ARCH_HEADERS = bswap.h                                                  \
               intmath.h                                                \
               intreadwrite.h                                           \
               timer.h                                                  \

77 78
BUILT_HEADERS = avconfig.h                                              \
                ffversion.h
79

80 81
OBJS = adler32.o                                                        \
       aes.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 94
       crc.o                                                            \
       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 114 115
       mathematics.o                                                    \
       md5.o                                                            \
       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 124
       rational.o                                                       \
       rc4.o                                                            \
James Almer's avatar
James Almer committed
125
       ripemd.o                                                         \
126
       samplefmt.o                                                      \
127
       sha.o                                                            \
128
       sha512.o                                                         \
129
       stereo3d.o                                                       \
130
       threadmessage.o                                                  \
131
       time.o                                                           \
132
       timecode.o                                                       \
133
       tree.o                                                           \
134
       twofish.o                                                        \
135
       utils.o                                                          \
136
       xga_font_data.o                                                  \
137
       xtea.o                                                           \
138
       tea.o                                                            \
139

140 141
OBJS-$(!HAVE_ATOMICS_NATIVE)            += atomic.o                     \

142
OBJS-$(CONFIG_LZO)                      += lzo.o
143
OBJS-$(CONFIG_OPENCL)                   += opencl.o opencl_internal.o
144

145
OBJS += $(COMPAT_OBJS:%=../compat/%)
146

147 148 149
# Windows resource file
SLIBOBJS-$(HAVE_GNU_WINDRES)            += avutilres.o

150 151
SKIPHEADERS          = old_pix_fmts.h

152
SKIPHEADERS-$(HAVE_ATOMICS_GCC)        += atomic_gcc.h
153 154
SKIPHEADERS-$(HAVE_ATOMICS_SUNCC)      += atomic_suncc.h
SKIPHEADERS-$(HAVE_ATOMICS_WIN32)      += atomic_win32.h
155
SKIPHEADERS-$(CONFIG_OPENCL)           += opencl.h
156

157 158
TESTPROGS = adler32                                                     \
            aes                                                         \
159
            atomic                                                      \
160 161
            avstring                                                    \
            base64                                                      \
162
            blowfish                                                    \
163
            bprint                                                      \
164
            cast5                                                       \
165
            camellia                                                    \
166 167 168
            cpu                                                         \
            crc                                                         \
            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 187
            random_seed                                                 \
            rational                                                    \
James Almer's avatar
James Almer committed
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 201 202 203
TOOLS = crypto_bench ffhash ffeval ffescape

tools/crypto_bench$(EXESUF): ELIBS += $(if $(VERSUS),$(subst +, -l,+$(VERSUS)),)
tools/crypto_bench$(EXESUF): CFLAGS += -DUSE_EXT_LIBS=0$(if $(VERSUS),$(subst +,+USE_,+$(VERSUS)),)
204

205
$(SUBDIR)lzo-test$(EXESUF): ELIBS = -llzo2