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=$(LAVUVERSION)
28 SLIBNAME= $(SLIBPREF)avutil$(SLIBSUF)
31 all: $(LIB) $(SLIBNAME)
39 ifeq ($(CONFIG_WIN32),yes)
40 $(CC) $(SHFLAGS) -Wl,--output-def,$(@:.dll=.def) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS)
41 -lib /machine:i386 /def:$(@:.dll=.def)
43 $(CC) $(SHFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS)
47 $(CC) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $<
50 $(CC) -MM $(CFLAGS) $^ 1>.depend
55 rm -f *.o *.d *~ .depend $(LIB) $(SLIBNAME) *$(SLIBSUF)
58 rm -f Makefile.bak .depend
61 ifeq ($(BUILD_SHARED),yes)
62 install: all install-headers
63 ifeq ($(CONFIG_WIN32),yes)
64 install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
67 install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
68 $(libdir)/$(SLIBNAME_WITH_VERSION)
69 ln -sf $(SLIBNAME_WITH_VERSION) \
70 $(libdir)/$(SLIBNAME_WITH_MAJOR)
71 ln -sf $(SLIBNAME_WITH_VERSION) \
79 installlib: all install-headers
80 install -m 644 $(LIB) "$(libdir)"
83 mkdir -p "$(prefix)/include/ffmpeg"
84 install -m 644 $(SRC_PATH)/libavutil/avutil.h \
85 $(SRC_PATH)/libavutil/common.h \
86 $(SRC_PATH)/libavutil/mathematics.h \
87 $(SRC_PATH)/libavutil/integer.h \
88 $(SRC_PATH)/libavutil/rational.h \
89 $(SRC_PATH)/libavutil/intfloat_readwrite.h \
90 "$(prefix)/include/ffmpeg"
91 install -d "$(libdir)/pkgconfig"
92 install -m 644 ../libavutil.pc "$(libdir)/pkgconfig"
95 # include dependency files if they exist
97 ifneq ($(wildcard .depend),)