Mercurial > libavformat.hg
comparison Makefile @ 248:bb28d1c1788a libavformat
correct DLL windows install
author | bellard |
---|---|
date | Mon, 15 Sep 2003 22:27:43 +0000 |
parents | 5b5ca8b953f8 |
children | 300c94a708f7 |
comparison
equal
deleted
inserted
replaced
247:697dae977e6d | 248:bb28d1c1788a |
---|---|
75 rm -f $@ | 75 rm -f $@ |
76 $(AR) rc $@ $(OBJS) $(PPOBJS) | 76 $(AR) rc $@ $(OBJS) $(PPOBJS) |
77 $(RANLIB) $@ | 77 $(RANLIB) $@ |
78 | 78 |
79 $(SLIB): $(OBJS) | 79 $(SLIB): $(OBJS) |
80 ifeq ($(TARGET_MINGW32),yes) | 80 ifeq ($(CONFIG_WIN32),yes) |
81 $(CC) $(SHFLAGS) -Wl,--output-def,$(@:.dll=.def) -o $@ $(OBJS) $(PPOBJS) $(EXTRALIBS) $(AMREXTRALIBS) $(VPATH)/../libavcodec/avcodec.dll | 81 $(CC) $(SHFLAGS) -Wl,--output-def,$(@:.dll=.def) -o $@ $(OBJS) $(PPOBJS) $(EXTRALIBS) $(AMREXTRALIBS) $(VPATH)/../libavcodec/avcodec.dll |
82 -lib /machine:i386 /def:$(@:.dll=.def) | 82 -lib /machine:i386 /def:$(@:.dll=.def) |
83 else | 83 else |
84 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(PPOBJS) $(EXTRALIBS) $(AMREXTRALIBS) | 84 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(PPOBJS) $(EXTRALIBS) $(AMREXTRALIBS) |
85 endif | 85 endif |
86 | 86 |
87 depend: $(SRCS) | 87 depend: $(SRCS) |
88 $(CC) -MM $(CFLAGS) $^ 1>.depend | 88 $(CC) -MM $(CFLAGS) $^ 1>.depend |
89 | 89 |
90 install: all | |
91 ifeq ($(BUILD_SHARED),yes) | 90 ifeq ($(BUILD_SHARED),yes) |
91 install: all install-headers | |
92 ifeq ($(CONFIG_WIN32),yes) | |
93 install -s -m 755 $(SLIB) "$(prefix)" | |
94 else | |
92 install -d $(prefix)/lib | 95 install -d $(prefix)/lib |
93 install -s -m 755 $(SLIB) $(prefix)/lib/libavformat-$(VERSION).so | 96 install -s -m 755 $(SLIB) $(prefix)/lib/libavformat-$(VERSION).so |
94 ln -sf libavformat-$(VERSION).so $(prefix)/lib/libavformat.so | 97 ln -sf libavformat-$(VERSION).so $(prefix)/lib/libavformat.so |
95 ldconfig || true | 98 ldconfig || true |
96 mkdir -p $(prefix)/include/ffmpeg | 99 endif |
97 install -m 644 $(VPATH)/avformat.h $(prefix)/include/ffmpeg/avformat.h | 100 else |
98 install -m 644 $(VPATH)/avio.h $(prefix)/include/ffmpeg/avio.h | 101 install: |
99 install -m 644 $(VPATH)/rtp.h $(prefix)/include/ffmpeg/rtp.h | |
100 install -m 644 $(VPATH)/rtsp.h $(prefix)/include/ffmpeg/rtsp.h | |
101 install -m 644 $(VPATH)/rtspcodes.h $(prefix)/include/ffmpeg/rtspcodes.h | |
102 endif | 102 endif |
103 | 103 |
104 installlib: all | 104 installlib: all install-headers |
105 install -m 644 $(LIB) $(prefix)/lib | 105 install -m 644 $(LIB) $(prefix)/lib |
106 mkdir -p $(prefix)/include/ffmpeg | 106 |
107 install-headers: | |
108 mkdir -p "$(prefix)/include/ffmpeg" | |
107 install -m 644 $(SRC_PATH)/libavformat/avformat.h $(SRC_PATH)/libavformat/avio.h \ | 109 install -m 644 $(SRC_PATH)/libavformat/avformat.h $(SRC_PATH)/libavformat/avio.h \ |
108 $(SRC_PATH)/libavformat/rtp.h $(SRC_PATH)/libavformat/rtsp.h \ | 110 $(SRC_PATH)/libavformat/rtp.h $(SRC_PATH)/libavformat/rtsp.h \ |
109 $(SRC_PATH)/libavformat/rtspcodes.h \ | 111 $(SRC_PATH)/libavformat/rtspcodes.h \ |
110 $(prefix)/include/ffmpeg | 112 "$(prefix)/include/ffmpeg" |
111 | 113 |
112 %.o: %.c | 114 %.o: %.c |
113 $(CC) $(CFLAGS) -c -o $@ $< | 115 $(CC) $(CFLAGS) -c -o $@ $< |
114 | 116 |
115 # BeOS: remove -Wall to get rid of all the "multibyte constant" warnings | 117 # BeOS: remove -Wall to get rid of all the "multibyte constant" warnings |