Mercurial > libavformat.hg
changeset 167:e284cddf0509 libavformat
Shared library for libavformat support patch by (Tim Allen <tim at proximity dot com dot au>)
author | michaelni |
---|---|
date | Fri, 11 Jul 2003 21:33:27 +0000 |
parents | 2271829b6f7e |
children | 808dabf5a88e |
files | Makefile |
diffstat | 1 files changed, 21 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Thu Jul 10 23:18:09 2003 +0000 +++ b/Makefile Fri Jul 11 21:33:27 2003 +0000 @@ -63,19 +63,39 @@ endif LIB= $(LIBPREF)avformat$(LIBSUF) +ifeq ($(BUILD_SHARED),yes) +SLIB= $(SLIBPREF)avformat$(SLIBSUF) +endif SRCS := $(OBJS:.o=.c) $(PPOBJS:.o=.cpp) -all: $(LIB) +all: $(LIB) $(SLIB) $(LIB): $(OBJS) $(PPOBJS) rm -f $@ $(AR) rc $@ $(OBJS) $(PPOBJS) $(RANLIB) $@ +$(SLIB): $(OBJS) + $(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS) + depend: $(SRCS) $(CC) -MM $(CFLAGS) $^ 1>.depend +install: all +ifeq ($(BUILD_SHARED),yes) + install -d $(prefix)/lib + install -s -m 755 $(SLIB) $(prefix)/lib/libavformat-$(VERSION).so + ln -sf libavformat-$(VERSION).so $(prefix)/lib/libavformat.so + ldconfig || true + mkdir -p $(prefix)/include/ffmpeg + install -m 644 $(VPATH)/avformat.h $(prefix)/include/ffmpeg/avformat.h + install -m 644 $(VPATH)/avio.h $(prefix)/include/ffmpeg/avio.h + install -m 644 $(VPATH)/rtp.h $(prefix)/include/ffmpeg/rtp.h + install -m 644 $(VPATH)/rtsp.h $(prefix)/include/ffmpeg/rtsp.h + install -m 644 $(VPATH)/rtspcodes.h $(prefix)/include/ffmpeg/rtspcodes.h +endif + installlib: all install -m 644 $(LIB) $(prefix)/lib mkdir -p $(prefix)/include/ffmpeg