| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.50 2023/11/22 02:01:07 thorpej Exp $ | | 1 | # $NetBSD: Makefile,v 1.51 2024/04/26 22:07:32 christos Exp $ |
2 | | | 2 | |
3 | PROG= crash | | 3 | PROG= crash |
4 | MAN= crash.8 | | 4 | MAN= crash.8 |
5 | RUMPKERNEL= yes # XXX: Avoid -mcmodel=kernel | | 5 | RUMPKERNEL= yes # XXX: Avoid -mcmodel=kernel |
6 | | | 6 | |
7 | CWARNFLAGS.clang+= -Wno-format | | 7 | CWARNFLAGS.clang+= -Wno-format |
8 | | | 8 | |
9 | LDADD+= -lutil -lkvm -ledit -lterminfo | | 9 | LDADD+= -lutil -lkvm -ledit -lterminfo |
10 | DPADD+= ${LIBUTIL} ${LIBKVM} ${LIBEDIT} ${LIBTERMINFO} | | 10 | DPADD+= ${LIBUTIL} ${LIBKVM} ${LIBEDIT} ${LIBTERMINFO} |
11 | | | 11 | |
12 | .include <bsd.own.mk> | | 12 | .include <bsd.own.mk> |
13 | | | 13 | |
14 | # some ddb kernel components need limited modifications. for now, | | 14 | # some ddb kernel components need limited modifications. for now, |
| @@ -109,27 +109,27 @@ SRCS+= generic.c | | | @@ -109,27 +109,27 @@ SRCS+= generic.c |
109 | COPTS.db_output.c += -Wno-format-nonliteral | | 109 | COPTS.db_output.c += -Wno-format-nonliteral |
110 | | | 110 | |
111 | .if ${MKREPRO} == "yes" | | 111 | .if ${MKREPRO} == "yes" |
112 | . if ${MKREPRO_TIMESTAMP:U0} != 0 | | 112 | . if ${MKREPRO_TIMESTAMP:U0} != 0 |
113 | NVFLAGS+=-r ${MKREPRO_TIMESTAMP} | | 113 | NVFLAGS+=-r ${MKREPRO_TIMESTAMP} |
114 | . else | | 114 | . else |
115 | NVFLAGS+=-R | | 115 | NVFLAGS+=-R |
116 | . endif | | 116 | . endif |
117 | .endif | | 117 | .endif |
118 | | | 118 | |
119 | # vers.c | | 119 | # vers.c |
120 | SRCS+= vers.c | | 120 | SRCS+= vers.c |
121 | vers.c: ${S}/conf/newvers.sh ${_NETBSD_VERSION_DEPENDS} | | 121 | vers.c: ${S}/conf/newvers.sh ${_NETBSD_VERSION_DEPENDS} |
122 | ${HOST_SH} ${S}/conf/newvers.sh ${NVFLAGS} -n -m ${MACHINE} -i CRASH | | 122 | TOOL_DATE=${TOOL_DATE} ${HOST_SH} ${S}/conf/newvers.sh ${NVFLAGS} -n -m ${MACHINE} -i CRASH |
123 | CLEANFILES+= vers.c version | | 123 | CLEANFILES+= vers.c version |
124 | | | 124 | |
125 | .else # } { | | 125 | .else # } { |
126 | | | 126 | |
127 | SRCS+= unsupported.c | | 127 | SRCS+= unsupported.c |
128 | | | 128 | |
129 | .endif # } | | 129 | .endif # } |
130 | | | 130 | |
131 | .if ${MACHINE} == "sparc" \ | | 131 | .if ${MACHINE} == "sparc" \ |
132 | || ${MACHINE} == "sparc64" | | 132 | || ${MACHINE} == "sparc64" |
133 | COPTS.kern_timeout.c += -Wno-stack-protector | | 133 | COPTS.kern_timeout.c += -Wno-stack-protector |
134 | .endif | | 134 | .endif |
135 | | | 135 | |