Mercurial > mplayer.hg
comparison Makefile @ 5815:268cfcb03e86
handles DVDKIT_SHARED, compile and install libmpdvdkit.so
author | arpi |
---|---|
date | Wed, 24 Apr 2002 20:08:06 +0000 |
parents | 578a48174545 |
children | 4e3cf9473628 |
comparison
equal
deleted
inserted
replaced
5814:16186e365197 | 5815:268cfcb03e86 |
---|---|
100 COMMON_DEPS += libvo2/libvo2.a | 100 COMMON_DEPS += libvo2/libvo2.a |
101 else | 101 else |
102 COMMON_DEPS += libvo/libvo.a | 102 COMMON_DEPS += libvo/libvo.a |
103 endif | 103 endif |
104 ifeq ($(DVDKIT),yes) | 104 ifeq ($(DVDKIT),yes) |
105 ifeq ($(DVDKIT_SHARED),yes) | |
106 COMMON_DEPS += libmpdvdkit/libmpdvdkit.so | |
107 else | |
105 COMMON_DEPS += libmpdvdkit/libmpdvdkit.a | 108 COMMON_DEPS += libmpdvdkit/libmpdvdkit.a |
109 endif | |
106 endif | 110 endif |
107 | 111 |
108 libmpdvdkit/libmpdvdkit.a: | 112 libmpdvdkit/libmpdvdkit.a: |
109 $(MAKE) -C libmpdvdkit | 113 $(MAKE) -C libmpdvdkit |
114 | |
115 libmpdvdkit/libmpdvdkit.so: | |
116 $(MAKE) -C libmpdvdkit libmpdvdkit.so | |
110 | 117 |
111 loader/libloader.a: | 118 loader/libloader.a: |
112 $(MAKE) -C loader | 119 $(MAKE) -C loader |
113 | 120 |
114 libfame/libfame.a: | 121 libfame/libfame.a: |
232 endif | 239 endif |
233 @if test ! -d $(CONFDIR) ; then mkdir -p $(CONFDIR) ; fi | 240 @if test ! -d $(CONFDIR) ; then mkdir -p $(CONFDIR) ; fi |
234 @if test -f $(CONFDIR)/codecs.conf.old ; then mv -f $(CONFDIR)/codecs.conf.old $(CONFDIR)/codecs.conf.older ; fi | 241 @if test -f $(CONFDIR)/codecs.conf.old ; then mv -f $(CONFDIR)/codecs.conf.old $(CONFDIR)/codecs.conf.older ; fi |
235 @if test -f $(CONFDIR)/codecs.conf ; then mv -f $(CONFDIR)/codecs.conf $(CONFDIR)/codecs.conf.old ; fi | 242 @if test -f $(CONFDIR)/codecs.conf ; then mv -f $(CONFDIR)/codecs.conf $(CONFDIR)/codecs.conf.old ; fi |
236 $(INSTALL) -c -m 644 etc/codecs.conf $(CONFDIR)/codecs.conf | 243 $(INSTALL) -c -m 644 etc/codecs.conf $(CONFDIR)/codecs.conf |
237 | 244 ifeq ($(DVDKIT),yes) |
245 ifeq ($(DVDKIT_SHARED),yes) | |
246 if test ! -d $(LIBDIR) ; then mkdir -p $(LIBDIR) ; fi | |
247 $(INSTALL) -m 755 -s libmpdvdkit/libmpdvdkit.so $(LIBDIR)/libmpdvdkit.so | |
248 endif | |
249 endif | |
238 ifeq ($(CSS_USE),yes) | 250 ifeq ($(CSS_USE),yes) |
239 @echo "Following task requires root privs. If it fails don't panic" | 251 @echo "Following task requires root privs. If it fails don't panic" |
240 @echo "however it means you can't use fibmap_mplayer." | 252 @echo "however it means you can't use fibmap_mplayer." |
241 @echo "Without this (or without running mplayer as root) you won't be" | 253 @echo "Without this (or without running mplayer as root) you won't be" |
242 @echo "able to play encrypted DVDs." | 254 @echo "able to play encrypted DVDs." |
262 depend: | 274 depend: |
263 ./version.sh `$(CC) --version` | 275 ./version.sh `$(CC) --version` |
264 $(CC) -MM $(CFLAGS) mplayer.c mencoder.c $(SRCS_MPLAYER) $(SRCS_MENCODER) 1>.depend | 276 $(CC) -MM $(CFLAGS) mplayer.c mencoder.c $(SRCS_MPLAYER) $(SRCS_MENCODER) 1>.depend |
265 @for a in $(PARTS); do $(MAKE) -C $$a dep; done | 277 @for a in $(PARTS); do $(MAKE) -C $$a dep; done |
266 | 278 |
267 # ./configure must be run if it changed in CVS | |
268 config.h: configure | |
269 @echo "############################################################" | |
270 @echo "####### Please run ./configure again - it's changed! #######" | |
271 @echo "############################################################" | |
272 @exit 1 | |
273 | |
274 # do not rebuild after cvs commits if .developer file is present! | 279 # do not rebuild after cvs commits if .developer file is present! |
275 | 280 |
276 # rebuild at every config.h/config.mak change: | 281 # rebuild at every config.h/config.mak change: |
277 version.h: | 282 version.h: |
278 ./version.sh `$(CC) --version` | 283 ./version.sh `$(CC) --version` |