From b29d0c613447b07a7e0606182ca51e141e4da06e Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 12 Apr 2010 23:35:58 +0000 Subject: [PATCH] Simplify how we select which architectures to add gdbserver for. If the MD files exist, compile it, otherwise omit it. --- gnu/usr.bin/gdb/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gnu/usr.bin/gdb/Makefile b/gnu/usr.bin/gdb/Makefile index b4ec8230d480..db21e5615e58 100644 --- a/gnu/usr.bin/gdb/Makefile +++ b/gnu/usr.bin/gdb/Makefile @@ -3,8 +3,7 @@ SUBDIR= doc libgdb gdb gdbtui kgdb TARGET_ARCH?= ${MACHINE_ARCH} -.if ${TARGET_ARCH} == "amd64" || ${TARGET_ARCH} == "arm" || \ - ${TARGET_ARCH} == "i386" || ${TARGET_ARCH} == "powerpc" +.if exists(${.CURDIR}/gdbserver/reg-${TARGET_ARCH}.c) SUBDIR+=gdbserver .endif