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.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_MD5SUM
:=c9da266b884fb8fa54df786dfaadbc7a
16 PKG_SOURCE_URL
:=http
://ftp.gnu.org
/gnu
/gdb
19 include $(INCLUDE_DIR
)/package.mk
24 DEPENDS
:=+libreadline
+libncurses
28 define Package
/gdbserver
31 TITLE
:=Remote server for GNU Debugger
34 define Package
/gdb
/description
38 define Package
/gdbserver
/description
39 GDBSERVER is a program that allows you to run GDB on a different machine
40 than the one which is running the program being debugged.
43 TARGET_CPPFLAGS
+= -I
$(STAGING_DIR
)/usr
/include
44 TARGET_LDFLAGS
+= -L
$(STAGING_DIR
)/usr
/lib
45 CONFIGURE_ARGS
+= --with-system-readline
47 export ac_cv_search_tgetent
=$(TARGET_LDFLAGS
) -lncurses
-lreadline
50 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
51 DESTDIR
="$(PKG_INSTALL_DIR)" \
52 CPPFLAGS
="$(TARGET_CPPFLAGS)" \
56 define Package
/gdb
/install
57 $(INSTALL_DIR
) $(1)/usr
/bin
58 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/gdb
$(1)/usr
/bin
/
61 define Package
/gdbserver
/install
62 $(INSTALL_DIR
) $(1)/usr
/bin
63 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/gdb
$(1)/usr
/bin
/
66 $(eval
$(call BuildPackage
,gdb
))
67 $(eval
$(call BuildPackage
,gdbserver
))