From cb728d790287f570a97197b28beb47b2c0fde4f5 Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Mon, 15 Sep 2003 22:27:43 +0000 Subject: correct DLL windows install Originally committed as revision 2279 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/Makefile | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'libavcodec') 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 -- cgit v1.1