Create/build vers.c/vers.o inside the final link stage so that the build
datestamp get's updated each build.
This commit is contained in:
parent
98f67b8238
commit
0f4c2803ca
|
@ -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 @@ ${.OBJDIR}/mips:
|
|||
-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 @@ PMAXDIR= ${PMAX_STAND_DIR}/lib
|
|||
.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.
|
||||
|
|
Loading…
Reference in New Issue