Makefile 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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_SSP),y)
  8. CONFOPTS+= --enable-libssp
  9. else
  10. CONFOPTS+= --disable-libssp
  11. endif
  12. ifeq ($(ADK_LINUX_64),y)
  13. CONFOPTS+= --enable-64-bit-bfd
  14. endif
  15. $(WRKBUILD)/.headers:
  16. $(WRKBUILD)/.configure_done:
  17. (cd $(WRKBUILD); \
  18. $(WRKBUILD)/configure \
  19. --prefix=$(STAGING_TOOLS) \
  20. --build=$(GNU_HOST_NAME) \
  21. --host=$(GNU_HOST_NAME) \
  22. --target=$(REAL_GNU_TARGET_NAME) \
  23. --disable-nls \
  24. --with-sysroot=$(TOOLCHAIN_SYSROOT) \
  25. --with-sysroot=$(STAGING_DIR) \
  26. --disable-multilib \
  27. --disable-dependency-tracking \
  28. --disable-libtool-lock \
  29. --disable-werror \
  30. ${CONFOPTS} \
  31. );
  32. touch $@
  33. $(WRKBUILD)/.compiled: $(WRKBUILD)/.configure_done
  34. $(MAKE) -C $(WRKBUILD) all
  35. touch $@
  36. $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
  37. $(MAKE) -C $(WRKBUILD) install
  38. touch $@
  39. include ${TOPDIR}/mk/toolchain.mk