Home | History | Annotate | Line # | Download | only in conf
      1 # $NetBSD: newvers.mk,v 1.4 2024/05/01 14:52:01 christos Exp $
      2 
      3 MKREPRO?=no
      4 
      5 .if ${MKREPRO} == "yes"
      6 .	if ${MKREPRO_TIMESTAMP:U0} != 0
      7 _NVFLAGS=${NVFLAGS} -r ${MKREPRO_TIMESTAMP} -i ${KERNEL_BUILD:T} -m ${MACHINE}
      8 .	else
      9 _NVFLAGS=${NVFLAGS} -R
     10 .	endif
     11 .else
     12 _NVFLAGS=${NVFLAGS}
     13 .endif
     14 
     15 .if !target(vers.o)
     16 newvers: vers.o
     17 vers.o: ${SYSTEM_OBJ:O} Makefile $S/conf/newvers.sh \
     18 		$S/conf/osrelease.sh ${_NETBSD_VERSION_DEPENDS}
     19 	${_MKMSG_CREATE} vers.c
     20 	TOOL_AWK=${TOOL_AWK} TOOL_DATE=${TOOL_DATE} \
     21 	    ${HOST_SH} $S/conf/newvers.sh ${_NVFLAGS}
     22 	${_MKTARGET_COMPILE}
     23 	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
     24 	${COMPILE_CTFCONVERT}
     25 .endif
     26