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.xz
15 PKG_SOURCE_URL
:=@GNU
/gdb
16 PKG_MD5SUM
:=bd958fe9019d7c7896f29f6724a764ed
18 PKG_LICENSE
:=GPL-3.0
+ LGPL-3.0
+
19 PKG_LICENSE_FILES
:=COPYING3 COPYING3.LIB
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/gdb
/Default
30 DEPENDS
:=@
!(avr32||cris
) +!USE_MUSL
:libthread-db
+PACKAGE_zlib
:zlib
31 URL
:=http
://www.gnu.org
/software
/gdb
/
35 $(call Package
/gdb
/Default
)
37 DEPENDS
+=+libreadline
+libncurses
+zlib
40 define Package
/gdb
/description
41 GDB
, the GNU Project debugger
, allows you to see what is going on
`inside'
42 another program while it executes -- or what another program was doing at the
46 define Package/gdbserver
47 $(call Package/gdb/Default)
48 TITLE:=Remote server for GNU Debugger
51 define Package/gdbserver/description
52 GDBSERVER is a program that allows you to run GDB on a different machine than the
53 one which is running the program being debugged.
56 # XXX: add --disable-werror to prevent build failure with arm
58 --with-system-readline \
63 ac_cv_search_tgetent="$(TARGET_LDFLAGS) -lncurses -lreadline"
66 +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
67 DESTDIR="$(PKG_INSTALL_DIR)" \
68 CPPFLAGS="$(TARGET_CPPFLAGS)" \
73 $(MAKE) -C $(PKG_BUILD_DIR) \
74 DESTDIR="$(PKG_INSTALL_DIR)" \
75 CPPFLAGS="$(TARGET_CPPFLAGS)" \
79 define Package/gdb/install
80 $(INSTALL_DIR) $(1)/usr/bin
81 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdb $(1)/usr/bin/
84 define Package/gdbserver/install
85 $(INSTALL_DIR) $(1)/usr/bin
86 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdbserver $(1)/usr/bin/
89 $(eval $(call BuildPackage,gdb))
90 $(eval $(call BuildPackage,gdbserver))