summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-05 13:39:43 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-05 13:39:43 +0000
commit423e6107f2b6cddd8bf24a700ca133d625bc6037 (patch)
tree8e2b4886ec435a07a065573a00c0f19135625fa3 /Makefile
parentfab6ae366cce0f362c56dab08d356c781118e5c3 (diff)
downloadmpv-423e6107f2b6cddd8bf24a700ca133d625bc6037.tar.bz2
mpv-423e6107f2b6cddd8bf24a700ca133d625bc6037.tar.xz
compile and install fibmap_mplayer ofly if libcss is used. gmplayer link is created
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2094 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2a12ef8fbd..09d3d296f7 100644
--- a/Makefile
+++ b/Makefile
@@ -34,12 +34,17 @@ endif
LOADER_DEP = $(W32_DEP) $(DS_DEP)
LIB_LOADER = $(W32_LIB) $(DS_LIB)
+ALL_PRG = $(PRG)
+ifeq ($(CSS_USE),yes)
+ALL_PRG += $(PRG_FIBMAP)
+endif
.SUFFIXES: .c .o
# .PHONY: all clean
-all: $(PRG) $(PRG_FIBMAP)
+all: $(ALL_PRG)
+
# $(PRG_AVIP)
.c.o:
@@ -112,20 +117,25 @@ $(MPLAYER_DEP): version.h
$(PRG_CFG): version.h codec-cfg.c codec-cfg.h
$(CC) $(CFLAGS) -g codec-cfg.c -o $(PRG_CFG) -DCODECS2HTML
-install: $(PRG) $(PRG_FIBMAP)
+install: $(ALL_PRG)
if [ ! -e $(BINDIR) ]; then \
mkdir -p $(BINDIR); \
fi
install -m 755 -s $(PRG) $(BINDIR)/$(PRG)
+ifeq ($(GUI),yes)
+ -ln -s $(BINDIR)/$(PRG) $(BINDIR)/gmplayer
+endif
if [ ! -e $(prefix)/man/man1 ]; then \
mkdir -p $(prefix)/man/man1; \
fi
install -c -m 644 DOCS/mplayer.1 $(prefix)/man/man1/mplayer.1
+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."
@echo "Without this (or without running mplayer as root) you won't be"
@echo "able to play encrypted DVDs."
-install -o 0 -g 0 -m 4755 -s $(PRG_FIBMAP) $(BINDIR)/$(PRG_FIBMAP)
+endif
clean:
rm -f *.o *~ $(OBJS)