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
24 ifeq ($(BUILD_SHARED),yes)
25 LIBVERSION=$(LAVUVERSION)
29 all: $(LIB) $(SLIBNAME)
37 ifeq ($(CONFIG_WIN32),yes)
38 $(CC) $(SHFLAGS) -Wl,--output-def,$(@:.dll=.def) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS)
39 -lib /machine:i386 /def:$(@:.dll=.def)
41 $(CC) $(SHFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS)
45 $(CC) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $<
48 $(CC) -MM $(CFLAGS) $^ 1>.depend
53 rm -f *.o *.d *~ .depend $(LIB) $(SLIBNAME) *$(SLIBSUF)
56 rm -f Makefile.bak .depend
59 ifeq ($(BUILD_SHARED),yes)
60 install: all install-headers
61 ifeq ($(CONFIG_WIN32),yes)
62 install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
65 install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
66 $(libdir)/$(SLIBNAME_WITH_VERSION)
67 ln -sf $(SLIBNAME_WITH_VERSION) \
68 $(libdir)/$(SLIBNAME_WITH_MAJOR)
69 ln -sf $(SLIBNAME_WITH_VERSION) \
77 installlib: all install-headers
78 install -m 644 $(LIB) "$(libdir)"
81 mkdir -p "$(prefix)/include/ffmpeg"
82 install -m 644 $(SRC_PATH)/libavutil/avutil.h \
83 $(SRC_PATH)/libavutil/common.h \
84 $(SRC_PATH)/libavutil/mathematics.h \
85 $(SRC_PATH)/libavutil/integer.h \
86 $(SRC_PATH)/libavutil/rational.h \
87 $(SRC_PATH)/libavutil/intfloat_readwrite.h \
88 "$(prefix)/include/ffmpeg"
89 install -d "$(libdir)/pkgconfig"
90 install -m 644 ../libavutil.pc "$(libdir)/pkgconfig"
93 # include dependency files if they exist
95 ifneq ($(wildcard .depend),)