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 ../rules.mk
  5. include Makefile.inc
  6. include ${ADK_TOPDIR}/mk/buildhlp.mk
  7. NEWLIB_CONFIGURE_ARGS:= --enable-newlib-io-long-long \
  8. --enable-newlib-register-fini \
  9. --disable-newlib-supplied-syscalls
  10. $(WRKBUILD)/.configured:
  11. (cd $(WRKBUILD); \
  12. CC='' \
  13. CFLAGS='' \
  14. LDFLAGS='' \
  15. CFLAGS_FOR_TARGET='$(TARGET_CFLAGS)' \
  16. ./configure --prefix=/usr \
  17. --target=$(GNU_TARGET_NAME) \
  18. --disable-nls \
  19. $(NEWLIB_CONFIGURE_ARGS) \
  20. )
  21. touch $@
  22. $(WRKBUILD)/.compiled:
  23. PATH='$(HOST_PATH)' $(MAKE) -C $(WRKBUILD) \
  24. CC='' \
  25. CFLAGS='' \
  26. CFLAGS_FOR_TARGET='$(TARGET_CFLAGS)' \
  27. all
  28. touch $@
  29. $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
  30. PATH='$(HOST_PATH)' $(MAKE) -C $(WRKBUILD) \
  31. CC='' \
  32. CFLAGS='' \
  33. CFLAGS_FOR_TARGET='$(TARGET_CFLAGS)' \
  34. DESTDIR=$(STAGING_TARGET_DIR) \
  35. install
  36. touch $@
  37. include ${ADK_TOPDIR}/mk/toolchain.mk