[package] kernel: package L2TP v3 ("Pseudowire") modules, restrict them to 2.6.35
[openwrt.git] / package / gdb / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gdb
11 PKG_VERSION:=6.8
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@GNU/gdb
16 PKG_MD5SUM:=c9da266b884fb8fa54df786dfaadbc7a
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/gdb/Default
21 SECTION:=utils
22 CATEGORY:=Utilities
23 DEPENDS:=@!(avr32||cris)
24 URL:=http://www.gnu.org/software/gdb/
25 endef
26
27 define Package/gdb
28 $(call Package/gdb/Default)
29 TITLE:=GNU Debugger
30 DEPENDS+=+libreadline +libncurses
31 endef
32
33 define Package/gdb/description
34 GDB, the GNU Project debugger, allows you to see what is going on `inside'
35 another program while it executes -- or what another program was doing at the
36 moment it crashed.
37 endef
38
39 define Package/gdbserver
40 $(call Package/gdb/Default)
41 TITLE:=Remote server for GNU Debugger
42 endef
43
44 define Package/gdbserver/description
45 GDBSERVER is a program that allows you to run GDB on a different machine than the
46 one which is running the program being debugged.
47 endef
48
49 # XXX: add --disable-werror to prevent build failure with arm
50 CONFIGURE_ARGS+= \
51 --with-system-readline \
52 --disable-werror
53
54 CONFIGURE_VARS+= \
55 ac_cv_search_tgetent="$(TARGET_LDFLAGS) -lncurses -lreadline"
56
57 define Build/Compile
58 $(MAKE) -C $(PKG_BUILD_DIR) \
59 DESTDIR="$(PKG_INSTALL_DIR)" \
60 CPPFLAGS="$(TARGET_CPPFLAGS)" \
61 all
62 $(MAKE) -C $(PKG_BUILD_DIR) \
63 DESTDIR="$(PKG_INSTALL_DIR)" \
64 CPPFLAGS="$(TARGET_CPPFLAGS)" \
65 install-gdb
66 endef
67
68 define Package/gdb/install
69 $(INSTALL_DIR) $(1)/usr/bin
70 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdb $(1)/usr/bin/
71 endef
72
73 define Package/gdbserver/install
74 $(INSTALL_DIR) $(1)/usr/bin
75 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdbserver $(1)/usr/bin/
76 endef
77
78 $(eval $(call BuildPackage,gdb))
79 $(eval $(call BuildPackage,gdbserver))
This page took 0.054414 seconds and 5 git commands to generate.