Mercurial > libavformat.hg
comparison Makefile @ 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 | 99fbacf0f764 |
children | fe5fc579b4de |
comparison
equal
deleted
inserted
replaced
166:2271829b6f7e | 167:e284cddf0509 |
---|---|
61 ifeq ($(CONFIG_VORBIS),yes) | 61 ifeq ($(CONFIG_VORBIS),yes) |
62 OBJS+= ogg.o | 62 OBJS+= ogg.o |
63 endif | 63 endif |
64 | 64 |
65 LIB= $(LIBPREF)avformat$(LIBSUF) | 65 LIB= $(LIBPREF)avformat$(LIBSUF) |
66 ifeq ($(BUILD_SHARED),yes) | |
67 SLIB= $(SLIBPREF)avformat$(SLIBSUF) | |
68 endif | |
66 | 69 |
67 SRCS := $(OBJS:.o=.c) $(PPOBJS:.o=.cpp) | 70 SRCS := $(OBJS:.o=.c) $(PPOBJS:.o=.cpp) |
68 | 71 |
69 all: $(LIB) | 72 all: $(LIB) $(SLIB) |
70 | 73 |
71 $(LIB): $(OBJS) $(PPOBJS) | 74 $(LIB): $(OBJS) $(PPOBJS) |
72 rm -f $@ | 75 rm -f $@ |
73 $(AR) rc $@ $(OBJS) $(PPOBJS) | 76 $(AR) rc $@ $(OBJS) $(PPOBJS) |
74 $(RANLIB) $@ | 77 $(RANLIB) $@ |
75 | 78 |
79 $(SLIB): $(OBJS) | |
80 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS) | |
81 | |
76 depend: $(SRCS) | 82 depend: $(SRCS) |
77 $(CC) -MM $(CFLAGS) $^ 1>.depend | 83 $(CC) -MM $(CFLAGS) $^ 1>.depend |
84 | |
85 install: all | |
86 ifeq ($(BUILD_SHARED),yes) | |
87 install -d $(prefix)/lib | |
88 install -s -m 755 $(SLIB) $(prefix)/lib/libavformat-$(VERSION).so | |
89 ln -sf libavformat-$(VERSION).so $(prefix)/lib/libavformat.so | |
90 ldconfig || true | |
91 mkdir -p $(prefix)/include/ffmpeg | |
92 install -m 644 $(VPATH)/avformat.h $(prefix)/include/ffmpeg/avformat.h | |
93 install -m 644 $(VPATH)/avio.h $(prefix)/include/ffmpeg/avio.h | |
94 install -m 644 $(VPATH)/rtp.h $(prefix)/include/ffmpeg/rtp.h | |
95 install -m 644 $(VPATH)/rtsp.h $(prefix)/include/ffmpeg/rtsp.h | |
96 install -m 644 $(VPATH)/rtspcodes.h $(prefix)/include/ffmpeg/rtspcodes.h | |
97 endif | |
78 | 98 |
79 installlib: all | 99 installlib: all |
80 install -m 644 $(LIB) $(prefix)/lib | 100 install -m 644 $(LIB) $(prefix)/lib |
81 mkdir -p $(prefix)/include/ffmpeg | 101 mkdir -p $(prefix)/include/ffmpeg |
82 install -m 644 $(SRC_PATH)/libavformat/avformat.h $(SRC_PATH)/libavformat/avio.h \ | 102 install -m 644 $(SRC_PATH)/libavformat/avformat.h $(SRC_PATH)/libavformat/avio.h \ |