Makefile 978 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. $(WRKBUILD)/.headers:
  15. $(WRKBUILD)/.configure_done:
  16. (cd $(WRKBUILD); \
  17. $(WRKBUILD)/configure \
  18. --prefix=$(STAGING_TOOLS) \
  19. --build=$(GNU_HOST_NAME) \
  20. --host=$(GNU_HOST_NAME) \
  21. --target=$(REAL_GNU_TARGET_NAME) \
  22. --disable-nls \
  23. --with-sysroot=$(TOOLCHAIN_SYSROOT) \
  24. --with-sysroot=$(STAGING_DIR) \
  25. ${CONFOPTS} \
  26. --disable-dependency-tracking \
  27. --disable-libtool-lock \
  28. --disable-werror \
  29. );
  30. touch $@
  31. $(WRKBUILD)/.compiled: $(WRKBUILD)/.configure_done
  32. $(MAKE) -C $(WRKBUILD) all
  33. touch $@
  34. $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
  35. $(MAKE) -C $(WRKBUILD) install
  36. touch $@
  37. include ${TOPDIR}/mk/toolchain.mk