Mercurial > mplayer.hg
comparison Makefile @ 2093:d2bed9c43e3b
compile and install fibmap_mplayer ofly if libcss is used. gmplayer link is created
author | arpi |
---|---|
date | Fri, 05 Oct 2001 13:39:43 +0000 |
parents | d7920c8257e2 |
children | d157f31719f6 |
comparison
equal
deleted
inserted
replaced
2092:7ef08e76e77a | 2093:d2bed9c43e3b |
---|---|
32 SRCS += dll_init.c | 32 SRCS += dll_init.c |
33 endif | 33 endif |
34 LOADER_DEP = $(W32_DEP) $(DS_DEP) | 34 LOADER_DEP = $(W32_DEP) $(DS_DEP) |
35 LIB_LOADER = $(W32_LIB) $(DS_LIB) | 35 LIB_LOADER = $(W32_LIB) $(DS_LIB) |
36 | 36 |
37 ALL_PRG = $(PRG) | |
38 ifeq ($(CSS_USE),yes) | |
39 ALL_PRG += $(PRG_FIBMAP) | |
40 endif | |
37 | 41 |
38 .SUFFIXES: .c .o | 42 .SUFFIXES: .c .o |
39 | 43 |
40 # .PHONY: all clean | 44 # .PHONY: all clean |
41 | 45 |
42 all: $(PRG) $(PRG_FIBMAP) | 46 all: $(ALL_PRG) |
47 | |
43 # $(PRG_AVIP) | 48 # $(PRG_AVIP) |
44 | 49 |
45 .c.o: | 50 .c.o: |
46 $(CC) -c $(CFLAGS) -o $@ $< | 51 $(CC) -c $(CFLAGS) -o $@ $< |
47 | 52 |
110 $(MPLAYER_DEP): version.h | 115 $(MPLAYER_DEP): version.h |
111 | 116 |
112 $(PRG_CFG): version.h codec-cfg.c codec-cfg.h | 117 $(PRG_CFG): version.h codec-cfg.c codec-cfg.h |
113 $(CC) $(CFLAGS) -g codec-cfg.c -o $(PRG_CFG) -DCODECS2HTML | 118 $(CC) $(CFLAGS) -g codec-cfg.c -o $(PRG_CFG) -DCODECS2HTML |
114 | 119 |
115 install: $(PRG) $(PRG_FIBMAP) | 120 install: $(ALL_PRG) |
116 if [ ! -e $(BINDIR) ]; then \ | 121 if [ ! -e $(BINDIR) ]; then \ |
117 mkdir -p $(BINDIR); \ | 122 mkdir -p $(BINDIR); \ |
118 fi | 123 fi |
119 install -m 755 -s $(PRG) $(BINDIR)/$(PRG) | 124 install -m 755 -s $(PRG) $(BINDIR)/$(PRG) |
125 ifeq ($(GUI),yes) | |
126 -ln -s $(BINDIR)/$(PRG) $(BINDIR)/gmplayer | |
127 endif | |
120 if [ ! -e $(prefix)/man/man1 ]; then \ | 128 if [ ! -e $(prefix)/man/man1 ]; then \ |
121 mkdir -p $(prefix)/man/man1; \ | 129 mkdir -p $(prefix)/man/man1; \ |
122 fi | 130 fi |
123 install -c -m 644 DOCS/mplayer.1 $(prefix)/man/man1/mplayer.1 | 131 install -c -m 644 DOCS/mplayer.1 $(prefix)/man/man1/mplayer.1 |
132 ifeq ($(CSS_USE),yes) | |
124 @echo "Following task requires root privs. If it fails don't panic" | 133 @echo "Following task requires root privs. If it fails don't panic" |
125 @echo "however it means you can't use fibmap_mplayer." | 134 @echo "however it means you can't use fibmap_mplayer." |
126 @echo "Without this (or without running mplayer as root) you won't be" | 135 @echo "Without this (or without running mplayer as root) you won't be" |
127 @echo "able to play encrypted DVDs." | 136 @echo "able to play encrypted DVDs." |
128 -install -o 0 -g 0 -m 4755 -s $(PRG_FIBMAP) $(BINDIR)/$(PRG_FIBMAP) | 137 -install -o 0 -g 0 -m 4755 -s $(PRG_FIBMAP) $(BINDIR)/$(PRG_FIBMAP) |
138 endif | |
129 | 139 |
130 clean: | 140 clean: |
131 rm -f *.o *~ $(OBJS) | 141 rm -f *.o *~ $(OBJS) |
132 | 142 |
133 distclean: | 143 distclean: |