Skip to content

Commit

Permalink
Split debugging symbols in separate files
Browse files Browse the repository at this point in the history
  • Loading branch information
andoma committed May 3, 2011
1 parent 1f84a09 commit 844deeb
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions support/posix.mk
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@

prefix ?= $(INSTALLPREFIX)
INSTBIN= $(prefix)/bin
INSTMAN= $(prefix)/share/man1
INSTBIN= ${DESTDIR}${INSTALLPREFIX}/bin
INSTMAN= ${DESTDIR}${INSTALLPREFIX}/share/man1
INSTDBG= ${DESTDIR}/usr/lib/debug/${INSTALLPREFIX}/bin
MAN=man/tvheadend.1

install: ${PROG} ${MAN}
mkdir -p ${DESTDIR}$(INSTBIN)
install -s ${PROG} ${DESTDIR}$(INSTBIN)
mkdir -p ${INSTBIN}
mkdir -p ${INSTDBG}
install -T ${PROG} ${INSTBIN}/tvheadend

mkdir -p ${DESTDIR}$(INSTMAN)
install ${MAN} ${DESTDIR}$(INSTMAN)
objcopy --only-keep-debug ${INSTBIN}/tvheadend ${INSTDBG}/tvheadend.debug
strip -g ${INSTBIN}/tvheadend

objcopy --add-gnu-debuglink=${INSTDBG}/tvheadend.debug ${INSTBIN}/tvheadend


mkdir -p ${INSTMAN}
install ${MAN} ${INSTMAN}

uninstall:
rm -f ${DESTDIR}$(INSTBIN)/${PROG}
rm -f ${DESTDIR}$(INSTMAN)/${MAN}
rm -f ${INSTBIN}/tvheadend
rm -f ${INSTDBG}/tvheadend.debug
rm -f ${INSTMAN}/tvheadend.1

0 comments on commit 844deeb

Please sign in to comment.