Makefile 969 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. include Makefile.inc
  5. include ../rules.mk
  6. include ${ADK_TOPDIR}/mk/buildhlp.mk
  7. ifeq (${ADK_MAKE_PARALLEL},y)
  8. GMP_MAKEOPTS+= -j${ADK_MAKE_JOBS}
  9. endif
  10. ifeq (${ARCH_FOR_BUILD},x32)
  11. GMP_CONFOPTS+= ABI=x32
  12. endif
  13. $(WRKBUILD)/.configured:
  14. ifneq ($(OStype),Darwin)
  15. (cd $(WRKBUILD); cp configfsf.guess config.guess)
  16. endif
  17. (cd $(WRKBUILD); \
  18. PATH="$(STAGING_HOST_DIR)/usr/bin:$$PATH" \
  19. ./configure ${GMP_CONFOPTS} \
  20. --prefix=$(STAGING_HOST_DIR)/usr \
  21. --with-pic \
  22. --disable-shared \
  23. --enable-static \
  24. )
  25. touch $@
  26. $(WRKBUILD)/.compiled: $(WRKBUILD)/.configured
  27. env PATH="$(STAGING_HOST_DIR)/usr/bin:$$PATH" \
  28. $(MAKE) ${GMP_MAKEOPTS} -C $(WRKBUILD) all
  29. touch $@
  30. $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
  31. $(MAKE) -C $(WRKBUILD) install
  32. touch $@
  33. include ${ADK_TOPDIR}/mk/toolchain.mk