Root/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#
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=insight
10PKG_VERSION:=6.8-1
11
12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13PKG_MD5SUM:=4ee9824c1e8d6108d886c6c09b24f0ac
14PKG_SOURCE_URL:=ftp://sourceware.org/pub/insight/releases
15PKG_CAT:=bzcat
16
17STAGING_DIR_HOST:=$(TOOLCHAIN_DIR)
18BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
19
20include $(INCLUDE_DIR)/host-build.mk
21
22define 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        --enable-werror=no \
34    );
35endef
36
37define Host/Compile
38    $(MAKE) -C $(HOST_BUILD_DIR)
39endef
40
41define Host/Install
42    mkdir -p $(TOOLCHAIN_DIR)/usr/bin
43    $(INSTALL_BIN) $(HOST_BUILD_DIR)/gdb/insight $(TOOLCHAIN_DIR)/usr/bin/$(TARGET_CROSS)insight
44    ln -fs $(TARGET_CROSS)insight $(TOOLCHAIN_DIR)/usr/bin/$(GNU_TARGET_NAME)-insight
45    strip $(TOOLCHAIN_DIR)/usr/bin/$(TARGET_CROSS)insight
46endef
47
48define Host/Clean
49    rm -rf \
50        $(HOST_BUILD_DIR) \
51        $(TOOLCHAIN_DIR)/usr/bin/$(TARGET_CROSS)insight \
52        $(TOOLCHAIN_DIR)/usr/bin/$(GNU_TARGET_NAME)-insight
53endef
54
55$(eval $(call HostBuild))
56

Archive Download this file



interactive