massive cleanup of toolchain/
[openwrt-10.03/.git] / toolchain / gdb / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=gdb
4 PKG_VERSION:=6.3
5
6 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
7 PKG_MD5SUM:=05b928f41fa5b482e49ca2c24762a0ae
8 PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/gdb
9 PKG_CAT:=bzcat
10
11 PKG_BUILD_DIR:=$(TOOL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
12
13 include $(INCLUDE_DIR)/host-build.mk
14
15 define Build/Configure
16         (cd $(PKG_BUILD_DIR); \
17                 gdb_cv_func_sigsetjmp=yes \
18                 $(PKG_BUILD_DIR)/configure \
19                 --prefix=$(STAGING_DIR) \
20                 --build=$(GNU_HOST_NAME) \
21                 --host=$(GNU_HOST_NAME) \
22                 --target=$(REAL_GNU_TARGET_NAME) \
23                 $(DISABLE_NLS) \
24                 --without-uiout --disable-gdbmi \
25                 --disable-tui --disable-gdbtk --without-x \
26                 --without-included-gettext \
27                 --enable-threads \
28         );
29 endef
30
31 define Build/Compile
32         $(MAKE) -C $(PKG_BUILD_DIR)
33         strip $(PKG_BUILD_DIR)/gdb/gdb
34 endef
35
36 define Build/Install
37         install -c $(PKG_BUILD_DIR)/gdb/gdb $(TARGET_CROSS)gdb
38         cd $(STAGING_DIR)/bin && \
39                 ln -fs $(TARGET_CROSS)gdb $(GNU_TARGET_NAME)-gdb
40 endef
41
42 $(eval $(call HostBuild))