Module Name: src
Committed By: christos
Date: Sun Apr 9 20:51:56 UTC 2017
Modified Files:
src/sys/arch/sparc/stand/boot: Makefile
Log Message:
move .for generated rules after OBJS have been set.
To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/arch/sparc/stand/boot/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sparc/stand/boot/Makefile
diff -u src/sys/arch/sparc/stand/boot/Makefile:1.40 src/sys/arch/sparc/stand/boot/Makefile:1.41
--- src/sys/arch/sparc/stand/boot/Makefile:1.40 Sat Apr 8 15:53:23 2017
+++ src/sys/arch/sparc/stand/boot/Makefile Sun Apr 9 16:51:55 2017
@@ -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 @@ LINKFLAGS=-N -e start -Map [email protected]
.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 @@ CLEANFILES+= bootjs.net.map
.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