6 VPATH=$(SRC_PATH)/libavutil
8 # NOTE: -I.. is needed to include config.h
9 CFLAGS=$(OPTFLAGS) -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
14 intfloat_readwrite.o \
17 ifeq ($(TARGET_ARCH_SPARC64),yes)
18 CFLAGS+= -mcpu=ultrasparc -mtune=ultrasparc
23 LIB= $(LIBPREF)avutil$(LIBSUF)
24 ifeq ($(BUILD_SHARED),yes)
25 LIBVERSION=$(LAVUMAJOR)
26 SLIBNAME= $(SLIBPREF)avutil$(SLIBSUF)
27 ifeq ($(CONFIG_DARWIN),yes)
28 SHFLAGS += -Wl,-install_name,$(libdir)/$(SLIBNAME),-current_version,$(SPPVERSION),-compatibility_version,$(SPPVERSION)
32 all: $(LIB) $(SLIBNAME)
40 ifeq ($(CONFIG_WIN32),yes)
41 $(CC) $(SHFLAGS) -Wl,--output-def,$(@:.dll=.def) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS)
42 -lib /machine:i386 /def:$(@:.dll=.def)
44 $(CC) $(SHFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS)
48 $(CC) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $<
51 $(CC) -MM $(CFLAGS) $^ 1>.depend
56 rm -f *.o *.d *~ .depend $(LIB) $(SLIBNAME) *$(SLIBSUF)
59 rm -f Makefile.bak .depend
62 ifeq ($(BUILD_SHARED),yes)
63 install: all install-headers
64 ifeq ($(CONFIG_WIN32),yes)
65 install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
68 install $(INSTALLSTRIP) -m 755 $(SLIBNAME) $(libdir)/libavutil-$(VERSION)$(SLIBSUF)
69 ln -sf libavutil-$(VERSION)$(SLIBSUF) $(libdir)/$(SLIBNAME)
76 installlib: all install-headers
77 install -m 644 $(LIB) "$(libdir)"
80 mkdir -p "$(prefix)/include/ffmpeg"
81 install -m 644 $(SRC_PATH)/libavutil/avutil.h \
82 $(SRC_PATH)/libavutil/common.h \
83 $(SRC_PATH)/libavutil/mathematics.h \
84 $(SRC_PATH)/libavutil/integer.h \
85 $(SRC_PATH)/libavutil/rational.h \
86 $(SRC_PATH)/libavutil/intfloat_readwrite.h \
87 "$(prefix)/include/ffmpeg"
88 install -d "$(libdir)/pkgconfig"
89 install -m 644 ../libavutil.pc "$(libdir)/pkgconfig"
92 # include dependency files if they exist
94 ifneq ($(wildcard .depend),)