-#
-# libavutil Makefile
-#
-include ../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_ISOC9X_SOURCE
-
-OBJS= mathematics.o \
- rational.o \
- intfloat_readwrite.o \
- crc.o \
- md5.o \
- adler32.o
-
-HEADERS = avutil.h common.h mathematics.h integer.h rational.h \
- intfloat_readwrite.h md5.h adler32.h
-
-NAME=avutil
-ifeq ($(BUILD_SHARED),yes)
-LIBVERSION=$(LAVUVERSION)
-LIBMAJOR=$(LAVUMAJOR)
-endif
-
-include $(SRC_PATH)/common.mak
+include $(SUBDIR)../config.mak
+
+NAME = avutil
+
+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 \
+ pixfmt.h \
+ random.h \
+ rational.h \
+ sha1.h
+
+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 \
+ random.o \
+ rational.o \
+ rc4.o \
+ sha1.o \
+ tree.o \
+ utils.o \
+
+TESTS = $(addsuffix -test$(EXESUF), adler32 aes base64 crc des lls md5 pca random sha1 softfloat tree)
+
+DIRS = arm bfin sh4 x86
+
+include $(SUBDIR)../subdir.mak
+
+$(SUBDIR)lzo-test$(EXESUF): EXTRALIBS += -llzo2
+
+CLEANFILES = lzo-test$(EXESUF)