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
11 #FIXME: This should be in configure/config.mak
12 ifeq ($(CONFIG_WIN32),yes)
13 LDFLAGS=-Wl,--output-def,$(@:.dll=.def)
19 intfloat_readwrite.o \
22 ifeq ($(TARGET_ARCH_SPARC64),yes)
23 CFLAGS+= -mcpu=ultrasparc -mtune=ultrasparc
29 ifeq ($(BUILD_SHARED),yes)
30 LIBVERSION=$(LAVUVERSION)
34 all: $(LIB) $(SLIBNAME)
42 $(CC) $(SHFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS)
43 ifeq ($(CONFIG_WIN32),yes)
44 -lib /machine:i386 /def:$(@:.dll=.def)
48 $(CC) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $<
51 $(CC) -MM $(CFLAGS) $^ 1>.depend
56 rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll
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) \
69 $(libdir)/$(SLIBNAME_WITH_VERSION)
70 ln -sf $(SLIBNAME_WITH_VERSION) \
71 $(libdir)/$(SLIBNAME_WITH_MAJOR)
72 ln -sf $(SLIBNAME_WITH_VERSION) \
80 installlib: all install-headers
81 install -m 644 $(LIB) "$(libdir)"
84 mkdir -p "$(prefix)/include/ffmpeg"
85 install -m 644 $(SRC_PATH)/libavutil/avutil.h \
86 $(SRC_PATH)/libavutil/common.h \
87 $(SRC_PATH)/libavutil/mathematics.h \
88 $(SRC_PATH)/libavutil/integer.h \
89 $(SRC_PATH)/libavutil/rational.h \
90 $(SRC_PATH)/libavutil/intfloat_readwrite.h \
91 "$(prefix)/include/ffmpeg"
92 install -d "$(libdir)/pkgconfig"
93 install -m 644 ../libavutil.pc "$(libdir)/pkgconfig"
96 # include dependency files if they exist
98 ifneq ($(wildcard .depend),)