changeset 1470:dc1aebe51742 libavcodec

correct DLL windows install
author bellard
date Mon, 15 Sep 2003 22:27:43 +0000
parents 43ceb6e34b06
children dcb784544ec6
files Makefile
diffstat 1 files changed, 12 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Mon Sep 15 19:18:28 2003 +0000
+++ b/Makefile	Mon Sep 15 22:27:43 2003 +0000
@@ -219,22 +219,27 @@
 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