Use "${OBJCOPY} -O binary" to strip a.out header.
This commit is contained in:
parent
fd85c1c4a2
commit
934ac598d8
|
@ -1,4 +1,4 @@
|
||||||
# $NetBSD: Makefile,v 1.5 2000/04/13 14:19:57 tsutsui Exp $
|
# $NetBSD: Makefile,v 1.6 2000/04/13 14:44:02 tsutsui Exp $
|
||||||
|
|
||||||
COMMON= ${.CURDIR}/../common
|
COMMON= ${.CURDIR}/../common
|
||||||
.ifnmake(print-objdir)
|
.ifnmake(print-objdir)
|
||||||
|
@ -16,6 +16,7 @@ BINMODE= 444
|
||||||
|
|
||||||
SIZE?= size
|
SIZE?= size
|
||||||
STRIP?= strip
|
STRIP?= strip
|
||||||
|
OBJCOPY?= objcopy
|
||||||
|
|
||||||
S= ${.CURDIR}/../../../..
|
S= ${.CURDIR}/../../../..
|
||||||
|
|
||||||
|
@ -47,7 +48,7 @@ ${PROG}: ${OBJS} machine m68k
|
||||||
${LD} ${LDFLAGS} -o ${PROG} ${OBJS} ${LIBS}
|
${LD} ${LDFLAGS} -o ${PROG} ${OBJS} ${LIBS}
|
||||||
-${SIZE} ${PROG}
|
-${SIZE} ${PROG}
|
||||||
${STRIP} ${PROG}
|
${STRIP} ${PROG}
|
||||||
tail -c +33 ${PROG} > ${PROG}.tmp
|
${OBJCOPY} -O binary ${PROG} ${PROG}.tmp
|
||||||
mv ${PROG}.tmp ${PROG}
|
mv ${PROG}.tmp ${PROG}
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
|
Loading…
Reference in New Issue