summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2017-04-25 18:08:56 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2017-04-25 18:08:56 +0000
commit73ad3fb5360333765a2c1fe0c14ea810b75fab11 (patch)
tree6367caa21b1b2dd012998cf55e2afbc5e36c74b8 /gnu
parentb3ac6549cae91b85f1a05812c4f7770830a16a38 (diff)
downloadsrc-test2-73ad3fb5360333765a2c1fe0c14ea810b75fab11.tar.gz
src-test2-73ad3fb5360333765a2c1fe0c14ea810b75fab11.zip
Notes
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/gdb/Makefile8
-rw-r--r--gnu/usr.bin/gdb/Makefile.inc5
2 files changed, 12 insertions, 1 deletions
diff --git a/gnu/usr.bin/gdb/Makefile b/gnu/usr.bin/gdb/Makefile
index 35ee5fb22a8d..7598a196300a 100644
--- a/gnu/usr.bin/gdb/Makefile
+++ b/gnu/usr.bin/gdb/Makefile
@@ -1,9 +1,15 @@
# $FreeBSD$
-SUBDIR= libgdb gdb gdbtui kgdb
+.include <src.opts.mk>
+
+SUBDIR= libgdb gdb kgdb
+
+.if ${MK_GDB_LIBEXEC} == "no"
+SUBDIR+= gdbtui
.if exists(${.CURDIR}/gdbserver/reg-${MACHINE_CPUARCH}.c)
SUBDIR+=gdbserver
.endif
+.endif
.include <bsd.subdir.mk>
diff --git a/gnu/usr.bin/gdb/Makefile.inc b/gnu/usr.bin/gdb/Makefile.inc
index 6e022fcdc952..11452179cd83 100644
--- a/gnu/usr.bin/gdb/Makefile.inc
+++ b/gnu/usr.bin/gdb/Makefile.inc
@@ -1,5 +1,7 @@
# $FreeBSD$
+.include <src.opts.mk>
+
VERSION= "6.1.1 [FreeBSD]"
VENDOR= marcel
@@ -53,6 +55,9 @@ GENSRCS+= nm.h tm.h
CFLAGS+= -DCROSS_DEBUGGER -I${BMAKE_ROOT:H:H}
GDB_SUFFIX= -${TARGET_ARCH}
MAN=
+.elif ${MK_GDB_LIBEXEC} != "no"
+BINDIR?= /usr/libexec
+MAN=
.endif
.include "${TARGET_SUBDIR}/Makefile"