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
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/gdb
/Default
25 DEPENDS
:=@
!(avr32||cris
)
26 URL
:=http
://www.gnu.org
/software
/gdb
/
30 $(call Package
/gdb
/Default
)
32 DEPENDS
+=+libreadline
+libncurses
35 define Package
/gdb
/description
36 GDB
, the GNU Project debugger
, allows you to see what is going on
`inside'
37 another program while it executes -- or what another program was doing at the
41 define Package/gdbserver
42 $(call Package/gdb/Default)
43 TITLE:=Remote server for GNU Debugger
46 define Package/gdbserver/description
47 GDBSERVER is a program that allows you to run GDB on a different machine than the
48 one which is running the program being debugged.
51 # XXX: add --disable-werror to prevent build failure with arm
53 --with-system-readline \
57 ac_cv_search_tgetent="$(TARGET_LDFLAGS) -lncurses -lreadline"
60 $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
61 DESTDIR="$(PKG_INSTALL_DIR)" \
62 CPPFLAGS="$(TARGET_CPPFLAGS)" \
64 $(MAKE) -C $(PKG_BUILD_DIR) \
65 DESTDIR="$(PKG_INSTALL_DIR)" \
66 CPPFLAGS="$(TARGET_CPPFLAGS)" \
70 define Package/gdb/install
71 $(INSTALL_DIR) $(1)/usr/bin
72 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdb $(1)/usr/bin/
75 define Package/gdbserver/install
76 $(INSTALL_DIR) $(1)/usr/bin
77 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdbserver $(1)/usr/bin/
80 $(eval $(call BuildPackage,gdb))
81 $(eval $(call BuildPackage,gdbserver))