Makefile 941 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ninja
  3. PKG_VERSION:=1.11.1
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://codeload.github.com/ninja-build/ninja/tar.gz/v$(PKG_VERSION)?
  7. PKG_HASH:=31747ae633213f1eda3842686f83c2aa1412e0f5691d1c14dbbcc67fe7400cea
  8. include $(INCLUDE_DIR)/host-build.mk
  9. CONFIGURE_ARGS:=
  10. ifneq ($(findstring c,$(LIBRECMC_VERBOSE)),)
  11. CONFIGURE_ARGS+=--verbose
  12. endif
  13. define Host/Configure
  14. endef
  15. define Host/Compile
  16. cd $(HOST_BUILD_DIR) && \
  17. CXX="$(HOSTCXX_NOCACHE)" \
  18. CXXFLAGS="$(HOST_CXXFLAGS) $(HOST_CPPFLAGS)" \
  19. LDFLAGS="$(HOST_LDFLAGS)" \
  20. $(STAGING_DIR_HOST)/bin/$(PYTHON) configure.py --bootstrap $(CONFIGURE_ARGS)
  21. endef
  22. define Host/Install
  23. $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
  24. $(INSTALL_BIN) $(HOST_BUILD_DIR)/ninja $(STAGING_DIR_HOST)/bin/
  25. endef
  26. define Host/Clean
  27. $(call Host/Clean/Default)
  28. rm -f $(STAGING_DIR_HOST)/bin/ninja
  29. endef
  30. $(eval $(call HostBuild))