Merge commit 'bddd8cbf68551f6405b2bf77cc3e212af9fbe834'
[ffmpeg.git] / libavutil / Makefile
index 0f8ed08..8832715 100644 (file)
@@ -1,3 +1,5 @@
+include $(SUBDIR)../config.mak
+
 NAME = avutil
 
 HEADERS = adler32.h                                                     \
 NAME = avutil
 
 HEADERS = adler32.h                                                     \
@@ -10,6 +12,7 @@ HEADERS = adler32.h                                                     \
           avutil.h                                                      \
           base64.h                                                      \
           blowfish.h                                                    \
           avutil.h                                                      \
           base64.h                                                      \
           blowfish.h                                                    \
+          bprint.h                                                      \
           bswap.h                                                       \
           buffer.h                                                      \
           channel_layout.h                                              \
           bswap.h                                                       \
           buffer.h                                                      \
           channel_layout.h                                              \
@@ -26,6 +29,7 @@ HEADERS = adler32.h                                                     \
           hmac.h                                                        \
           imgutils.h                                                    \
           intfloat.h                                                    \
           hmac.h                                                        \
           imgutils.h                                                    \
           intfloat.h                                                    \
+          intfloat_readwrite.h                                          \
           intreadwrite.h                                                \
           lfg.h                                                         \
           log.h                                                         \
           intreadwrite.h                                                \
           lfg.h                                                         \
           log.h                                                         \
@@ -33,6 +37,7 @@ HEADERS = adler32.h                                                     \
           mathematics.h                                                 \
           md5.h                                                         \
           mem.h                                                         \
           mathematics.h                                                 \
           md5.h                                                         \
           mem.h                                                         \
+          murmur3.h                                                     \
           dict.h                                                        \
           old_pix_fmts.h                                                \
           opt.h                                                         \
           dict.h                                                        \
           old_pix_fmts.h                                                \
           opt.h                                                         \
@@ -42,21 +47,28 @@ HEADERS = adler32.h                                                     \
           random_seed.h                                                 \
           replaygain.h                                                  \
           rational.h                                                    \
           random_seed.h                                                 \
           replaygain.h                                                  \
           rational.h                                                    \
+          ripemd.h                                                      \
           samplefmt.h                                                   \
           sha.h                                                         \
           samplefmt.h                                                   \
           sha.h                                                         \
+          sha512.h                                                      \
           stereo3d.h                                                    \
           time.h                                                        \
           stereo3d.h                                                    \
           time.h                                                        \
+          timecode.h                                                    \
+          timestamp.h                                                   \
           version.h                                                     \
           xtea.h                                                        \
 
 HEADERS-$(CONFIG_LZO)                   += lzo.h
 
           version.h                                                     \
           xtea.h                                                        \
 
 HEADERS-$(CONFIG_LZO)                   += lzo.h
 
+HEADERS-$(CONFIG_OPENCL)                += opencl.h
+
 ARCH_HEADERS = bswap.h                                                  \
                intmath.h                                                \
                intreadwrite.h                                           \
                timer.h                                                  \
 
 ARCH_HEADERS = bswap.h                                                  \
                intmath.h                                                \
                intreadwrite.h                                           \
                timer.h                                                  \
 
-BUILT_HEADERS = avconfig.h
+BUILT_HEADERS = avconfig.h                                              \
+                ffversion.h
 
 OBJS = adler32.o                                                        \
        aes.o                                                            \
 
 OBJS = adler32.o                                                        \
        aes.o                                                            \
@@ -65,6 +77,7 @@ OBJS = adler32.o                                                        \
        avstring.o                                                       \
        base64.o                                                         \
        blowfish.o                                                       \
        avstring.o                                                       \
        base64.o                                                         \
        blowfish.o                                                       \
+       bprint.o                                                         \
        buffer.o                                                         \
        channel_layout.o                                                 \
        cpu.o                                                            \
        buffer.o                                                         \
        channel_layout.o                                                 \
        cpu.o                                                            \
@@ -78,17 +91,22 @@ OBJS = adler32.o                                                        \
        file.o                                                           \
        file_open.o                                                      \
        float_dsp.o                                                      \
        file.o                                                           \
        file_open.o                                                      \
        float_dsp.o                                                      \
+       fixed_dsp.o                                                      \
        frame.o                                                          \
        frame.o                                                          \
+       hash.o                                                           \
        hmac.o                                                           \
        imgutils.o                                                       \
        hmac.o                                                           \
        imgutils.o                                                       \
