1
0

Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=nasm
  7. PKG_VERSION:=2.13.03
  8. PKG_SOURCE_URL:=https://www.nasm.us/pub/nasm/releasebuilds/$(PKG_VERSION)/
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  10. PKG_HASH:=812ecfb0dcbc5bd409aaa8f61c7de94c5b8752a7b00c632883d15b2ed6452573
  11. HOST_BUILD_PARALLEL:=1
  12. include $(INCLUDE_DIR)/toolchain-build.mk
  13. HOST_CONFIGURE_ARGS+= \
  14. --target=$(REAL_GNU_TARGET_NAME) \
  15. --with-sysroot=$(TOOLCHAIN_DIR) \
  16. --disable-lto \
  17. --disable-werror \
  18. --disable-gdb \
  19. $(SOFT_FLOAT_CONFIG_OPTION) \
  20. define Host/Prepare
  21. $(call Host/Prepare/Default)
  22. ln -snf $(notdir $(HOST_BUILD_DIR)) $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)
  23. $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(HOST_BUILD_DIR)/
  24. endef
  25. define Host/Configure
  26. (cd $(HOST_BUILD_DIR); \
  27. ./autogen.sh \
  28. );
  29. $(call Host/Configure/Default)
  30. endef
  31. define Host/Install
  32. $(MAKE) -C $(HOST_BUILD_DIR) \
  33. $(HOST_MAKE_FLAGS) \
  34. prefix=$(TOOLCHAIN_DIR) \
  35. install
  36. endef
  37. define Host/Clean
  38. rm -rf \
  39. $(HOST_BUILD_DIR) \
  40. $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)
  41. endef
  42. $(eval $(call HostBuild))