-#
-# libavutil Makefile
-#
-include ../config.mak
+include $(SUBDIR)../config.mak
-# NOTE: -I.. is needed to include config.h
-CFLAGS=$(OPTFLAGS) -DHAVE_AV_CONFIG_H -DBUILD_AVUTIL -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
+NAME = avutil
-#FIXME: This should be in configure/config.mak
-ifeq ($(CONFIG_WIN32),yes)
- LDFLAGS=-Wl,--output-def,$(@:.dll=.def),--out-implib,lib$(SLIBNAME:$(SLIBSUF)=.dll.a)
-endif
+HEADERS = adler32.h \
+ avstring.h \
+ avutil.h \
+ base64.h \
+ common.h \
+ crc.h \
+ fifo.h \
+ intfloat_readwrite.h \
+ log.h \
+ lzo.h \
+ mathematics.h \
+ md5.h \
+ mem.h \
+ pixdesc.h \
+ pixfmt.h \
+ rational.h \
+ sha1.h \
-OBJS= mathematics.o \
- integer.o \
- rational.o \
- intfloat_readwrite.o \
+OBJS = adler32.o \
+ aes.o \
+ avstring.o \
+ base64.o \
+ crc.o \
+ des.o \
+ fifo.o \
+ intfloat_readwrite.o \
+ lfg.o \
+ lls.o \
+ log.o \
+ lzo.o \
+ mathematics.o \
+ md5.o \
+ mem.o \
+ pixdesc.o \
+ random_seed.o \
+ rational.o \
+ rc4.o \
+ sha.o \
+ tree.o \
+ utils.o \
-HEADERS = avutil.h common.h mathematics.h integer.h rational.h \
- intfloat_readwrite.h
+TESTPROGS = adler32 aes base64 crc des lls md5 pca sha softfloat tree
+TESTPROGS-$(HAVE_LZO1X_999_COMPRESS) += lzo
-ifeq ($(TARGET_ARCH_SPARC64),yes)
-CFLAGS+= -mcpu=ultrasparc -mtune=ultrasparc
-endif
+DIRS = arm bfin sh4 x86
-NAME=avutil
-SUBDIR = libavutil
-ifeq ($(BUILD_SHARED),yes)
-LIBVERSION=$(LAVUVERSION)
-LIBMAJOR=$(LAVUMAJOR)
-endif
+include $(SUBDIR)../subdir.mak
-include $(SRC_PATH)/common.mak
+$(SUBDIR)lzo-test$(EXESUF): ELIBS = -llzo2