[package] madwifi: Add newline at end of autodetected wireless config (cosmetic)
[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 PKG_BUILD_PARALLEL:=0
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/gdb/Default
23 SECTION:=utils
24 CATEGORY:=Utilities
25 DEPENDS:=@!(avr32||cris)
26 URL:=http://www.gnu.org/software/gdb/
27 endef
28
29 define Package/gdb
30 $(call Package/gdb/Default)
31 TITLE:=GNU Debugger
32 DEPENDS+=+libreadline +libncurses
33 endef
34
35 define Package/gdb/description
36 GDB, the GNU Project debugger, allows you to see what is going on `inside'
37 another program while it executes -- or what another program was doing at the
38 moment it crashed.
39 endef
40
41 define Package/gdbserver
42 $(call Package/gdb/Default)
43 TITLE:=Remote server for GNU Debugger
44 endef
45
46 define Package/gdbserver/description
47 GDBSERVER is a program that allows you to run GDB on a different machine than the
48 one which is running the program being debugged.
49 endef
50
51 # XXX: add --disable-werror to prevent build failure with arm
52 CONFIGURE_ARGS+= \
53 --with-system-readline \
54 --disable-werror
55
56 CONFIGURE_VARS+= \
57 ac_cv_search_tgetent="$(TARGET_LDFLAGS) -lncurses -lreadline"
58
59 define Build/Compile
60 $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
61 DESTDIR="$(PKG_INSTALL_DIR)" \
62 CPPFLAGS="$(TARGET_CPPFLAGS)" \
63 all
64 $(MAKE) -C $(PKG_BUILD_DIR) \
65 DESTDIR="$(PKG_INSTALL_DIR)" \
66 CPPFLAGS="$(TARGET_CPPFLAGS)" \
67 install-gdb
68 endef
69
70 define Package/gdb/install
71 $(INSTALL_DIR) $(1)/usr/bin
72 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdb $(1)/usr/bin/
73 endef
74
75 define Package/gdbserver/install
76 $(INSTALL_DIR) $(1)/usr/bin
77 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdbserver $(1)/usr/bin/
78 endef
79
80 $(eval $(call BuildPackage,gdb))
81 $(eval $(call BuildPackage,gdbserver))
This page took 0.042617 seconds and 5 git commands to generate.