2 # Copyright (C) 2006-2016 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.xz
15 PKG_SOURCE_URL
:=@GNU
/gdb
16 PKG_HASH
:=e9216da4e3755e9f414c1aa0026b626251dfc57ffe572a266e98da4f6988fc70
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/gdb
/Default
27 DEPENDS
:=+!USE_MUSL
:libthread-db
+PACKAGE_zlib
:zlib @
!arc
28 URL
:=http
://www.gnu.org
/software
/gdb
/
32 $(call Package
/gdb
/Default
)
34 DEPENDS
+=+libreadline
+libncurses
+zlib
37 define Package
/gdb
/description
38 GDB
, the GNU Project debugger
, allows you to see what is going on
`inside'
39 another program while it executes -- or what another program was doing at the
43 define Package/gdbserver
44 $(call Package/gdb/Default)
45 TITLE:=Remote server for GNU Debugger
48 define Package/gdbserver/description
49 GDBSERVER is a program that allows you to run GDB on a different machine than the
50 one which is running the program being debugged.
53 # XXX: add --disable-werror to prevent build failure with arm
55 --with-system-readline \
61 ac_cv_search_tgetent="$(TARGET_LDFLAGS) -lncurses -lreadline"
64 +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
65 DESTDIR="$(PKG_INSTALL_DIR)" \
66 CPPFLAGS="$(TARGET_CPPFLAGS)" \
71 $(MAKE) -C $(PKG_BUILD_DIR) \
72 DESTDIR="$(PKG_INSTALL_DIR)" \
73 CPPFLAGS="$(TARGET_CPPFLAGS)" \
77 define Package/gdb/install
78 $(INSTALL_DIR) $(1)/usr/bin
79 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdb $(1)/usr/bin/
82 define Package/gdbserver/install
83 $(INSTALL_DIR) $(1)/usr/bin
84 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdbserver $(1)/usr/bin/
87 $(eval $(call BuildPackage,gdb))
88 $(eval $(call BuildPackage,gdbserver))