[package] add dist and distcheck target (to create new source balls)
[openwrt.git] / toolchain / gdb / Makefile
1 #
2 # Copyright (C) 2006-2009 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.8
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13 PKG_MD5SUM:=c9da266b884fb8fa54df786dfaadbc7a
14 PKG_SOURCE_URL:=@GNU/gdb
15
16 include $(INCLUDE_DIR)/toolchain-build.mk
17
18 define Host/Configure
19 (cd $(HOST_BUILD_DIR); \
20 gdb_cv_func_sigsetjmp=yes \
21 CFLAGS="-O2" \
22 $(HOST_BUILD_DIR)/configure \
23 --prefix=$(TOOLCHAIN_DIR)/usr \
24 --build=$(GNU_HOST_NAME) \
25 --host=$(GNU_HOST_NAME) \
26 --target=$(REAL_GNU_TARGET_NAME) \
27 $(DISABLE_NLS) \
28 --without-uiout \
29 --disable-tui --disable-gdbtk --without-x \
30 --without-included-gettext \
31 --enable-threads \
32 );
33 endef
34
35 define Host/Compile
36 $(MAKE) -C $(HOST_BUILD_DIR)
37 endef
38
39 define Host/Install
40 mkdir -p $(TOOLCHAIN_DIR)/usr/bin
41 $(INSTALL_BIN) $(HOST_BUILD_DIR)/gdb/gdb $(TOOLCHAIN_DIR)/usr/bin/$(TARGET_CROSS)gdb
42 ln -fs $(TARGET_CROSS)gdb $(TOOLCHAIN_DIR)/usr/bin/$(GNU_TARGET_NAME)-gdb
43 strip $(TOOLCHAIN_DIR)/usr/bin/$(TARGET_CROSS)gdb
44 endef
45
46 define Host/Clean
47 rm -rf \
48 $(HOST_BUILD_DIR) \
49 $(TOOLCHAIN_DIR)/usr/bin/$(TARGET_CROSS)gdb \
50 $(TOOLCHAIN_DIR)/usr/bin/$(GNU_TARGET_NAME)-gdb
51 endef
52
53 $(eval $(call HostBuild))
This page took 0.061144 seconds and 5 git commands to generate.