+       intfloat_readwrite.o                                             \
        intmath.o                                                        \
        lfg.o                                                            \
        intmath.o                                                        \
        lfg.o                                                            \
-       lls.o                                                            \
+       lls1.o                                                           \
+       lls2.o                                                           \
        log.o                                                            \
        log2_tab.o                                                       \
        mathematics.o                                                    \
        md5.o                                                            \
        mem.o                                                            \
        log.o                                                            \
        log2_tab.o                                                       \
        mathematics.o                                                    \
        md5.o                                                            \
        mem.o                                                            \
+       murmur3.o                                                        \
        dict.o                                                           \
        opt.o                                                            \
        parseutils.o                                                     \
        dict.o                                                           \
        opt.o                                                            \
        parseutils.o                                                     \
@@ -96,23 +114,32 @@ OBJS = adler32.o                                                        \
        random_seed.o                                                    \
        rational.o                                                       \
        rc4.o                                                            \
        random_seed.o                                                    \
        rational.o                                                       \
        rc4.o                                                            \
+       ripemd.o                                                         \
        samplefmt.o                                                      \
        sha.o                                                            \
        samplefmt.o                                                      \
        sha.o                                                            \
+       sha512.o                                                         \
        stereo3d.o                                                       \
        time.o                                                           \
        stereo3d.o                                                       \
        time.o                                                           \
+       timecode.o                                                       \
        tree.o                                                           \
        utils.o                                                          \
        tree.o                                                           \
        utils.o                                                          \
+       xga_font_data.o                                                  \
        xtea.o                                                           \
 
 OBJS-$(CONFIG_LZO)                      += lzo.o
        xtea.o                                                           \
 
 OBJS-$(CONFIG_LZO)                      += lzo.o
+OBJS-$(CONFIG_OPENCL)                   += opencl.o opencl_internal.o
 
 OBJS += $(COMPAT_OBJS:%=../compat/%)
 
 
 OBJS += $(COMPAT_OBJS:%=../compat/%)
 
+# Windows resource file
+SLIBOBJS-$(HAVE_GNU_WINDRES)            += avutilres.o
+
 SKIPHEADERS          = old_pix_fmts.h
 
 SKIPHEADERS-$(HAVE_ATOMICS_GCC)        += atomic_gcc.h
 SKIPHEADERS-$(HAVE_ATOMICS_SUNCC)      += atomic_suncc.h
 SKIPHEADERS-$(HAVE_ATOMICS_WIN32)      += atomic_win32.h
 SKIPHEADERS          = old_pix_fmts.h
 
 SKIPHEADERS-$(HAVE_ATOMICS_GCC)        += atomic_gcc.h
 SKIPHEADERS-$(HAVE_ATOMICS_SUNCC)      += atomic_suncc.h
 SKIPHEADERS-$(HAVE_ATOMICS_WIN32)      += atomic_win32.h
+SKIPHEADERS-$(CONFIG_OPENCL)           += opencl.h
 
 TESTPROGS = adler32                                                     \
             aes                                                         \
 
 TESTPROGS = adler32                                                     \
             aes                                                         \
@@ -120,18 +147,40 @@ TESTPROGS = adler32                                                     \
             avstring                                                    \
             base64                                                      \
             blowfish                                                    \
             avstring                                                    \
             base64                                                      \
             blowfish                                                    \
+            bprint                                                      \
             cpu                                                         \
             crc                                                         \
             des                                                         \
             cpu                                                         \
             crc                                                         \
             des                                                         \
+            error                                                       \
             eval                                                        \
             eval                                                        \
+            file                                                        \
             fifo                                                        \
             float_dsp                                                   \
             hmac                                                        \
             lfg                                                         \
             fifo                                                        \
             float_dsp                                                   \
             hmac                                                        \
             lfg                                                         \
-            lls                                                         \
+            lls1                                                        \
+            lls2                                                        \
+            log                                                         \
             md5                                                         \
             md5                                                         \
+            murmur3                                                     \
             opt                                                         \
             opt                                                         \
+            pca                                                         \
             parseutils                                                  \
             parseutils                                                  \
+            pixdesc                                                     \
+            random_seed                                                 \
+            rational                                                    \
+            ripemd                                                      \
             sha                                                         \
             sha                                                         \
+            sha512                                                      \
             tree                                                        \
             tree                                                        \
+            utf8                                                        \
             xtea                                                        \
             xtea                                                        \
+
+TESTPROGS-$(HAVE_LZO1X_999_COMPRESS) += lzo
+
+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)),)
+
+$(SUBDIR)lzo-test$(EXESUF): ELIBS = -llzo2