Module Name:    src
Committed By:   mrg
Date:           Sat Dec 10 10:42:43 UTC 2016

Modified Files:
        src/usr.sbin/crash: Makefile

Log Message:
enable sparc crash(8) builds.
it's not very stable yet but it's not 100% useless.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/usr.sbin/crash/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/crash/Makefile
diff -u src/usr.sbin/crash/Makefile:1.31 src/usr.sbin/crash/Makefile:1.32
--- src/usr.sbin/crash/Makefile:1.31	Tue Jun 16 23:48:20 2015
+++ src/usr.sbin/crash/Makefile	Sat Dec 10 10:42:43 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.31 2015/06/16 23:48:20 christos Exp $
+#	$NetBSD: Makefile,v 1.32 2016/12/10 10:42:43 mrg Exp $
 
 PROG=		crash
 MAN=		crash.8
@@ -16,11 +16,14 @@ DPADD+=	${LIBUTIL} ${LIBKVM} ${LIBEDIT} 
 .if    ${MACHINE} == "amd64" \
     || ${MACHINE} == "hppa" \
     || ${MACHINE} == "i386" \
+    || ${MACHINE} == "sparc" \
     || ${MACHINE} == "sparc64" \
     || (${MACHINE_CPU} == "arm" && ${MACHINE} != "acorn26") \
     || ${MACHINE_ARCH} == "m68k"
 SRCS+=	db_trace.c
-.if ${MACHINE_ARCH} != "m68k"
+.if ${MACHINE_ARCH} == "sparc"
+SRCS+=	db_interface.c
+.elif ${MACHINE_ARCH} != "m68k"
 SRCS+=	db_machdep.c
 .endif
 REALCRASH=yes
@@ -56,8 +59,7 @@ CPPFLAGS+=	-I${S}/arch
 . if    ${MACHINE} == "amd64" \
      || ${MACHINE} == "i386"
 MACHINE_FAMILY = x86
-. elif    ${MACHINE} == "sparc64" \
-     || ${MACHINE} == "sparc64"
+. elif  ${MACHINE} == "sparc64"
 MACHINE_FAMILY = sparc
 . else
 MACHINE_FAMILY = ${MACHINE_CPU}

Reply via email to