mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Separate library install into static and shared installation.
Originally committed as revision 4983 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
e60b4ced1f
commit
b12f8273fa
22
Makefile
22
Makefile
@ -108,10 +108,7 @@ documentation:
|
|||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
|
|
||||||
install: all install-progs install-headers install-man $(INSTALLVHOOK)
|
install: install-progs install-libs install-headers install-man $(INSTALLVHOOK)
|
||||||
$(MAKE) -C libavutil install
|
|
||||||
$(MAKE) -C libavcodec install
|
|
||||||
$(MAKE) -C libavformat install
|
|
||||||
|
|
||||||
install-progs: $(PROG)
|
install-progs: $(PROG)
|
||||||
install -d "$(bindir)"
|
install -d "$(bindir)"
|
||||||
@ -133,10 +130,19 @@ endif
|
|||||||
install-vhook:
|
install-vhook:
|
||||||
$(MAKE) -C vhook install
|
$(MAKE) -C vhook install
|
||||||
|
|
||||||
installlib:
|
install-libs:
|
||||||
$(MAKE) -C libavutil installlib
|
install -d $(libdir)
|
||||||
$(MAKE) -C libavcodec installlib
|
ifeq ($(BUILD_SHARED),yes)
|
||||||
$(MAKE) -C libavformat installlib
|
$(MAKE) -C libavutil install-lib-shared
|
||||||
|
$(MAKE) -C libavcodec install-lib-shared
|
||||||
|
$(MAKE) -C libavformat install-lib-shared
|
||||||
|
$(LDCONFIG) || true
|
||||||
|
endif
|
||||||
|
ifeq ($(BUILD_STATIC),yes)
|
||||||
|
$(MAKE) -C libavutil install-lib-static
|
||||||
|
$(MAKE) -C libavcodec install-lib-static
|
||||||
|
$(MAKE) -C libavformat install-lib-static
|
||||||
|
endif
|
||||||
|
|
||||||
install-headers:
|
install-headers:
|
||||||
$(MAKE) -C libavutil install-headers
|
$(MAKE) -C libavutil install-headers
|
||||||
|
1
configure
vendored
1
configure
vendored
@ -1415,6 +1415,7 @@ echo "LDCONFIG=$LDCONFIG" >> config.mak
|
|||||||
echo "FFSLDFLAGS=$FFSLDFLAGS" >> config.mak
|
echo "FFSLDFLAGS=$FFSLDFLAGS" >> config.mak
|
||||||
echo "SHFLAGS=$SHFLAGS" >> config.mak
|
echo "SHFLAGS=$SHFLAGS" >> config.mak
|
||||||
echo "LIBOBJFLAGS=$LIBOBJFLAGS" >> config.mak
|
echo "LIBOBJFLAGS=$LIBOBJFLAGS" >> config.mak
|
||||||
|
echo "BUILD_STATIC=$lstatic" >> config.mak
|
||||||
echo "BUILDSUF=$BUILDSUF" >> config.mak
|
echo "BUILDSUF=$BUILDSUF" >> config.mak
|
||||||
echo "LIBPREF=$LIBPREF" >> config.mak
|
echo "LIBPREF=$LIBPREF" >> config.mak
|
||||||
echo "LIBSUF=\${BUILDSUF}$LIBSUF" >> config.mak
|
echo "LIBSUF=\${BUILDSUF}$LIBSUF" >> config.mak
|
||||||
|
@ -502,28 +502,23 @@ motion-test: motion_test.o $(LIB)
|
|||||||
fft-test: fft-test.o $(LIB)
|
fft-test: fft-test.o $(LIB)
|
||||||
$(CC) -o $@ $^ $(LIBAVUTIL) -lm
|
$(CC) -o $@ $^ $(LIBAVUTIL) -lm
|
||||||
|
|
||||||
ifeq ($(BUILD_SHARED),yes)
|
|
||||||
install: all
|
install-lib-shared: $(SLIBNAME)
|
||||||
ifeq ($(CONFIG_WIN32),yes)
|
ifeq ($(CONFIG_WIN32),yes)
|
||||||
install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
|
install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
|
||||||
else
|
else
|
||||||
install -d $(libdir)
|
|
||||||
install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
|
install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
|
||||||
$(libdir)/$(SLIBNAME_WITH_VERSION)
|
$(libdir)/$(SLIBNAME_WITH_VERSION)
|
||||||
ln -sf $(SLIBNAME_WITH_VERSION) \
|
ln -sf $(SLIBNAME_WITH_VERSION) \
|
||||||
$(libdir)/$(SLIBNAME_WITH_MAJOR)
|
$(libdir)/$(SLIBNAME_WITH_MAJOR)
|
||||||
ln -sf $(SLIBNAME_WITH_VERSION) \
|
ln -sf $(SLIBNAME_WITH_VERSION) \
|
||||||
$(libdir)/$(SLIBNAME)
|
$(libdir)/$(SLIBNAME)
|
||||||
$(LDCONFIG) || true
|
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_PP),yes)
|
ifeq ($(CONFIG_PP),yes)
|
||||||
$(MAKE) -C libpostproc $@
|
$(MAKE) -C libpostproc $@
|
||||||
endif
|
endif
|
||||||
else
|
|
||||||
install:
|
|
||||||
endif
|
|
||||||
|
|
||||||
installlib: all
|
install-lib-static: $(LIB)
|
||||||
install -m 644 $(LIB) "$(libdir)"
|
install -m 644 $(LIB) "$(libdir)"
|
||||||
ifeq ($(CONFIG_PP),yes)
|
ifeq ($(CONFIG_PP),yes)
|
||||||
$(MAKE) -C libpostproc $@
|
$(MAKE) -C libpostproc $@
|
||||||
|
@ -48,23 +48,20 @@ $(LIB): $(OBJS)
|
|||||||
$(AR) rc $@ $(OBJS)
|
$(AR) rc $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
install: all
|
|
||||||
ifeq ($(BUILD_SHARED),yes)
|
install-lib-shared: $(SLIBNAME)
|
||||||
ifeq ($(CONFIG_WIN32),yes)
|
ifeq ($(CONFIG_WIN32),yes)
|
||||||
install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
|
install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
|
||||||
else
|
else
|
||||||
install -d $(libdir)
|
|
||||||
install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
|
install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
|
||||||
$(libdir)/$(SLIBNAME_WITH_VERSION)
|
$(libdir)/$(SLIBNAME_WITH_VERSION)
|
||||||
ln -sf $(SLIBNAME_WITH_VERSION) \
|
ln -sf $(SLIBNAME_WITH_VERSION) \
|
||||||
$(libdir)/$(SLIBNAME_WITH_MAJOR)
|
$(libdir)/$(SLIBNAME_WITH_MAJOR)
|
||||||
ln -sf $(SLIBNAME_WITH_VERSION) \
|
ln -sf $(SLIBNAME_WITH_VERSION) \
|
||||||
$(libdir)/$(SLIBNAME)
|
$(libdir)/$(SLIBNAME)
|
||||||
$(LDCONFIG) || true
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
installlib: all
|
install-lib-static: $(LIB)
|
||||||
install -m 644 $(LIB) "$(libdir)"
|
install -m 644 $(LIB) "$(libdir)"
|
||||||
|
|
||||||
install-headers:
|
install-headers:
|
||||||
|
@ -124,25 +124,20 @@ endif
|
|||||||
depend: $(SRCS)
|
depend: $(SRCS)
|
||||||
$(CC) -MM $(CFLAGS) $^ 1>.depend
|
$(CC) -MM $(CFLAGS) $^ 1>.depend
|
||||||
|
|
||||||
ifeq ($(BUILD_SHARED),yes)
|
|
||||||
install: all
|
install-lib-shared: $(SLIBNAME)
|
||||||
ifeq ($(CONFIG_WIN32),yes)
|
ifeq ($(CONFIG_WIN32),yes)
|
||||||
install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
|
install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
|
||||||
else
|
else
|
||||||
install -d $(libdir)
|
|
||||||
install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
|
install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
|
||||||
$(libdir)/$(SLIBNAME_WITH_VERSION)
|
$(libdir)/$(SLIBNAME_WITH_VERSION)
|
||||||
ln -sf $(SLIBNAME_WITH_VERSION) \
|
ln -sf $(SLIBNAME_WITH_VERSION) \
|
||||||
$(libdir)/$(SLIBNAME_WITH_MAJOR)
|
$(libdir)/$(SLIBNAME_WITH_MAJOR)
|
||||||
ln -sf $(SLIBNAME_WITH_VERSION) \
|
ln -sf $(SLIBNAME_WITH_VERSION) \
|
||||||
$(libdir)/$(SLIBNAME)
|
$(libdir)/$(SLIBNAME)
|
||||||
$(LDCONFIG) || true
|
|
||||||
endif
|
|
||||||
else
|
|
||||||
install:
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
installlib: all
|
install-lib-static: $(LIB)
|
||||||
install -m 644 $(LIB) "$(libdir)"
|
install -m 644 $(LIB) "$(libdir)"
|
||||||
|
|
||||||
install-headers:
|
install-headers:
|
||||||
|
@ -60,25 +60,19 @@ distclean: clean
|
|||||||
rm -f .depend
|
rm -f .depend
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(BUILD_SHARED),yes)
|
install-lib-shared: $(SLIBNAME)
|
||||||
install: all
|
|
||||||
ifeq ($(CONFIG_WIN32),yes)
|
ifeq ($(CONFIG_WIN32),yes)
|
||||||
install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
|
install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
|
||||||
else
|
else
|
||||||
install -d $(libdir)
|
|
||||||
install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
|
install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
|
||||||
$(libdir)/$(SLIBNAME_WITH_VERSION)
|
$(libdir)/$(SLIBNAME_WITH_VERSION)
|
||||||
ln -sf $(SLIBNAME_WITH_VERSION) \
|
ln -sf $(SLIBNAME_WITH_VERSION) \
|
||||||
$(libdir)/$(SLIBNAME_WITH_MAJOR)
|
$(libdir)/$(SLIBNAME_WITH_MAJOR)
|
||||||
ln -sf $(SLIBNAME_WITH_VERSION) \
|
ln -sf $(SLIBNAME_WITH_VERSION) \
|
||||||
$(libdir)/$(SLIBNAME)
|
$(libdir)/$(SLIBNAME)
|
||||||
$(LDCONFIG) || true
|
|
||||||
endif
|
|
||||||
else
|
|
||||||
install:
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
installlib: all
|
install-lib-static: $(LIB)
|
||||||
install -m 644 $(LIB) "$(libdir)"
|
install -m 644 $(LIB) "$(libdir)"
|
||||||
|
|
||||||
install-headers:
|
install-headers:
|
||||||
|
Loading…
Reference in New Issue
Block a user