1
0

Makefile 887 B

12345678910111213141516171819202122232425262728293031323334353637
  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. (cd $(WRKBUILD); \
  15. PATH="$(STAGING_HOST_DIR)/usr/bin:$$PATH" \
  16. ./configure ${GMP_CONFOPTS} \
  17. --prefix=$(STAGING_HOST_DIR)/usr \
  18. --with-pic \
  19. --disable-shared \
  20. --enable-static \
  21. )
  22. touch $@
  23. $(WRKBUILD)/.compiled: $(WRKBUILD)/.configured
  24. env PATH="$(STAGING_HOST_DIR)/usr/bin:$$PATH" \
  25. $(MAKE) ${GMP_MAKEOPTS} -C $(WRKBUILD) all
  26. touch $@
  27. $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
  28. $(MAKE) -C $(WRKBUILD) install
  29. touch $@
  30. include ${ADK_TOPDIR}/mk/toolchain.mk