f5c0bf37253eda00b7f832a45034205b222a4b8a
[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 PKG_BUILD_DIR:=$(TOOL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
18
19 include $(INCLUDE_DIR)/host-build.mk
20
21 define Build/Configure
22 (cd $(PKG_BUILD_DIR); \
23 gdb_cv_func_sigsetjmp=yes \
24 $(PKG_BUILD_DIR)/configure \
25 --prefix=$(STAGING_DIR) \
26 --build=$(GNU_HOST_NAME) \
27 --host=$(GNU_HOST_NAME) \
28 --target=$(REAL_GNU_TARGET_NAME) \
29 $(DISABLE_NLS) \
30 --without-uiout --disable-gdbmi \
31 --disable-tui --disable-gdbtk --without-x \
32 --without-included-gettext \
33 --enable-threads \
34 );
35 endef
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR)
39 strip $(PKG_BUILD_DIR)/gdb/gdb
40 endef
41
42 define Build/Install
43 install -c $(PKG_BUILD_DIR)/gdb/gdb $(TARGET_CROSS)gdb
44 cd $(STAGING_DIR)/bin && \
45 ln -fs $(TARGET_CROSS)gdb $(GNU_TARGET_NAME)-gdb
46 endef
47
48 $(eval $(call HostBuild))
This page took 0.039618 seconds and 3 git commands to generate.