Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/pmax/stand Create/build vers.c/vers.o inside the fi...



details:   https://anonhg.NetBSD.org/src/rev/dbe8f5b102c0
branches:  trunk
changeset: 467922:dbe8f5b102c0
user:      simonb <simonb%NetBSD.org@localhost>
date:      Wed Mar 31 03:10:56 1999 +0000

description:
Create/build vers.c/vers.o inside the final link stage so that the build
datestamp get's updated each build.

diffstat:

 sys/arch/pmax/stand/Makefile.booters |  32 +++++++++++++++++---------------
 1 files changed, 17 insertions(+), 15 deletions(-)

diffs (58 lines):

diff -r 9c6e3832630b -r dbe8f5b102c0 sys/arch/pmax/stand/Makefile.booters
--- a/sys/arch/pmax/stand/Makefile.booters      Wed Mar 31 03:10:00 1999 +0000
+++ b/sys/arch/pmax/stand/Makefile.booters      Wed Mar 31 03:10:56 1999 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.booters,v 1.19 1999/03/31 02:35:14 simonb Exp $
+#      $NetBSD: Makefile.booters,v 1.20 1999/03/31 03:10:56 simonb Exp $
 #
 #      NOTE: $S must correspond to the top of the 'sys' tree
 
@@ -17,8 +17,6 @@
        -rm -f ${.TARGET}
        ln -s $S/arch/mips/include mips
 
-CLEANFILES+=vers.c vers.o ${PROG}.map
-
 # Tailor C compilation for standalone environment.
 COPTS= -Os                             # -Os gives smaller code
 
@@ -61,23 +59,27 @@
 .include "${PMAXDIR}/Makefile.inc"
 LIBPMAX=               ${PMAXLIB}
 
+LIBS=  ${LIBPMAX} ${LIBKERN} ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBPMAX}
+VERS_O?=vers.o
+
+${PROG}: ${OBJS} ${LIBS}
+.if ${VERS_O} != ""
+       sh ${PMAX_STAND_DIR}/lib/newvers.sh ${VERSIONFILE} ${NEWVERSWHAT}
+       ${COMPILE.c} vers.c
+.endif
+       ld -Map ${PROG}.map -N -x -Ttext ${RELOC} ${LDBUG} -e start \
+           ${OBJS} ${VERS_O} ${LIBS} -o ${PROG}
+
+CLEANFILES+=${PROG}.map
+.if ${VERS_O} != ""
+CLEANFILES+=vers.c vers.o
+.endif
+
 cleandir distclean: cleanlibdir
 
 cleanlibdir:
        rm -rf lib
 
-LIBS=  ${LIBPMAX} ${LIBKERN} ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBPMAX}
-VERS_O?=vers.o
-
-vers.o:        ${VERSIONFILE}
-       sh ${PMAX_STAND_DIR}/lib/newvers.sh ${.ALLSRC} ${NEWVERSWHAT}
-       ${COMPILE.c} vers.c
-
-${PROG}: ${OBJS} ${VERS_O} ${LIBS}
-       ld -Map ${PROG}.map -N -x -Ttext ${RELOC} ${LDBUG} -e start \
-           ${OBJS} ${VERS_O} ${LIBS} -o ${PROG}
-
-
 .include <bsd.prog.mk>
 
 # be sure to turn off any PIC flags for standalone library code.



Home | Main Index | Thread Index | Old Index