1
0

Makefile 987 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)/.headers:
  14. $(WRKBUILD)/.configured:
  15. ifneq ($(OStype),Darwin)
  16. (cd $(WRKBUILD); cp configfsf.guess config.guess)
  17. endif
  18. (cd $(WRKBUILD); \
  19. PATH="$(STAGING_HOST_DIR)/usr/bin:$$PATH" \
  20. ./configure ${GMP_CONFOPTS} \
  21. --prefix=$(STAGING_HOST_DIR)/usr \
  22. --with-pic \
  23. --disable-shared \
  24. --enable-static \
  25. )
  26. touch $@
  27. $(WRKBUILD)/.compiled: $(WRKBUILD)/.configured
  28. env PATH="$(STAGING_HOST_DIR)/usr/bin:$$PATH" $(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