Makefile 899 B

123456789101112131415161718192021222324252627282930313233343536
  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 $(TOPDIR)/rules.mk
  4. include Makefile.inc
  5. include ../rules.mk
  6. include ${TOPDIR}/mk/buildhlp.mk
  7. ifeq (${ADK_MAKE_PARALLEL},y)
  8. GMP_MAKEOPTS+= -j${ADK_MAKE_JOBS}
  9. endif
  10. $(WRKBUILD)/.headers:
  11. $(WRKBUILD)/.configured:
  12. ifneq ($(OStype),Darwin)
  13. (cd $(WRKBUILD); cp configfsf.guess config.guess)
  14. endif
  15. (cd $(WRKBUILD); \
  16. PATH="$(STAGING_HOST_DIR)/usr/bin:$$PATH" \
  17. ./configure \
  18. --prefix=$(STAGING_HOST_DIR)/usr \
  19. --with-pic \
  20. --disable-shared \
  21. --enable-static \
  22. )
  23. touch $@
  24. $(WRKBUILD)/.compiled: $(WRKBUILD)/.configured
  25. env PATH="$(STAGING_HOST_DIR)/usr/bin:$$PATH" $(MAKE) ${GMP_MAKEOPTS} -C $(WRKBUILD) all
  26. touch $@
  27. $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
  28. $(MAKE) -C $(WRKBUILD) install
  29. touch $@
  30. include ${TOPDIR}/mk/toolchain.mk