2002-11-15 10:41:03 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
2003-01-23 05:35:27 +01:00
|
|
|
# gdbserver
|
2002-11-15 10:41:03 +01:00
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2003-01-23 05:35:27 +01:00
|
|
|
#Use GDB_DIR/etc values from gdb.mk
|
|
|
|
#Build gdbserver in a dir outside of the main gdb tree
|
2003-01-24 02:07:29 +01:00
|
|
|
GDB_WDIR:=$(BUILD_DIR)/gdbserver
|
|
|
|
|
2002-11-15 10:41:03 +01:00
|
|
|
|
|
|
|
$(GDB_WDIR)/.configured: $(GDB_DIR)/.unpacked
|
2003-01-23 05:35:27 +01:00
|
|
|
mkdir -p $(GDB_WDIR)
|
2003-01-17 09:03:59 +01:00
|
|
|
(cd $(GDB_WDIR); rm -rf config.cache; \
|
2003-03-04 20:16:19 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2003-01-23 05:35:27 +01:00
|
|
|
$(GDB_DIR)/gdb/gdbserver/configure \
|
2003-01-17 09:03:59 +01:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
2003-03-04 20:16:19 +01:00
|
|
|
--host=$(GNU_TARGET_NAME) \
|
2003-01-17 09:03:59 +01:00
|
|
|
--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
|
|
|
|
|
2003-01-23 05:35:27 +01:00
|
|
|
$(GDB_WDIR)/gdbserver: $(GDB_WDIR)/.configured
|
2003-01-19 07:07:22 +01:00
|
|
|
$(MAKE) CC=$(TARGET_CC) -C $(GDB_WDIR)
|
2002-11-15 10:41:03 +01:00
|
|
|
$(STRIP) $(GDB_WDIR)/gdbserver
|
|
|
|
|
2003-01-23 05:35:27 +01:00
|
|
|
$(TARGET_DIR)/usr/bin/gdbserver: $(GDB_WDIR)/gdbserver
|
2002-11-15 10:41:03 +01:00
|
|
|
install -c $(GDB_WDIR)/gdbserver $(TARGET_DIR)/usr/bin/gdbserver
|
2003-02-14 13:20:38 +01:00
|
|
|
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
|
|
|
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
2002-11-15 10:41:03 +01:00
|
|
|
|
|
|
|
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)
|
|
|
|
|