Module Name:    src
Committed By:   mrg
Date:           Thu Apr 14 08:21:06 UTC 2011

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

Log Message:
enable crash(8) for sparc64.  it's still sort of minimal and segvs
on some commands, but it sort of works and isn't useless.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 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.9 src/usr.sbin/crash/Makefile:1.10
--- src/usr.sbin/crash/Makefile:1.9	Tue Apr 12 01:47:20 2011
+++ src/usr.sbin/crash/Makefile	Thu Apr 14 08:21:06 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.9 2011/04/12 01:47:20 mrg Exp $
+#	$NetBSD: Makefile,v 1.10 2011/04/14 08:21:06 mrg Exp $
 
 PROG=		crash
 MAN=		crash.8
@@ -9,10 +9,15 @@
 
 # some ddb kernel components need limited modifications.  for now,
 # punt if not noted as implemented here.
-.if    ${MACHINE} != "amd64" \
-    && ${MACHINE} != "i386"
-SRCS+=	unsupported.c
+.if    ${MACHINE} == "amd64" \
+    || ${MACHINE} == "i386" \
+    || ${MACHINE} == "sparc64"
+REALCRASH=yes
 .else
+REALCRASH=no
+.endif
+
+.if ${REALCRASH} != "no"	# {
 
 S=		${.CURDIR}/../../sys
 
@@ -28,11 +33,17 @@
 SRCS+=	db_sym.c db_variables.c db_write_cmd.c
 
 .PATH:	${S}/arch/${MACHINE}/${MACHINE}
-SRCS+=	db_machdep.c db_disasm.c
+SRCS+=	db_disasm.c
 
-. if empty(${MACHINE:C/(amd64|i386)//})
+. if    ${MACHINE} == "amd64" \
+     || ${MACHINE} == "i386"
 .PATH:	${S}/arch/x86/x86
 SRCS+=	db_trace.c
+SRCS+=	db_machdep.c
+. endif
+
+. if ${MACHINE} == "sparc64"
+SRCS+=	db_trace.c db_interface.c
 . endif
 
 # crash main source
@@ -52,7 +63,11 @@
 	${HOST_SH} ${S}/conf/newvers.sh -r
 CLEANFILES+=	vers.c version
 
-.endif
+.else				# } {
+
+SRCS+=	unsupported.c
+
+.endif				# }
 
 .include <bsd.prog.mk>
 .include <bsd.klinks.mk>

Reply via email to