2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=@GNU
/gdb
16 PKG_MD5SUM
:=c9da266b884fb8fa54df786dfaadbc7a
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/gdb
/Default
23 DEPENDS
:=@
!(avr32||cris
)
24 URL
:=http
://www.gnu.org
/software
/gdb
/
28 $(call Package
/gdb
/Default
)
30 DEPENDS
+=+libreadline
+libncurses
33 define Package
/gdb
/description
34 GDB
, the GNU Project debugger
, allows you to see what is going on
`inside'
35 another program while it executes -- or what another program was doing at the
39 define Package/gdbserver
40 $(call Package/gdb/Default)
41 TITLE:=Remote server for GNU Debugger
44 define Package/gdbserver/description
45 GDBSERVER is a program that allows you to run GDB on a different machine than the
46 one which is running the program being debugged.
49 # XXX: add --disable-werror to prevent build failure with arm
51 --with-system-readline \
55 ac_cv_search_tgetent="$(TARGET_LDFLAGS) -lncurses -lreadline"
58 $(MAKE) -C $(PKG_BUILD_DIR) \
59 DESTDIR="$(PKG_INSTALL_DIR)" \
60 CPPFLAGS="$(TARGET_CPPFLAGS)" \
62 $(MAKE) -C $(PKG_BUILD_DIR) \
63 DESTDIR="$(PKG_INSTALL_DIR)" \
64 CPPFLAGS="$(TARGET_CPPFLAGS)" \
68 define Package/gdb/install
69 $(INSTALL_DIR) $(1)/usr/bin
70 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdb $(1)/usr/bin/
73 define Package/gdbserver/install
74 $(INSTALL_DIR) $(1)/usr/bin
75 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdbserver $(1)/usr/bin/
78 $(eval $(call BuildPackage,gdb))
79 $(eval $(call BuildPackage,gdbserver))