2002-11-15 10:41:03 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# gdb
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
|
|
|
GDB_SITE:=ftp://ftp.gnu.org/gnu/gdb/
|
2003-01-08 00:41:58 +01:00
|
|
|
GDB_DIR:=$(BUILD_DIR)/gdb-5.3
|
|
|
|
GDB_SOURCE:=gdb-5.3.tar.gz
|
2002-11-15 10:41:03 +01:00
|
|
|
GDB_WDIR:=$(BUILD_DIR)/gdbserver
|
|
|
|
|
|
|
|
|
|
|
|
$(GDB_WDIR)/.configured: $(GDB_DIR)/.unpacked
|
2003-01-17 09:03:59 +01:00
|
|
|
(cd $(GDB_WDIR); rm -rf config.cache; \
|
2003-01-17 10:30:37 +01:00
|
|
|
PATH=$(STAGING_DIR)/bin:$$PATH AR=$(TARGET_CROSS)ar \
|
|
|
|
AS=$(TARGET_CROSS)as LD=$(TARGET_CROSS)ld \
|
|
|
|
RANLIB=$(TARGET_CROSS)ranlib NM=$(TARGET_CROSS)nm \
|
|
|
|
CC=$(TARGET_CC1) \
|
2003-01-17 09:03:59 +01:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--sbindir=/usr/sbin \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/man \
|
|
|
|
--infodir=/usr/info \
|
2003-01-17 10:30:37 +01:00
|
|
|
--includedir=$(STAGING_DIR)/include \
|
2003-01-17 09:03:59 +01:00
|
|
|
--disable-nls \
|
|
|
|
--without-uiout --disable-gdbmi \
|
|
|
|
--disable-tui --disable-gdbtk --without-x \
|
|
|
|
--without-included-gettext \
|
|
|
|
);
|
2002-11-15 10:41:03 +01:00
|
|
|
touch $(GDB_WDIR)/.configured
|
|
|
|
|
|
|
|
$(GDB_DIR)/gdb/gdbserver/gdbserver: $(GDB_WDIR)/.configured
|
2003-01-17 09:03:59 +01:00
|
|
|
$(MAKE) CC=$(TARGET_CC1) -C $(GDB_WDIR)
|
2002-11-15 10:41:03 +01:00
|
|
|
$(STRIP) $(GDB_WDIR)/gdbserver
|
|
|
|
|
|
|
|
$(TARGET_DIR)/usr/bin/gdbserver: $(GDB_DIR)/gdb/gdbserver/gdbserver
|
|
|
|
install -c $(GDB_WDIR)/gdbserver $(TARGET_DIR)/usr/bin/gdbserver
|
|
|
|
|
|
|
|
gdbserver: $(TARGET_DIR)/usr/bin/gdbserver
|
|
|
|
|
|
|
|
gdbserver-clean:
|
2003-01-17 09:03:59 +01:00
|
|
|
$(MAKE) -C $(GDB_WDIR) clean
|
2002-11-15 10:41:03 +01:00
|
|
|
|
|
|
|
gdbserver-dirclean:
|
|
|
|
rm -rf $(GDB_WDIR)
|
|
|
|
|