diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2003-09-15 22:27:43 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2003-09-15 22:27:43 +0000 |
commit | cb728d790287f570a97197b28beb47b2c0fde4f5 (patch) | |
tree | 89f12535b66db184086cea48335387c4c63eb910 | |
parent | 951bf3e681b3fe337e21abd0e5f80e974071f1a7 (diff) | |
download | ffmpeg-streaming-cb728d790287f570a97197b28beb47b2c0fde4f5.zip ffmpeg-streaming-cb728d790287f570a97197b28beb47b2c0fde4f5.tar.gz |
correct DLL windows install
Originally committed as revision 2279 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/Makefile | 19 | ||||
-rw-r--r-- | libavformat/Makefile | 24 |
2 files changed, 25 insertions, 18 deletions
diff --git a/libavcodec/Makefile b/libavcodec/Makefile index 358ef8d..ed56420 100644 --- a/libavcodec/Makefile +++ b/libavcodec/Makefile @@ -219,22 +219,27 @@ motion-test: motion_test.o $(LIB) fft-test: fft-test.o $(LIB) $(CC) -o $@ $^ -lm -install: all ifeq ($(BUILD_SHARED),yes) +install: all install-headers +ifeq ($(CONFIG_WIN32),yes) + install -s -m 755 $(SLIB) "$(prefix)" +else install -d $(prefix)/lib install -s -m 755 $(SLIB) $(prefix)/lib/libavcodec-$(VERSION).so ln -sf libavcodec-$(VERSION).so $(prefix)/lib/libavcodec.so ldconfig || true - mkdir -p $(prefix)/include/ffmpeg - install -m 644 $(VPATH)/avcodec.h $(prefix)/include/ffmpeg/avcodec.h - install -m 644 $(VPATH)/common.h $(prefix)/include/ffmpeg/common.h +endif +else +install: endif -installlib: all +installlib: all install-headers install -m 644 $(LIB) $(prefix)/lib - mkdir -p $(prefix)/include/ffmpeg + +install-headers: + mkdir -p "$(prefix)/include/ffmpeg" install -m 644 $(SRC_PATH)/libavcodec/avcodec.h $(SRC_PATH)/libavcodec/common.h \ - $(prefix)/include/ffmpeg + "$(prefix)/include/ffmpeg" # # include dependency files if they exist diff --git a/libavformat/Makefile b/libavformat/Makefile index e39e5b0..675be14 100644 --- a/libavformat/Makefile +++ b/libavformat/Makefile @@ -77,7 +77,7 @@ $(LIB): $(OBJS) $(PPOBJS) $(RANLIB) $@ $(SLIB): $(OBJS) -ifeq ($(TARGET_MINGW32),yes) +ifeq ($(CONFIG_WIN32),yes) $(CC) $(SHFLAGS) -Wl,--output-def,$(@:.dll=.def) -o $@ $(OBJS) $(PPOBJS) $(EXTRALIBS) $(AMREXTRALIBS) $(VPATH)/../libavcodec/avcodec.dll -lib /machine:i386 /def:$(@:.dll=.def) else @@ -87,27 +87,29 @@ endif depend: $(SRCS) $(CC) -MM $(CFLAGS) $^ 1>.depend -install: all ifeq ($(BUILD_SHARED),yes) +install: all install-headers +ifeq ($(CONFIG_WIN32),yes) + install -s -m 755 $(SLIB) "$(prefix)" +else 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 +else +install: endif -installlib: all +installlib: all install-headers install -m 644 $(LIB) $(prefix)/lib - mkdir -p $(prefix)/include/ffmpeg + +install-headers: + mkdir -p "$(prefix)/include/ffmpeg" install -m 644 $(SRC_PATH)/libavformat/avformat.h $(SRC_PATH)/libavformat/avio.h \ $(SRC_PATH)/libavformat/rtp.h $(SRC_PATH)/libavformat/rtsp.h \ $(SRC_PATH)/libavformat/rtspcodes.h \ - $(prefix)/include/ffmpeg + "$(prefix)/include/ffmpeg" %.o: %.c $(CC) $(CFLAGS) -c -o $@ $< |