Makefile 789 B

12345678910111213141516171819202122232425262728293031323334
  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 Makefile.inc
  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. (cd $(WRKBUILD); \
  13. $(WRKBUILD)/configure \
  14. --prefix=$(STAGING_TOOLS) \
  15. --build=$(GNU_HOST_NAME) \
  16. --host=$(GNU_HOST_NAME) \
  17. --disable-shared \
  18. --enable-static \
  19. --disable-nls \
  20. );
  21. touch $@
  22. $(WRKBUILD)/.compiled: $(WRKBUILD)/.configured
  23. $(MAKE) ${GMP_MAKEOPTS} -C $(WRKBUILD) all
  24. touch $@
  25. $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
  26. $(MAKE) -C $(WRKBUILD) install
  27. touch $@
  28. include ${TOPDIR}/mk/toolchain.mk