26 lines
644 B
Makefile
26 lines
644 B
Makefile
# $NetBSD: newvers.mk,v 1.4 2024/05/01 14:52:01 christos Exp $
|
|
|
|
MKREPRO?=no
|
|
|
|
.if ${MKREPRO} == "yes"
|
|
. if ${MKREPRO_TIMESTAMP:U0} != 0
|
|
_NVFLAGS=${NVFLAGS} -r ${MKREPRO_TIMESTAMP} -i ${KERNEL_BUILD:T} -m ${MACHINE}
|
|
. else
|
|
_NVFLAGS=${NVFLAGS} -R
|
|
. endif
|
|
.else
|
|
_NVFLAGS=${NVFLAGS}
|
|
.endif
|
|
|
|
.if !target(vers.o)
|
|
newvers: vers.o
|
|
vers.o: ${SYSTEM_OBJ:O} Makefile $S/conf/newvers.sh \
|
|
$S/conf/osrelease.sh ${_NETBSD_VERSION_DEPENDS}
|
|
${_MKMSG_CREATE} vers.c
|
|
TOOL_AWK=${TOOL_AWK} TOOL_DATE=${TOOL_DATE} \
|
|
${HOST_SH} $S/conf/newvers.sh ${_NVFLAGS}
|
|
${_MKTARGET_COMPILE}
|
|
${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
|
|
${COMPILE_CTFCONVERT}
|
|
.endif
|