source: trunk/package/gdb/Makefile @ 18882

Last change on this file since 18882 was 18882, checked in by nico, 6 years ago

[package] gdb: not support on cris

File size: 1.6 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/Default
20  SECTION:=utils
21  CATEGORY:=Utilities
22  DEPENDS:= @!(avr32||cris)
23endef
24
25define Package/gdb
26$(call Package/gdb/Default)
27  TITLE:=GNU Debugger
28  DEPENDS+= +libreadline +libncurses
29endef
30
31define Package/gdb/description
32 GNU debugger
33endef
34
35define Package/gdbserver
36$(call Package/gdb/Default)
37  TITLE:=Remote server for GNU Debugger
38endef
39
40define 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.
43endef
44
45# XXX: add --disable-werror to prevent build failure with arm
46CONFIGURE_ARGS+= \
47        --with-system-readline \
48        --disable-werror \
49
50CONFIGURE_VARS+= \
51        ac_cv_search_tgetent="$(TARGET_LDFLAGS) -lncurses -lreadline"
52
53define Build/Compile
54        $(MAKE) -C $(PKG_BUILD_DIR) \
55                DESTDIR="$(PKG_INSTALL_DIR)" \
56                CPPFLAGS="$(TARGET_CPPFLAGS)" \
57                all install-gdb
58endef
59
60define Package/gdb/install     
61        $(INSTALL_DIR) $(1)/usr/bin
62        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdb $(1)/usr/bin/
63endef
64
65define Package/gdbserver/install       
66        $(INSTALL_DIR) $(1)/usr/bin
67        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdbserver $(1)/usr/bin/
68endef
69
70$(eval $(call BuildPackage,gdb))
71$(eval $(call BuildPackage,gdbserver))
72
Note: See TracBrowser for help on using the repository browser.