tools: clean up Makefiles / make ccache work
[openwrt.git] / package / gdb / Makefile
1 #
2 # Copyright (C) 2006-2011 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:=4
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 --without-expat \
55 --disable-werror
56
57 CONFIGURE_VARS+= \
58 ac_cv_search_tgetent="$(TARGET_LDFLAGS) -lncurses -lreadline"
59
60 define Build/Compile
61 $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
62 DESTDIR="$(PKG_INSTALL_DIR)" \
63 CPPFLAGS="$(TARGET_CPPFLAGS)" \
64 all
65 $(MAKE) -C $(PKG_BUILD_DIR) \
66 DESTDIR="$(PKG_INSTALL_DIR)" \
67 CPPFLAGS="$(TARGET_CPPFLAGS)" \
68 install-gdb
69 endef
70
71 define Package/gdb/install
72 $(INSTALL_DIR) $(1)/usr/bin
73 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdb $(1)/usr/bin/
74 endef
75
76 define Package/gdbserver/install
77 $(INSTALL_DIR) $(1)/usr/bin
78 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdbserver $(1)/usr/bin/
79 endef
80
81 $(eval $(call BuildPackage,gdb))
82 $(eval $(call BuildPackage,gdbserver))
This page took 0.055409 seconds and 5 git commands to generate.