Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include $(TOPDIR)/rules.mk
  6. include ../rules.mk
  7. include Makefile.inc
  8. include ${TOPDIR}/mk/buildhlp.mk
  9. ifeq ($(ADK_SSP),y)
  10. CONFOPTS+= --enable-libssp
  11. else
  12. CONFOPTS+= --disable-libssp
  13. endif
  14. ifeq ($(ADK_LINUX_MIPS64_LEMOTE),y)
  15. CONFOPTS+= --enable-64-bit-bfd
  16. endif
  17. $(WRKBUILD)/.headers:
  18. $(WRKBUILD)/.configure_done:
  19. (cd $(WRKBUILD); \
  20. $(WRKBUILD)/configure \
  21. --prefix=$(STAGING_TOOLS) \
  22. --build=$(GNU_HOST_NAME) \
  23. --host=$(GNU_HOST_NAME) \
  24. --target=$(REAL_GNU_TARGET_NAME) \
  25. --disable-nls \
  26. --with-sysroot=$(TOOLCHAIN_SYSROOT) \
  27. --with-sysroot=$(STAGING_DIR) \
  28. --disable-multilib \
  29. --disable-dependency-tracking \
  30. --disable-libtool-lock \
  31. --disable-werror \
  32. ${CONFOPTS} \
  33. );
  34. touch $@
  35. $(WRKBUILD)/.compiled: $(WRKBUILD)/.configure_done
  36. $(MAKE) -C $(WRKBUILD) all
  37. touch $@
  38. $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
  39. $(MAKE) -C $(WRKBUILD) install
  40. touch $@
  41. include ${TOPDIR}/mk/toolchain.mk