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 SLIB= $(SLIBPREF)avutil$(SLIBSUF)
36 ifeq ($(CONFIG_WIN32),yes)
37 $(CC) $(SHFLAGS) -Wl,--output-def,$(@:.dll=.def) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS)
38 -lib /machine:i386 /def:$(@:.dll=.def)
40 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS) $(LDFLAGS)
44 $(CC) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $<
47 $(CC) -MM $(CFLAGS) $^ 1>.depend
52 rm -f *.o *.d *~ .depend $(LIB) $(SLIB) *.so
55 rm -f Makefile.bak .depend
58 ifeq ($(BUILD_SHARED),yes)
59 install: all install-headers
60 ifeq ($(CONFIG_WIN32),yes)
61 install $(INSTALLSTRIP) -m 755 $(SLIB) "$(prefix)"
64 install $(INSTALLSTRIP) -m 755 $(SLIB) $(libdir)/libavutil-$(VERSION).so
65 ln -sf libavutil-$(VERSION).so $(libdir)/libavutil.so
72 installlib: all install-headers
73 install -m 644 $(LIB) "$(libdir)"
76 mkdir -p "$(prefix)/include/ffmpeg"
77 install -m 644 $(SRC_PATH)/libavutil/avutil.h \
78 $(SRC_PATH)/libavutil/common.h \
79 $(SRC_PATH)/libavutil/mathematics.h \
80 $(SRC_PATH)/libavutil/integer.h \
81 $(SRC_PATH)/libavutil/rational.h \
82 $(SRC_PATH)/libavutil/intfloat_readwrite.h \
83 "$(prefix)/include/ffmpeg"
84 # install -d $(libdir)/pkgconfig
85 # install -m 644 ../libavutil.pc $(libdir)/pkgconfig
88 # include dependency files if they exist
90 ifneq ($(wildcard .depend),)