1 # Copyright (C) 2006 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_MD5SUM:=05b928f41fa5b482e49ca2c24762a0ae
16 PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/gdb
19 include $(INCLUDE_DIR)/package.mk
24 DEPENDS:=+libreadline +libncurses
28 define Package/gdbserver
31 TITLE:=Remote server for GNU Debugger
34 define Package/gdb/description
38 define Package/gdbserver/description
39 GDBSERVER is a program that allows you to run GDB on a different machine
40 than the one which is running the program being debugged.
43 TARGET_CPPFLAGS += -I$(STAGING_DIR)/usr/include
44 TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib
46 export ac_cv_search_tgetent=$(TARGET_LDFLAGS) -lncurses -lreadline
49 $(MAKE) -C $(PKG_BUILD_DIR) \
50 DESTDIR="$(PKG_INSTALL_DIR)" \
54 define Package/gdb/install
55 $(INSTALL_DIR) $(1)/usr/bin
56 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdb $(1)/usr/bin/
59 define Package/gdbserver/install
60 $(INSTALL_DIR) $(1)/usr/bin
61 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdb $(1)/usr/bin/
64 $(eval $(call BuildPackage,gdb))
65 $(eval $(call BuildPackage,gdbserver))