Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/stand/boot move .for generated rules after OB...



details:   https://anonhg.NetBSD.org/src/rev/5a093b4896a0
branches:  trunk
changeset: 822838:5a093b4896a0
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Apr 09 20:51:55 2017 +0000

description:
move .for generated rules after OBJS have been set.

diffstat:

 sys/arch/sparc/stand/boot/Makefile |  21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)

diffs (39 lines):

diff -r 8925c21c074c -r 5a093b4896a0 sys/arch/sparc/stand/boot/Makefile
--- a/sys/arch/sparc/stand/boot/Makefile        Sun Apr 09 20:34:00 2017 +0000
+++ b/sys/arch/sparc/stand/boot/Makefile        Sun Apr 09 20:51:55 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.40 2017/04/08 19:53:23 christos Exp $
+#      $NetBSD: Makefile,v 1.41 2017/04/09 20:51:55 christos Exp $
 
 STRIPFLAG=
 PROGSOURCE=    boot.c net.c netif_sun.c conf.c openfirm.c bootinfo.c \
@@ -31,15 +31,6 @@
 .MAIN: all
 realall: ${FILES}
 
-.for RELOC in ${RELOCS}
-boot.${RELOC}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
-       ${LD} -S -o ${.TARGET}.tmp ${LINKFLAGS} -Ttext ${RELOC} ${OBJS} \
-           ${LIBSA} ${LIBZ} ${LIBKERN}
-       ${SIZE} ${.TARGET}.tmp
-       ${OBJCOPY} -O binary ${.TARGET}.tmp ${.TARGET}
-       rm -f ${.TARGET}.tmp
-CLEANFILES+=   boot.${RELOC}.map
-.endfor
 
 # conjure up a magic header that is accepted by all Sun PROMS;
 # see installboot.c for details.
@@ -58,3 +49,13 @@
 .include "${S}/conf/newvers_stand.mk"
 
 .include <bsd.prog.mk>
+
+.for RELOC in ${RELOCS}
+boot.${RELOC}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
+       ${LD} -S -o ${.TARGET}.tmp ${LINKFLAGS} -Ttext ${RELOC} ${OBJS} \
+           ${LIBSA} ${LIBZ} ${LIBKERN}
+       ${SIZE} ${.TARGET}.tmp
+       ${OBJCOPY} -O binary ${.TARGET}.tmp ${.TARGET}
+       rm -f ${.TARGET}.tmp
+CLEANFILES+=   boot.${RELOC}.map
+.endfor



Home | Main Index | Thread Index | Old Index