2005-08-01 22:07:05 +02:00
|
|
|
#
|
|
|
|
# libavutil Makefile
|
|
|
|
#
|
|
|
|
include ../config.mak
|
|
|
|
|
|
|
|
# NOTE: -I.. is needed to include config.h
|
2006-01-30 01:22:41 +01:00
|
|
|
CFLAGS=$(OPTFLAGS) -DHAVE_AV_CONFIG_H -DBUILD_AVUTIL -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
|
2005-08-01 22:07:05 +02:00
|
|
|
|
2006-01-29 19:32:55 +01:00
|
|
|
#FIXME: This should be in configure/config.mak
|
|
|
|
ifeq ($(CONFIG_WIN32),yes)
|
2006-01-30 01:22:41 +01:00
|
|
|
LDFLAGS=-Wl,--output-def,$(@:.dll=.def),--out-implib,lib$(SLIBNAME:$(SLIBSUF)=.dll.a)
|
2006-01-29 19:32:55 +01:00
|
|
|
endif
|
|
|
|
|
2005-08-01 22:07:05 +02:00
|
|
|
OBJS= mathematics.o \
|
|
|
|
integer.o \
|
|
|
|
rational.o \
|
|
|
|
intfloat_readwrite.o \
|
|
|
|
|
2006-02-13 13:53:25 +01:00
|
|
|
HEADERS = avutil.h common.h mathematics.h integer.h rational.h \
|
|
|
|
intfloat_readwrite.h
|
2005-08-01 22:07:05 +02:00
|
|
|
|
|
|
|
ifeq ($(TARGET_ARCH_SPARC64),yes)
|
|
|
|
CFLAGS+= -mcpu=ultrasparc -mtune=ultrasparc
|
|
|
|
endif
|
|
|
|
|
2006-01-14 16:54:58 +01:00
|
|
|
NAME=avutil
|
2006-02-13 13:53:25 +01:00
|
|
|
SUBDIR = libavutil
|
2005-08-01 22:07:05 +02:00
|
|
|
ifeq ($(BUILD_SHARED),yes)
|
2006-01-14 04:39:02 +01:00
|
|
|
LIBVERSION=$(LAVUVERSION)
|
|
|
|
LIBMAJOR=$(LAVUMAJOR)
|
2005-08-01 22:07:05 +02:00
|
|
|
endif
|
|
|
|
|
2006-02-13 13:53:25 +01:00
|
|
|
include $(SRC_PATH)/common.mak
|