comparison Makefile @ 6240:aed96273ea29

avoids stripping the binary at install if debugging or profiling is enabled (original patch by Balazs Tibor <tibcu@sch.bme.hu> - edited for simplicity)
author pl
date Thu, 30 May 2002 14:26:35 +0000
parents 0398cb49fe5e
children f0b933918a22
comparison
equal deleted inserted replaced
6239:22cf38f95151 6240:aed96273ea29
8 8
9 PRG = mplayer 9 PRG = mplayer
10 PRG_FIBMAP = fibmap_mplayer 10 PRG_FIBMAP = fibmap_mplayer
11 PRG_CFG = codec-cfg 11 PRG_CFG = codec-cfg
12 PRG_MENCODER = mencoder 12 PRG_MENCODER = mencoder
13
14 # Do not strip the binaries at installation
15 ifeq ($(STRIPBINARIES),yes)
16 INSTALLSTRIP = -s
17 endif
18
13 19
14 # these subdirectories required installation due binaries within them 20 # these subdirectories required installation due binaries within them
15 ifeq ($(VIDIX),yes) 21 ifeq ($(VIDIX),yes)
16 SUBDIRS += libdha vidix 22 SUBDIRS += libdha vidix
17 DO_MAKE = @ for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done 23 DO_MAKE = @ for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
219 install: $(ALL_PRG) 225 install: $(ALL_PRG)
220 ifeq ($(VIDIX),yes) 226 ifeq ($(VIDIX),yes)
221 $(DO_MAKE) 227 $(DO_MAKE)
222 endif 228 endif
223 if test ! -d $(BINDIR) ; then mkdir -p $(BINDIR) ; fi 229 if test ! -d $(BINDIR) ; then mkdir -p $(BINDIR) ; fi
224 $(INSTALL) -m 755 -s $(PRG) $(BINDIR)/$(PRG) 230 $(INSTALL) -m 755 $(INSTALLSTRIP) $(PRG) $(BINDIR)/$(PRG)
225 ifeq ($(GUI),yes) 231 ifeq ($(GUI),yes)
226 -ln -sf $(PRG) $(BINDIR)/gmplayer 232 -ln -sf $(PRG) $(BINDIR)/gmplayer
227 endif 233 endif
228 if test ! -d $(MANDIR)/man1 ; then mkdir -p $(MANDIR)/man1; fi 234 if test ! -d $(MANDIR)/man1 ; then mkdir -p $(MANDIR)/man1; fi
229 $(INSTALL) -c -m 644 DOCS/mplayer.1 $(MANDIR)/man1/mplayer.1 235 $(INSTALL) -c -m 644 DOCS/mplayer.1 $(MANDIR)/man1/mplayer.1
230 ifeq ($(MENCODER),yes) 236 ifeq ($(MENCODER),yes)
231 $(INSTALL) -m 755 -s $(PRG_MENCODER) $(BINDIR)/$(PRG_MENCODER) 237 $(INSTALL) -m 755 $(INSTALLSTRIP) $(PRG_MENCODER) $(BINDIR)/$(PRG_MENCODER)
232 -ln -sf mplayer.1 $(MANDIR)/man1/mencoder.1 238 -ln -sf mplayer.1 $(MANDIR)/man1/mencoder.1
233 endif 239 endif
234 @if test ! -d $(DATADIR) ; then mkdir -p $(DATADIR) ; fi 240 @if test ! -d $(DATADIR) ; then mkdir -p $(DATADIR) ; fi
235 @if test ! -d $(DATADIR)/font ; then mkdir -p $(DATADIR)/font ; fi 241 @if test ! -d $(DATADIR)/font ; then mkdir -p $(DATADIR)/font ; fi
236 @if test ! -f $(DATADIR)/font/font.desc ; then \ 242 @if test ! -f $(DATADIR)/font/font.desc ; then \
247 @if test -f $(CONFDIR)/codecs.conf ; then mv -f $(CONFDIR)/codecs.conf $(CONFDIR)/codecs.conf.old ; fi 253 @if test -f $(CONFDIR)/codecs.conf ; then mv -f $(CONFDIR)/codecs.conf $(CONFDIR)/codecs.conf.old ; fi
248 $(INSTALL) -c -m 644 etc/codecs.conf $(CONFDIR)/codecs.conf 254 $(INSTALL) -c -m 644 etc/codecs.conf $(CONFDIR)/codecs.conf
249 ifeq ($(DVDKIT),yes) 255 ifeq ($(DVDKIT),yes)
250 ifeq ($(DVDKIT_SHARED),yes) 256 ifeq ($(DVDKIT_SHARED),yes)
251 if test ! -d $(LIBDIR) ; then mkdir -p $(LIBDIR) ; fi 257 if test ! -d $(LIBDIR) ; then mkdir -p $(LIBDIR) ; fi
252 $(INSTALL) -m 755 -s libmpdvdkit/libmpdvdkit.so $(LIBDIR)/libmpdvdkit.so 258 $(INSTALL) -m 755 $(INSTALLSTRIP) libmpdvdkit/libmpdvdkit.so $(LIBDIR)/libmpdvdkit.so
253 endif 259 endif
254 endif 260 endif
255 ifeq ($(CSS_USE),yes) 261 ifeq ($(CSS_USE),yes)
256 @echo "Following task requires root privs. If it fails don't panic" 262 @echo "Following task requires root privs. If it fails don't panic"
257 @echo "however it means you can't use fibmap_mplayer." 263 @echo "however it means you can't use fibmap_mplayer."
258 @echo "Without this (or without running mplayer as root) you won't be" 264 @echo "Without this (or without running mplayer as root) you won't be"
259 @echo "able to play encrypted DVDs." 265 @echo "able to play encrypted DVDs."
260 -$(INSTALL) -o 0 -g 0 -m 4755 -s $(PRG_FIBMAP) $(BINDIR)/$(PRG_FIBMAP) 266 -$(INSTALL) -o 0 -g 0 -m 4755 $(INSTALLSTRIP) $(PRG_FIBMAP) $(BINDIR)/$(PRG_FIBMAP)
261 endif 267 endif
262 268
263 uninstall: 269 uninstall:
264 -rm -f $(BINDIR)/$(PRG) $(BINDIR)/gmplayer $(MANDIR)/man1/mplayer.1 270 -rm -f $(BINDIR)/$(PRG) $(BINDIR)/gmplayer $(MANDIR)/man1/mplayer.1
265 -rm -f $(BINDIR)/$(PRG_FIBMAP) 271 -rm -f $(BINDIR)/$(PRG_FIBMAP)