Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk Add a ${PROG}.ro target that does an 'ld -r' of the...



details:   https://anonhg.NetBSD.org/src/rev/20bd3b4b2e47
branches:  trunk
changeset: 550838:20bd3b4b2e47
user:      dsl <dsl%NetBSD.org@localhost>
date:      Fri Aug 22 19:17:00 2003 +0000

description:
Add a ${PROG}.ro target that does an 'ld -r' of the program object files.
Allows a much simplified build of 'crunched' binaries since crunchgen can
build prog.ro instead of having to deretmine the names of all the .o files.

diffstat:

 share/mk/bsd.prog.mk |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 74b6bec5ee19 -r 20bd3b4b2e47 share/mk/bsd.prog.mk
--- a/share/mk/bsd.prog.mk      Fri Aug 22 19:08:47 2003 +0000
+++ b/share/mk/bsd.prog.mk      Fri Aug 22 19:17:00 2003 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.prog.mk,v 1.182 2003/08/01 17:04:01 lukem Exp $
+#      $NetBSD: bsd.prog.mk,v 1.183 2003/08/22 19:17:00 dsl Exp $
 #      @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
 
 .ifndef HOSTPROG
@@ -153,6 +153,9 @@
 .endif # defined(DESTDIR)
 .endif # !commands(${PROG})
 
+${PROG}.ro: ${OBJS} ${DPADD}
+       ${LD} -r -dc -o ${.TARGET} ${OBJS}
+
 .endif # defined(OBJS) && !empty(OBJS)
 
 .if !defined(MAN)



Home | Main Index | Thread Index | Old Index