Mercurial > mplayer.hg
diff Makefile @ 1163:ac1341d4a2a7
According an idea, mplayer now can use external setuid root wrapper to do FIBMAP ioctl (requires root priv). Also, a serious bug was fixed in dvdauth.c made by some guy when mixing old and new style CSS API into dvdauth.c ;-)
author | lgb |
---|---|
date | Mon, 18 Jun 2001 23:56:19 +0000 |
parents | a8918dfbc180 |
children | d45ff719db7a |
line wrap: on
line diff
--- a/Makefile Mon Jun 18 22:11:04 2001 +0000 +++ b/Makefile Mon Jun 18 23:56:19 2001 +0000 @@ -9,6 +9,7 @@ PRG = mplayer PRG_HQ = mplayerHQ PRG_AVIP = aviparse +PRG_FIBMAP = fibmap_mplayer PRG_TV = tvision PRG_CFG = codec-cfg @@ -25,7 +26,7 @@ # .PHONY: all clean -all: $(PRG) +all: $(PRG) $(PRG_FIBMAP) # $(PRG_AVIP) .c.o: @@ -66,6 +67,9 @@ $(PRG): version.h mplayer.o $(OBJS) loader/libloader.a $(DS_DEP) libmpeg2/libmpeg2.a opendivx/libdecore.a $(COMMONLIBS) encore/libencore.a $(CC) $(CFLAGS) -o $(PRG) mplayer.o $(OBJS) $(XMM_LIBS) $(LIRC_LIBS) $(A_LIBS) -lm $(TERMCAP_LIB) -Lloader -lloader $(DS_LIB) -Llibmpeg2 -lmpeg2 -Lopendivx -ldecore -Llibao2 -lao2 $(VO_LIBS) $(CSS_LIB) -Lencore -lencore $(ARCH_LIBS) +$(PRG_FIBMAP): fibmap_mplayer.o + $(CC) -o $(PRG_FIBMAP) fibmap_mplayer.o + # $(PRG_HQ): depfile mplayerHQ.o $(OBJS) loader/libloader.a libmpeg2/libmpeg2.a opendivx/libdecore.a $(COMMONLIBS) encore/libencore.a # $(CC) $(CFLAGS) -o $(PRG_HQ) mplayerHQ.o $(OBJS) $(XMM_LIBS) $(LIRC_LIBS) $(A_LIBS) -lm $(TERMCAP_LIB) -Lloader -lloader -ldl -Llibmpeg2 -lmpeg2 -Lopendivx -ldecore $(VO_LIBS) -Lencore -lencore -lpthread @@ -78,16 +82,21 @@ $(PRG_CFG): version.h codec-cfg.c codec-cfg.h $(CC) $(CFLAGS) -g codec-cfg.c -o $(PRG_CFG) -DCODECS2HTML -install: $(PRG) +install: $(PRG) $(PRG_FIBMAP) install -D -m 755 -s $(PRG) $(BINDIR)/$(PRG) install -D -m 644 DOCS/mplayer.1 $(prefix)/man/man1/mplayer.1 + @echo "Following task requires root privs. If it fails don't panic" + @echo "however it means you can't use fibmap_mplayer." + @echo "Without this (or without running mplayer as root) you won't be" + @echo "able to play DVDs." + install -D -o root -g root -m 4755 -s $(PRG_FIBMAP) $(BINDIR)/$(PRG_FIBMAP) clean: rm -f *.o *~ $(OBJS) distclean: @for a in mp3lib libac3 libmpeg2 opendivx encore libvo libao2 loader loader/DirectShow drivers drivers/syncfb ; do $(MAKE) -C $$a distclean ; done - rm -f *~ $(PRG) $(PRG_HQ) $(PRG_AVIP) $(PRG_TV) $(OBJS) *.o *.a .depend + rm -f *~ $(PRG) $(PRG_FIBMAP) $(PRG_HQ) $(PRG_AVIP) $(PRG_TV) $(OBJS) *.o *.a .depend dep: depend