lantiq: pinctrl: xway: fix copy/paste error in xrx200_grps
[openwrt/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-1
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)a.tar.bz2
13 PKG_HASH:=51216df73adc4f68c67b60356270d5073f0ff094c1b477ecd96560f49707ea2a
14 PKG_SOURCE_URL:=ftp://sourceware.org/pub/insight/releases
15 PKG_CAT:=bzcat
16
17 include $(INCLUDE_DIR)/toolchain-build.mk
18
19 define Host/Configure
20 (cd $(HOST_BUILD_DIR); \
21 gdb_cv_func_sigsetjmp=yes \
22 CFLAGS="-O2" \
23 $(HOST_BUILD_DIR)/configure \
24 --prefix=$(TOOLCHAIN_DIR) \
25 --build=$(GNU_HOST_NAME) \
26 --host=$(GNU_HOST_NAME) \
27 --target=$(REAL_GNU_TARGET_NAME) \
28 --enable-threads \
29 --enable-werror=no \
30 );
31 endef
32
33 define Host/Compile
34 $(MAKE) -C $(HOST_BUILD_DIR)
35 endef
36
37 define Host/Install
38 mkdir -p $(TOOLCHAIN_DIR)/bin
39 $(INSTALL_BIN) $(HOST_BUILD_DIR)/gdb/insight $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)insight
40 ln -fs $(TARGET_CROSS)insight $(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-insight
41 strip $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)insight
42 endef
43
44 define Host/Clean
45 rm -rf \
46 $(HOST_BUILD_DIR) \
47 $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)insight \
48 $(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-insight
49 endef
50
51 $(eval $(call HostBuild))