newvers.mk revision 1.1.6.1 1 # $NetBSD: newvers.mk,v 1.1.6.1 2017/04/21 16:53:44 bouyer 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 ${HOST_SH} $S/conf/newvers.sh ${_NVFLAGS}
21 ${_MKTARGET_COMPILE}
22 ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
23 ${COMPILE_CTFCONVERT}
24 .endif
25