1 # Copyright (C) 2006-2009 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
14 PKG_SOURCE_URL
:=@GNU
/gdb
15 PKG_MD5SUM
:=c9da266b884fb8fa54df786dfaadbc7a
17 include $(INCLUDE_DIR
)/package.mk
19 define Package
/gdb
/Default
22 DEPENDS
:= @
!(avr32||cris
)
26 $(call Package
/gdb
/Default
)
28 DEPENDS
+= +libreadline
+libncurses
31 define Package
/gdb
/description
35 define Package
/gdbserver
36 $(call Package
/gdb
/Default
)
37 TITLE
:=Remote server for GNU Debugger
40 define Package
/gdbserver
/description
41 GDBSERVER is a program that allows you to run GDB on a different machine
42 than the one which is running the program being debugged.
45 # XXX: add --disable-werror to prevent build failure with arm
47 --with-system-readline \
51 ac_cv_search_tgetent
="$(TARGET_LDFLAGS) -lncurses -lreadline"
54 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
55 DESTDIR
="$(PKG_INSTALL_DIR)" \
56 CPPFLAGS
="$(TARGET_CPPFLAGS)" \
60 define Package
/gdb
/install
61 $(INSTALL_DIR
) $(1)/usr
/bin
62 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/gdb
$(1)/usr
/bin
/
65 define Package
/gdbserver
/install
66 $(INSTALL_DIR
) $(1)/usr
/bin
67 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/gdbserver
$(1)/usr
/bin
/
70 $(eval
$(call BuildPackage
,gdb
))
71 $(eval
$(call BuildPackage
,gdbserver
))