Makefile 856 B

1234567891011121314151617181920212223242526272829303132333435
  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 ../rules.mk
  5. include $(TOPDIR)/toolchain/gmp/Makefile.inc
  6. include Makefile.inc
  7. include ${TOPDIR}/mk/buildhlp.mk
  8. ifeq (${ADK_MAKE_PARALLEL},y)
  9. MPFR_MAKEOPTS+= -j${ADK_MAKE_JOBS}
  10. endif
  11. $(WRKBUILD)/.headers:
  12. $(WRKBUILD)/.configured:
  13. (cd $(WRKBUILD); \
  14. $(WRKBUILD)/configure \
  15. --prefix=$(STAGING_TOOLS) \
  16. --build=$(GNU_HOST_NAME) \
  17. --host=$(GNU_HOST_NAME) \
  18. --with-gmp-build=$(GMP_BUILD_DIR) \
  19. --disable-shared \
  20. --enable-static \
  21. );
  22. touch $@
  23. $(WRKBUILD)/.compiled: $(WRKBUILD)/.configured
  24. $(MAKE) ${MPFR_MAKEOPTS} -C $(WRKBUILD) all
  25. touch $@
  26. $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
  27. $(MAKE) -C $(WRKBUILD) install
  28. touch $@
  29. include ${TOPDIR}/mk/toolchain.mk