Makefile 807 Bytes
Newer Older
1 2 3 4 5 6
#
# libavutil Makefile
#
include ../config.mak

# NOTE: -I.. is needed to include config.h
7
CFLAGS=$(OPTFLAGS) -DHAVE_AV_CONFIG_H -DBUILD_AVUTIL -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
8

diego's avatar
diego committed
9 10
#FIXME: This should be in configure/config.mak
ifeq ($(CONFIG_WIN32),yes)
11
    LDFLAGS=-Wl,--output-def,$(@:.dll=.def),--out-implib,lib$(SLIBNAME:$(SLIBSUF)=.dll.a)
diego's avatar
diego committed
12 13
endif

14 15 16 17
OBJS= mathematics.o \
      integer.o \
      rational.o \
      intfloat_readwrite.o \
michael's avatar
michael committed
18
      crc.o \
19

20 21
HEADERS = avutil.h common.h mathematics.h integer.h rational.h \
          intfloat_readwrite.h
22 23 24 25 26

ifeq ($(TARGET_ARCH_SPARC64),yes)
CFLAGS+= -mcpu=ultrasparc -mtune=ultrasparc
endif

27
NAME=avutil
28
SUBDIR = libavutil
29
ifeq ($(BUILD_SHARED),yes)
30 31
LIBVERSION=$(LAVUVERSION)
LIBMAJOR=$(LAVUMAJOR)
32 33
endif

34
include $(SRC_PATH)/common.mak