Mercurial > mplayer.hg
changeset 5815:268cfcb03e86
handles DVDKIT_SHARED, compile and install libmpdvdkit.so
author | arpi |
---|---|
date | Wed, 24 Apr 2002 20:08:06 +0000 |
parents | 16186e365197 |
children | 1c1aea3f0362 |
files | Makefile |
diffstat | 1 files changed, 13 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Wed Apr 24 20:00:13 2002 +0000 +++ b/Makefile Wed Apr 24 20:08:06 2002 +0000 @@ -102,12 +102,19 @@ COMMON_DEPS += libvo/libvo.a endif ifeq ($(DVDKIT),yes) +ifeq ($(DVDKIT_SHARED),yes) +COMMON_DEPS += libmpdvdkit/libmpdvdkit.so +else COMMON_DEPS += libmpdvdkit/libmpdvdkit.a endif +endif libmpdvdkit/libmpdvdkit.a: $(MAKE) -C libmpdvdkit +libmpdvdkit/libmpdvdkit.so: + $(MAKE) -C libmpdvdkit libmpdvdkit.so + loader/libloader.a: $(MAKE) -C loader @@ -234,7 +241,12 @@ @if test -f $(CONFDIR)/codecs.conf.old ; then mv -f $(CONFDIR)/codecs.conf.old $(CONFDIR)/codecs.conf.older ; fi @if test -f $(CONFDIR)/codecs.conf ; then mv -f $(CONFDIR)/codecs.conf $(CONFDIR)/codecs.conf.old ; fi $(INSTALL) -c -m 644 etc/codecs.conf $(CONFDIR)/codecs.conf - +ifeq ($(DVDKIT),yes) +ifeq ($(DVDKIT_SHARED),yes) + if test ! -d $(LIBDIR) ; then mkdir -p $(LIBDIR) ; fi + $(INSTALL) -m 755 -s libmpdvdkit/libmpdvdkit.so $(LIBDIR)/libmpdvdkit.so +endif +endif ifeq ($(CSS_USE),yes) @echo "Following task requires root privs. If it fails don't panic" @echo "however it means you can't use fibmap_mplayer." @@ -264,13 +276,6 @@ $(CC) -MM $(CFLAGS) mplayer.c mencoder.c $(SRCS_MPLAYER) $(SRCS_MENCODER) 1>.depend @for a in $(PARTS); do $(MAKE) -C $$a dep; done -# ./configure must be run if it changed in CVS -config.h: configure - @echo "############################################################" - @echo "####### Please run ./configure again - it's changed! #######" - @echo "############################################################" - @exit 1 - # do not rebuild after cvs commits if .developer file is present! # rebuild at every config.h/config.mak change: