some more kernel config cleanup.. last for today :)
[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
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=gdb
10 PKG_VERSION:=6.8
11 PKG_RELEASE:=1
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_SOURCE_URL:=@GNU/gdb
15 PKG_MD5SUM:=c9da266b884fb8fa54df786dfaadbc7a
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/gdb
20 SECTION:=utils
21 CATEGORY:=Utilities
22 DEPENDS:=+libreadline +libncurses
23 TITLE:=GNU Debugger
24 endef
25
26 define Package/gdbserver
27 SECTION:=utils
28 CATEGORY:=Utilities
29 TITLE:=Remote server for GNU Debugger
30 endef
31
32 define Package/gdb/description
33 GNU debugger
34 endef
35
36 define 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.
39 endef
40
41 CONFIGURE_ARGS+= \
42 --with-system-readline
43
44 CONFIGURE_VARS+= \
45 ac_cv_search_tgetent="$(TARGET_LDFLAGS) -lncurses -lreadline"
46
47 define Build/Compile
48 $(MAKE) -C $(PKG_BUILD_DIR) \
49 DESTDIR="$(PKG_INSTALL_DIR)" \
50 CPPFLAGS="$(TARGET_CPPFLAGS)" \
51 all install-gdb
52 endef
53
54 define Package/gdb/install
55 $(INSTALL_DIR) $(1)/usr/bin
56 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdb $(1)/usr/bin/
57 endef
58
59 define Package/gdbserver/install
60 $(INSTALL_DIR) $(1)/usr/bin
61 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdbserver $(1)/usr/bin/
62 endef
63
64 $(eval $(call BuildPackage,gdb))
65 $(eval $(call BuildPackage,gdbserver))
66
This page took 0.054996 seconds and 5 git commands to generate.