Switch gdb to use libedit for now.
This commit is contained in:
parent
b6cf0325ad
commit
4f6b2d371c
@ -1,5 +1,11 @@
|
||||
# $NetBSD: Makefile,v 1.1 2003/08/17 22:54:56 christos Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2003/09/26 17:51:18 christos Exp $
|
||||
|
||||
SUBDIR= bfd libiberty readline opcodes gdb # gdbreplay gdbserver
|
||||
.include "Makefile.inc"
|
||||
|
||||
SUBDIR= bfd libiberty opcodes
|
||||
.if ${USE_LIBEDIT} == no || ${USE_TUI} == yes
|
||||
SUBDIR+= readline
|
||||
.endif
|
||||
SUBDIR+= gdb # gdbreplay gdbserver
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
|
4
gnu/usr.bin/gdb53/Makefile.inc
Normal file
4
gnu/usr.bin/gdb53/Makefile.inc
Normal file
@ -0,0 +1,4 @@
|
||||
# $NetBSD: Makefile.inc,v 1.1 2003/09/26 17:51:18 christos Exp $
|
||||
|
||||
USE_LIBEDIT=yes
|
||||
USE_TUI=no
|
@ -1,7 +1,9 @@
|
||||
# $NetBSD: Makefile,v 1.4 2003/09/24 02:36:11 matt Exp $
|
||||
# $NetBSD: Makefile,v 1.5 2003/09/26 17:51:18 christos Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
.include "../Makefile.inc"
|
||||
|
||||
.if exists(${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk)
|
||||
MKPIC=no
|
||||
MKPROFILE=no
|
||||
@ -13,25 +15,28 @@ DIST= ${TOP}/dist/gdb
|
||||
|
||||
PROG= gdb
|
||||
|
||||
|
||||
SRCS= ${G_GDB_OBJS:.o=.c}
|
||||
CPPFLAGS= -I${.CURDIR}/../arch/${MACHINE_ARCH} \
|
||||
-I${DIST}/gdb \
|
||||
-I${DIST}/gdb/config \
|
||||
-I${DIST}/include \
|
||||
-I${DIST}/include/opcode \
|
||||
-I${DIST} \
|
||||
-I${DIST}/bfd \
|
||||
-I${.CURDIR}/../bfd \
|
||||
-I${DIST}/gdb/tui \
|
||||
-DHAVE_CONFIG_H \
|
||||
-DLOCALEDIR='"/usr/share/locale"' \
|
||||
-DUSE_INCLUDED_REGEX \
|
||||
-DRL_LIBRARY_VERSION='"4.0"' \
|
||||
-DNETBSD_CORE
|
||||
|
||||
.if ${USE_TUI} == "yes"
|
||||
SRCS+= ${G_TUI_OBJS:.o=.c}
|
||||
CPPFLAGS+= -DUSE_TUI
|
||||
.endif
|
||||
|
||||
LDADD= -lcurses -ltermcap -lintl -lm -lkvm
|
||||
DPADD= ${LIBTERMCAP} ${LIBINTL} ${LIBM} ${LIBKVM}
|
||||
DPADD= ${LIBCURSES} ${LIBTERMCAP} ${LIBINTL} ${LIBM} ${LIBKVM}
|
||||
|
||||
.if ${SRCS:Mnbsd-thread.c} != ""
|
||||
LDADD+= -lpthread_dbg
|
||||
@ -49,9 +54,17 @@ INFOFLAGS= -I${DIST}/gdb/doc -I${DIST}/gdb/mi \
|
||||
|
||||
LIBOPCODESDIR!= cd ${.CURDIR}/../opcodes && ${PRINTOBJDIR}
|
||||
LIBBFDDIR!= cd ${.CURDIR}/../bfd && ${PRINTOBJDIR}
|
||||
LIBREADLINEDIR!= cd ${.CURDIR}/../readline && ${PRINTOBJDIR}
|
||||
LIBIBERTYDIR!= cd ${.CURDIR}/../libiberty && ${PRINTOBJDIR}
|
||||
|
||||
|
||||
.if ${USE_LIBEDIT} == yes && ${USE_TUI} == no
|
||||
LIBEDIT=-ledit
|
||||
.else
|
||||
CPPFLAGS+= -DRL_LIBRARY_VERSION='"4.0"' -I${DIST}
|
||||
LIBREADLINEDIR!= cd ${.CURDIR}/../readline && ${PRINTOBJDIR}
|
||||
LIBEDIT= -L${LIBREADLINEDIR} -lreadline
|
||||
.endif
|
||||
|
||||
## PSIM support for PowerPC.
|
||||
#.if ${MACHINE_ARCH} == powerpc || ${MACHINE_ARCH} == powerpcle
|
||||
#PSIMOBJ!= cd ${TOP}/usr.bin/sim/ppc && ${PRINTOBJDIR}
|
||||
@ -61,8 +74,9 @@ LIBIBERTYDIR!= cd ${.CURDIR}/../libiberty && ${PRINTOBJDIR}
|
||||
|
||||
LDADD+= -L${LIBOPCODESDIR} -lopcodes\
|
||||
-L${LIBBFDDIR} -lbfd \
|
||||
-L${LIBREADLINEDIR} -lreadline \
|
||||
-L${LIBIBERTYDIR} -liberty
|
||||
${LIBEDIT} \
|
||||
-L${LIBIBERTYDIR} -liberty \
|
||||
|
||||
|
||||
.PATH: ${DIST}/gdb ${DIST}/gdb/mi ${DIST}/gdb/cli ${DIST}/gdb/tui \
|
||||
${DIST}/gdb/signals ${DIST}/gdb/doc ${.CURDIR}/../arch/${MACHINE_ARCH}
|
||||
|
Loading…
Reference in New Issue
Block a user