2
0

Makefile 1.3 KB

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