13a3b43c9ce23e8948175088490c6d83694ea99c
[openwrt.git] / toolchain / gdb / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=gdb
10 PKG_VERSION:=6.3
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13 PKG_MD5SUM:=05b928f41fa5b482e49ca2c24762a0ae
14 PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/gdb
15 PKG_CAT:=bzcat
16
17 STAGING_DIR_HOST:=$(TOOLCHAIN_DIR)
18 BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
19
20 include $(INCLUDE_DIR)/host-build.mk
21
22 define Build/Configure
23 (cd $(PKG_BUILD_DIR); \
24 gdb_cv_func_sigsetjmp=yes \
25 $(PKG_BUILD_DIR)/configure \
26 --prefix=$(TOOLCHAIN_DIR) \
27 --build=$(GNU_HOST_NAME) \
28 --host=$(GNU_HOST_NAME) \
29 --target=$(REAL_GNU_TARGET_NAME) \
30 $(DISABLE_NLS) \
31 --without-uiout --disable-gdbmi \
32 --disable-tui --disable-gdbtk --without-x \
33 --without-included-gettext \
34 --enable-threads \
35 );
36 endef
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR)
40 strip $(PKG_BUILD_DIR)/gdb/gdb
41 endef
42
43 define Build/Install
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/gdb/gdb $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb
45 ln -fs $(TARGET_CROSS)gdb $(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-gdb
46 endef
47
48 define Build/Clean
49 rm -rf $(PKG_BUILD_DIR)
50 rm -f $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb
51 rm -f $(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-gdb
52 endef
53
54 $(eval $(call HostBuild))
This page took 0.039442 seconds and 3 git commands to generate.