diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2015-07-29 18:45:38 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2015-07-29 18:45:38 +0000 |
| commit | 5ea9e83e2fd22c8a26b9acd2f32c0941bc12aa30 (patch) | |
| tree | 1dd80db28960f1762946a615398f646b34178730 /usr.bin/elfcopy | |
| parent | 2d83b16bd4943160895436ad7576260d73245dbd (diff) | |
Notes
Diffstat (limited to 'usr.bin/elfcopy')
| -rw-r--r-- | usr.bin/elfcopy/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/usr.bin/elfcopy/Makefile b/usr.bin/elfcopy/Makefile index 8e7f31d2b9bd..dc6dd47be719 100644 --- a/usr.bin/elfcopy/Makefile +++ b/usr.bin/elfcopy/Makefile @@ -7,7 +7,15 @@ ELFCOPYDIR= ${ELFTCDIR}/elfcopy .PATH: ${ELFCOPYDIR} +.if ${MK_ELFCOPY_AS_OBJCOPY} != "no" +PROG= objcopy +objcopy.1: elfcopy.1 + sed -e 's/\.Dt ELFCOPY 1/.Dt OBJCOPY 1/' \ + -e 's/\.Nm elfcopy/.Nm objcopy/' < ${.ALLSRC} > ${.TARGET} +CLEANFILES+= objcopy.1 +.else PROG= elfcopy +.endif SRCS= archive.c ascii.c binary.c main.c sections.c segments.c symbols.c @@ -17,8 +25,8 @@ LIBADD= archive elftc elf CFLAGS+=-I${ELFTCDIR}/libelftc -I${ELFTCDIR}/common -MAN= elfcopy.1 strip.1 +MAN= ${PROG}.1 strip.1 -LINKS= ${BINDIR}/elfcopy ${BINDIR}/strip +LINKS= ${BINDIR}/${PROG} ${BINDIR}/strip .include <bsd.prog.mk> |
