source: branches/8.09/package/gdb/Makefile @ 17698

Last change on this file since 17698 was 17698, checked in by nbd, 7 years ago

merge gdb package from trunk to replace the gdbserver package (fixes #5884)

File size: 1.4 KB
Line 
1# Copyright (C) 2006-2009 OpenWrt.org
2#
3# This is free software, licensed under the GNU General Public License v2.
4# See /LICENSE for more information.
5#
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=gdb
10PKG_VERSION:=6.8
11PKG_RELEASE:=1
12
13PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14PKG_SOURCE_URL:=@GNU/gdb
15PKG_MD5SUM:=c9da266b884fb8fa54df786dfaadbc7a
16
17include $(INCLUDE_DIR)/package.mk
18
19define Package/gdb
20  SECTION:=utils
21  CATEGORY:=Utilities
22  DEPENDS:=+libreadline +libncurses
23  TITLE:=GNU Debugger
24endef
25
26define Package/gdbserver
27  SECTION:=utils
28  CATEGORY:=Utilities
29  TITLE:=Remote server for GNU Debugger
30endef
31
32define Package/gdb/description
33 GNU debugger
34endef
35
36define Package/gdbserver/description
37 GDBSERVER is a program that allows you to run GDB on a different machine
38 than the one which is running the program being debugged.
39endef
40
41CONFIGURE_ARGS+= \
42        --with-system-readline
43
44CONFIGURE_VARS+= \
45        ac_cv_search_tgetent="$(TARGET_LDFLAGS) -lncurses -lreadline"
46
47define Build/Compile
48        $(MAKE) -C $(PKG_BUILD_DIR) \
49                DESTDIR="$(PKG_INSTALL_DIR)" \
50                CPPFLAGS="$(TARGET_CPPFLAGS)" \
51                all install-gdb
52endef
53
54define Package/gdb/install     
55        $(INSTALL_DIR) $(1)/usr/bin
56        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdb $(1)/usr/bin/
57endef
58
59define Package/gdbserver/install       
60        $(INSTALL_DIR) $(1)/usr/bin
61        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdbserver $(1)/usr/bin/
62endef
63
64$(eval $(call BuildPackage,gdb))
65$(eval $(call BuildPackage,gdbserver))
66
Note: See TracBrowser for help on using the repository browser.