1
0

Makefile 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. LIBELF_MAKEOPTS+= -j${ADK_MAKE_JOBS}
  9. endif
  10. $(WRKBUILD)/.headers:
  11. $(WRKBUILD)/.configured:
  12. @cd ${WRKBUILD}; \
  13. for i in $$(find . -name config.sub);do \
  14. if [ -f $$i ]; then \
  15. ${CP} ${SCRIPT_DIR}/config.sub $$i; \
  16. fi; \
  17. done; \
  18. for i in $$(find . -name config.guess);do \
  19. if [ -f $$i ]; then \
  20. ${CP} ${SCRIPT_DIR}/config.guess $$i; \
  21. fi; \
  22. done;
  23. (cd $(WRKBUILD); \
  24. $(WRKBUILD)/configure \
  25. --prefix=$(STAGING_HOST_DIR)/usr \
  26. --disable-nls \
  27. --disable-shared \
  28. --enable-static \
  29. );
  30. touch $@
  31. $(WRKBUILD)/.compiled: $(WRKBUILD)/.configured
  32. $(MAKE) ${LIBELF_MAKEOPTS} -C $(WRKBUILD) all
  33. touch $@
  34. $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
  35. $(MAKE) -C $(WRKBUILD) install
  36. touch $@
  37. include ${ADK_TOPDIR}/mk/toolchain.mk