2 # Copyright (C) 2006-2012 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
:=da20d043e6729f74b909bd507bcae5c9
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-6.8
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/gdb
/Default
26 DEPENDS
:=@
!(avr32||cris
)
27 URL
:=http
://www.gnu.org
/software
/gdb
/
31 $(call Package
/gdb
/Default
)
33 DEPENDS
+=+libreadline
+libncurses
36 define Package
/gdb
/description
37 GDB
, the GNU Project debugger
, allows you to see what is going on
`inside'
38 another program while it executes -- or what another program was doing at the
42 define Package/gdbserver
43 $(call Package/gdb/Default)
44 TITLE:=Remote server for GNU Debugger
47 define Package/gdbserver/description
48 GDBSERVER is a program that allows you to run GDB on a different machine than the
49 one which is running the program being debugged.
52 # XXX: add --disable-werror to prevent build failure with arm
54 --with-system-readline \
59 ac_cv_search_tgetent="$(TARGET_LDFLAGS) -lncurses -lreadline"
62 $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
63 DESTDIR="$(PKG_INSTALL_DIR)" \
64 CPPFLAGS="$(TARGET_CPPFLAGS)" \
66 $(MAKE) -C $(PKG_BUILD_DIR) \
67 DESTDIR="$(PKG_INSTALL_DIR)" \
68 CPPFLAGS="$(TARGET_CPPFLAGS)" \
72 define Package/gdb/install
73 $(INSTALL_DIR) $(1)/usr/bin
74 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdb $(1)/usr/bin/
77 define Package/gdbserver/install
78 $(INSTALL_DIR) $(1)/usr/bin
79 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdbserver $(1)/usr/bin/
82 $(eval $(call BuildPackage,gdb))
83 $(eval $(call BuildPackage,gdbserver))