ar71xx: refresh patches
[openwrt.git] / toolchain / insight / 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:=insight
10 PKG_VERSION:=6.8
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13 PKG_MD5SUM:=b403972b35520399663c7054e8132ca9
14 PKG_SOURCE_URL:=ftp://sourceware.org/pub/insight/releases
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 Host/Configure
23 (cd $(HOST_BUILD_DIR); \
24 gdb_cv_func_sigsetjmp=yes \
25 CFLAGS="-O2" \
26 $(HOST_BUILD_DIR)/configure \
27 --prefix=$(TOOLCHAIN_DIR)/usr \
28 --build=$(GNU_HOST_NAME) \
29 --host=$(GNU_HOST_NAME) \
30 --target=$(REAL_GNU_TARGET_NAME) \
31 $(DISABLE_NLS) \
32 --enable-threads \
33 );
34 endef
35
36 define Host/Compile
37 $(MAKE) -C $(HOST_BUILD_DIR)
38 endef
39
40 define Host/Install
41 mkdir -p $(TOOLCHAIN_DIR)/usr/bin
42 $(INSTALL_BIN) $(HOST_BUILD_DIR)/gdb/insight $(TOOLCHAIN_DIR)/usr/bin/$(TARGET_CROSS)insight
43 ln -fs $(TARGET_CROSS)insight $(TOOLCHAIN_DIR)/usr/bin/$(GNU_TARGET_NAME)-insight
44 strip $(TOOLCHAIN_DIR)/usr/bin/$(TARGET_CROSS)insight
45 endef
46
47 define Host/Clean
48 rm -rf \
49 $(HOST_BUILD_DIR) \
50 $(TOOLCHAIN_DIR)/usr/bin/$(TARGET_CROSS)insight \
51 $(TOOLCHAIN_DIR)/usr/bin/$(GNU_TARGET_NAME)-insight
52 endef
53
54 $(eval $(call HostBuild))
This page took 0.041203 seconds and 5 git commands to generate.