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
)
27 $(call Package
/gdb
/Default
)
29 DEPENDS
+=+libreadline
+libncurses
32 define Package
/gdb
/description
33 GDB
, the GNU Project debugger
, allows you to see what is going on
`inside'
34 another program while it executes -- or what another program was doing at the
38 define Package/gdbserver
39 $(call Package/gdb/Default)
40 TITLE:=Remote server for GNU Debugger
43 define Package/gdbserver/description
44 GDBSERVER is a program that allows you to run GDB on a different machine than the
45 one which is running the program being debugged.
48 # XXX: add --disable-werror to prevent build failure with arm
50 --with-system-readline \
54 ac_cv_search_tgetent="$(TARGET_LDFLAGS) -lncurses -lreadline"
57 $(MAKE) -C $(PKG_BUILD_DIR) \
58 DESTDIR="$(PKG_INSTALL_DIR)" \
59 CPPFLAGS="$(TARGET_CPPFLAGS)" \
61 $(MAKE) -C $(PKG_BUILD_DIR) \
62 DESTDIR="$(PKG_INSTALL_DIR)" \
63 CPPFLAGS="$(TARGET_CPPFLAGS)" \
67 define Package/gdb/install
68 $(INSTALL_DIR) $(1)/usr/bin
69 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdb $(1)/usr/bin/
72 define Package/gdbserver/install
73 $(INSTALL_DIR) $(1)/usr/bin
74 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdbserver $(1)/usr/bin/
77 $(eval $(call BuildPackage,gdb))
78 $(eval $(call BuildPackage,gdbserver))