[ar71xx] remove another empty directory
[openwrt.git] / package / gdb / Makefile
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 # $Id$
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gdb
11 PKG_VERSION:=6.8
12 PKG_RELEASE:=1
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
21 SECTION:=utils
22 CATEGORY:=Utilities
23 DEPENDS:=+libreadline +libncurses
24 TITLE:=GNU Debugger
25 endef
26
27 define Package/gdbserver
28 SECTION:=utils
29 CATEGORY:=Utilities
30 TITLE:=Remote server for GNU Debugger
31 endef
32
33 define Package/gdb/description
34 GNU debugger
35 endef
36
37 define Package/gdbserver/description
38 GDBSERVER is a program that allows you to run GDB on a different machine
39 than the one which is running the program being debugged.
40 endef
41
42 CONFIGURE_ARGS+= \
43 --with-system-readline
44
45 CONFIGURE_VARS+= \
46 ac_cv_search_tgetent="$(TARGET_LDFLAGS) -lncurses -lreadline"
47
48 define Build/Compile
49 $(MAKE) -C $(PKG_BUILD_DIR) \
50 DESTDIR="$(PKG_INSTALL_DIR)" \
51 CPPFLAGS="$(TARGET_CPPFLAGS)" \
52 all install-gdb
53 endef
54
55 define Package/gdb/install
56 $(INSTALL_DIR) $(1)/usr/bin
57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdb $(1)/usr/bin/
58 endef
59
60 define Package/gdbserver/install
61 $(INSTALL_DIR) $(1)/usr/bin
62 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdbserver $(1)/usr/bin/
63 endef
64
65 $(eval $(call BuildPackage,gdb))
66 $(eval $(call BuildPackage,gdbserver))
67
This page took 0.04887 seconds and 5 git commands to generate.