Makefile 979 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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_LINUX_64),y)
  8. CONFOPTS+= --enable-64-bit-bfd
  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. --target=$(REAL_GNU_TARGET_NAME) \
  18. --disable-nls \
  19. --with-sysroot=$(TOOLCHAIN_SYSROOT) \
  20. --with-sysroot=$(STAGING_DIR) \
  21. --disable-multilib \
  22. --disable-dependency-tracking \
  23. --disable-libtool-lock \
  24. --disable-werror \
  25. --disable-libssp \
  26. ${CONFOPTS} \
  27. );
  28. touch $@
  29. $(WRKBUILD)/.compiled: $(WRKBUILD)/.configured
  30. $(MAKE) -C $(WRKBUILD) all
  31. touch $@
  32. $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
  33. $(MAKE) -C $(WRKBUILD) install
  34. touch $@
  35. include ${TOPDIR}/mk/toolchain.mk